![]() ![]() The go- ethereum crypto package provides a handy Keccak256Hash method for doing this. Next we'll take the Keccak-256 of the data that we wish to sign, in this case it'll be the word hello. ![]() We'll be using Keccak-256 as the hashing algorithm which is what Ethereum prefers to use.įirst we'll load private key. Any hashing algorithm may be used as long as the output is 32 bytes. ![]() The components for generating a signature are: the signers private key, and the hash of the data that will be signed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |