StarknetByExample icon indicating copy to clipboard operation
StarknetByExample copied to clipboard

feat: Verifying signatures

Open enitrat opened this issue 1 year ago • 4 comments

In this example, we will demonstrate how we can use check_ecdsa_signature to verify if (signature_r, signature_s) is a valid ECDSA signature for the given public_key

Solidity reference: https://solidity-by-example.org/signature/

enitrat avatar Jun 05 '23 17:06 enitrat

Taking this on!

HansBhatia avatar Jul 18 '23 01:07 HansBhatia

@HansBhatia Are you still working on it?

Be aware that in version 2.1.0 there's a way to verify Ethereum signature. See secp256_trait.cairo

julio4 avatar Aug 07 '23 10:08 julio4

@julio4 I am not.

HansBhatia avatar Aug 07 '23 18:08 HansBhatia

I would like to take this up, In this we can generate the signed message through a script, and then perform the functions such as verify signature and recover public key right ?

Akashneelesh avatar Feb 13 '24 06:02 Akashneelesh

Can I take up this?

RajeshRk18 avatar May 16 '24 11:05 RajeshRk18

This has already been implemented.

Akashneelesh avatar May 16 '24 15:05 Akashneelesh

This has already been implemented.

Yes true, closing this now @RajeshRk18. I mistook this issue for another.

julio4 avatar May 17 '24 08:05 julio4