Skip to content

Web3Provider.getSigner().signMessage() vs Wallet.signMessage() #4022

Answered by ricmoo
fauxbytes asked this question in Q&A
Discussion options

You must be logged in to vote

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. :)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fauxbytes
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants