momentum-xyz / ubercontroller

New controller
GNU Affero General Public License v3.0
9 stars 1 forks source link

Node Signing fix #285

Closed dmitry-yudakov closed 10 months ago

dmitry-yudakov commented 12 months ago

Generate signature that would be accepted by mapping contract

We need to use node/odysseyIDs as uint256 in the message, drop the ":" separator, hash the message, add the prefix "Ethereum Signed Message", hash again and add 27 to the last byte of the signature

https://ethereum.stackexchange.com/questions/102190/signature-signed-by-go-code-but-it-cant-verify-on-solidity

Some comments and logs will be cleared later.