Run an observer
Environment variables
Create a .env file with the following variables. All are necessary.
MONGODB_URI
- URI for MongoDB. The observer stores ZKP outputs, the user's blockchain address, the user's signature, and the address of the access conditions contract in a collection titled "observations".
CLEAN_HANDS_ISSUER_ADDRESS
- The address that issued the credentials used as inputs to the ZKP. This is used to validate the issuer address output by the ZKP.
ATTESTOR_PRIVATE_KEY
- The private key of the account used to issue attestations. This private key is used to create transactions on Optimism. It's account remain funded; otherwise attestations will not be issued.
OP_RPC_URL
- URL for Optimism RPC node.
Run
Last updated