Design Your JSON structure
Decide the data structure
Last updated
Decide the data structure
Last updated
The JSON structure is the data you intend users to sign.
For the sake of this tutorial, we use the following structure for our data
nonce : It is a unique value chosen by an entity in a protocol which is used to protect the entity against replay attacks
from : Public key of the user signing the message.
For the sake of this tutorial, We use simple data structures. However, EIP712 also supports complex data structures. For more information, refer to EIP712 documentation