Open
Description
An issue was reported in our Telegram group regarding the ecdsa_recover
method in ink! v6:
Hello, I am encountering an issue with the
ecdsa_recover
method with ink! v6
It seems the method doesn't work in e2e tests.
I reproduced the issue here: https://github.com/GuiGou12358/test_ecddsa_recover/blob/main/test_ecdsa_recover/lib.rs
This test fails: https://github.com/GuiGou12358/test_ecddsa_recover/blob/main/test_ecdsa_recover/lib.rs#L94
A possible cause is the update to the secp256k1
library in #2340 which introduced a change inside ecdsa_recover function:
- let recovery_id = RecoveryId::from_i32(recovery_byte as i32)
+ let recovery_id = RecoveryId::try_from(recovery_byte as i32)
It's worth noting that the internal test here still passes:
ink/crates/engine/src/tests.rs
Line 179 in 641f057
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Backlog