EVM
Installation
Example Usage: Actually Met IRL
Actually Met IRL is a smart contract that only creates an attestation on EVM Sign Protocol for two people meeting in real life if both parties consent to this fact. In this example, we will demonstrate how to:
Link your smart contract to an existing on-chain Sign Protocol deployment and schema
Create an attestation programmatically
You can find the complete Foundry repository here, a deployment of the example contract on Base Sepolia here, and the corresponding SignScan page here.
NOTE: data
is expecting a value from abi.encode()
. If your relevant schema is storing data on-chain, you need to encode the actual data you are trying to store. If you are storing data off-chain, such as IPFS, you will need to upload the data, in JSON format, to the storage provider first. Next, you will encode the resulting CID string and pass in this value as data
.
Last updated