Closed KevinYum closed 2 days ago
ECDSA recovery (for public key) has adopted SP1 ZKVM precompile instructions https://github.com/sp1-patches/rust-secp256k1/blob/patch-secp256k1-v0.29.0/src/ecdsa/recovery.rs#L210
ECDSA signature verification is still using the native implementation and cost 40x more cycles compared with the ECDSA recovery https://github.com/sp1-patches/rust-secp256k1/blob/patch-secp256k1-v0.29.0/src/ecdsa/mod.rs#L389
For non-evm applications, ECDSA verification can be a more general use case.
Thanks for creating this @KevinYum ! We should have a fix for this soon.
ECDSA recovery (for public key) has adopted SP1 ZKVM precompile instructions https://github.com/sp1-patches/rust-secp256k1/blob/patch-secp256k1-v0.29.0/src/ecdsa/recovery.rs#L210
ECDSA signature verification is still using the native implementation and cost 40x more cycles compared with the ECDSA recovery https://github.com/sp1-patches/rust-secp256k1/blob/patch-secp256k1-v0.29.0/src/ecdsa/mod.rs#L389
For non-evm applications, ECDSA verification can be a more general use case.