3

I have a same call with same era,nonce,tip, and a same signer. the SignedPayload is construct by call and Extra(era,nonce,tip here), so the payload should be unchanged. but in polkadot.js I checked the signature in two trying is different. enter image description here

this is two diffrent encoded result: enter image description here

My questionn is are there any other factor decide the signature beside signer,call and SignedExtrension?

1 Answer 1

4

In sr25519 the signatures are non-deterministic. That means for the same input it will generate different signatures each time it is called.

This is different from ed25519 and secp256k1 where the same data always yields the same signature.

2
  • Could you elaborate on why is that? I am not knowledgeable in cryptographic procedures. Apr 14, 2022 at 7:07
  • @Purple_Turtle, I am not a pro, but I am inclined to think that it won't fit to a comment and would probably be better off as a subject for another question.
    – pepyakin
    Apr 29, 2022 at 9:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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