The capstone will build upon the knowledge you have gained in the course in order to build a decentralized housing product.
"openzeppelin-solidity": "2.2.0",
"@truffle/hdwallet-provider": "^2.0.10",
"buffer": "^6.0.3",
"ipfs": "^0.63.5",
"solc": "0.5.2",
"truffle": "^5.5.21",
"web3": "^1.7.4"
Test minting functionality of tokens and transfer of tokens.
truffle test ./test/TestERC721Mintable.js
Verifies zkSnarks is successfully implemented.
truffle test ./test/TestSquareVerifier.js
Test minting with zkSnarks.
truffle test ./test/TestSolnSquareVerifier.js
- CustomERC721Token: eth-contracts/build/contracts/CustomERC721Token.json
- SquareVerifier: eth-contracts/build/contracts/SquareVerifier.json
- SolnSquareVerifier: eth-contracts/build/contracts/SolnSquareVerifier.json
- Completes the Zokrates proof in square.code by adding the variable names in square.code
zokrates compile -i square.code \
&& zokrates setup \
&& zokrates compute-witness -a 2 4 \
&& zokrates generate-proof \
&& zokrates export-verifier
- Completes test contract in SolnSquareVerifier.sol
- Writes and passes the test cases in 'TestSolnSquareVerifier.js'
- Storefront: https://testnets.opensea.io/collection/smoked-cut-potato
- Token1: https://testnets.opensea.io/assets/rinkeby/0x88b48f654c30e99bc2e4a1559b4dcf1ad93fa656/12018692258504210061577519183504414610600541988278227211486949901420009095169
truffle migrate --network rinkeby
~/zokrates compute-witness -a {num_1} {num_1 * num_1}
~/zokrates generate-proof
- get
proof.json
andwitness
file