-
Hi.
In node:
Assuming the use of the same account, same input message - will those two yield identical signatures? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yes, assuming both implementations follow RFC 6979, (which all modern implementation do) the same private key will generate the same signature for the same message. A JsonRpcSigner sends the message to an another location (e.g. a geth node, with a Go implementation of ECC signing) to be signed, so it’s implementation is like just serializing and sending it over a wire. But the ECC algorithm and related maths are all the same under the hood. :) |
Beta Was this translation helpful? Give feedback.
-
Many thanks. |
Beta Was this translation helpful? Give feedback.
Yes, assuming both implementations follow RFC 6979, (which all modern implementation do) the same private key will generate the same signature for the same message.
A JsonRpcSigner sends the message to an another location (e.g. a geth node, with a Go implementation of ECC signing) to be signed, so it’s implementation is like just serializing and sending it over a wire.
But the ECC algorithm and related maths are all the same under the hood. :)