Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 1.18 KB

README.md

File metadata and controls

23 lines (14 loc) · 1.18 KB

zkGraph Proof of Ownership

This zkGraph will access historical ownerships of the Azuki NFT collection on Sepolia

Azuki contract address on Sepolia testnet: 0x1bcCd53adbE63DD352410B31ea3b63DCCB627f75

Event being access on Sepolia Testnet: Transfer(address,address,uint256)

Usage CLI

Note: Only full image will be processed by zkOracle node. local (generated by commands ending with --local option) means the zkGraph is compiled locally and only contains partial computation (so that proving and executing will be faster).

The workflow of local zkGraph development must follow: Develop (code in /src) -> Compile (get compiled wasm image) -> Execute (get expected output) -> Prove (generate input and pre-test for actual proving in zkOracle) -> Verify (verify proof on-chain).

To upload and publish your zkGraph, you should Upload (upload code to IPFS), and then Publish (register zkGraph on onchain zkGraph Registry).

Commonly used commands

  • compile: npx zkgraph compile
  • exec: npx zkgraph exec <block id>
  • prove: npx zkgraph prove <block id> <expected state> -i|-t|-p
  • ……

Read more: https://github.com/hyperoracle/zkgraph-cli#cli