Signing Messages
Last updated
Last updated
In the EVM-compatible blockchain world, signing messages can be used to prove ownership of a specific address. When signing a message with our private key, we don’t require interacting with the ThunderCore network. It can be implemented completely offline. Hence the purpose of this section is to describe how to use the signing messages in TT Wallet.
Now TT Wallet currently support three signing methods:
eth_signTypedData_v3
eth_signTypedData_v4
personal_sign
If you’d like to know the differences between these signature methods, you can .
signTypedData_v3
and signTypedData_v4
currently represent the latest version of the , making it the most secure methods and cheap-to-verify messages on-chain or off-chain.
Here's an example how it works:
Most of the code is the same as above, here are the differences:
personal_sign
is similar to eth_sign
which is specified by , but has better security, see for details.