3

I tried signing a Message using the SHA256withECDSA algorithm . It gives a different signed(r,s) output everytime. When i try to recover the address using the ecrevover method .it gives me a different address everytime.

Does it mean Ethereum requires a constant r,s value for message everytime?

2

Ethereum uses keccak256 instead of sha256 for signing, so signatures generated by SHA256withECDSA cannot be verified by the EVM.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.