The capstone will build upon the knowledge you have gained in the course in order to build a decentralized housing product.
- Truffle v5.0.6 (core: 5.0.6)
- Solidity v0.5.2 (solc-js)
- Node v12 (Use v14 at first, however it can not migrate to rinkeby, so I downgrade to v12)
- Web3.js v1.5.3
- ERC721MintableComplete: eth-contracts/build/contracts/ERC721MintableComplete.json
- SquareVerifier: eth-contracts/build/contracts/SquareVerifier.json
- SolnSquareVerifier: eth-contracts/build/contracts/SolnSquareVerifier.json
- Storefront: https://testnets.opensea.io/collection/haohao-udacity-token
- Token1: https://testnets.opensea.io/assets/0xdf88c136c323d884edc1d47055deaeba59b2c64b/1
- Token2: https://testnets.opensea.io/assets/0xdf88c136c323d884edc1d47055deaeba59b2c64b/2
- Completes the boilerplate ERC721 Mintable Contract in ERC721Mintable.sol - π
- Writes and passes the test cases in TestERC721Mintable.js - π
- Writes and passes the test cases in 'TestSquareVerifier.js' - π
- Writes and passes the test cases in TestSolnSquareVerifier.js - π
Notes: SquareVerifier - A Contract to verify tx generate by zokrates
Notes: SolnSquareVerifier - A Contract to make sure a solution can be added and can mint
- 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 337 113569
zokrates generate-proof
zokrates export-verifier
- Completes test contract in SolnSquareVerifier.sol - π
- Writes and passes the test cases in 'TestSolnSquareVerifier.js' - π
- List ERC721/ ZoKrates tokens & complete transactions on market place - π
- Deploys ERC721 contracts with Zokrates integration - π
npm install
cd eth-contracts
truffle test
truffle migrate --network rinkeby
~/zokrates compute-witness -a {num_1} {num_1 * num_1}
~/zokrates generate-proof
- get
proof.json
andwitness
file