@big-whale-labs/seal-cred-verifier-contract
v0.2.8
Published
SealCred Verifier contract code
Keywords
Readme
Verifier contract
Verifies a ZK proof of the following two claims:
- User owns an attestation that they own an ERC721 token
- User owns an attestation that they own an email ending in the specified domain name
Usage
- Clone the repository with
git clone [email protected]:BigWhaleLabs/seal-cred-verifier-contract.git - Install the dependencies with
yarn - Add environment variables to your
.envfile - Create an empty folder named
buildat the top most level of the repo - Run
yarn compile-circuitto compile the circom circuits, create proof, verify proof, exports verifier as a solidity Verifier.sol - Run
yarn compileto compile the contract - Run the scripts below
Environment variables
| Name | Description |
| ---------------------------- | --------------------------------------------- |
| ETHERSCAN_API_KEY | Etherscan API key |
| ETH_RPC | Ethereum RPC URL (defaults to @bwl/constants) |
| CONTRACT_OWNER_PRIVATE_KEY | Private key of the contract owner |
Also check out the .env.example file for more information.
Available scripts
yarn build— compiles the contract ts interface to thetypechaindirectoryyarn compile-balanceandyarn compile-email- compiles the circom circuits, creates proof, verifies proof, exports verifier as a solidity fileyarn test— runs the test suiteyarn deploy— deploys the contract to the networkyarn eth-lint— runs the linter for the solidity contractyarn lint— runs all the lintersyarn prettify— prettifies the code in th projectyarn release— relases thetypechaindirectory to NPM
