{"id":24567699,"url":"https://github.com/ronanyeah/sui-zk-airdrop","last_synced_at":"2025-07-21T16:10:25.384Z","repository":{"id":272800547,"uuid":"917800900","full_name":"ronanyeah/sui-zk-airdrop","owner":"ronanyeah","description":"Sui / Groth16 / Merkle Tree","archived":false,"fork":false,"pushed_at":"2025-01-16T17:32:43.000Z","size":63,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T11:34:13.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ronanyeah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-16T17:08:47.000Z","updated_at":"2025-01-27T22:51:36.000Z","dependencies_parsed_at":"2025-01-16T18:30:59.732Z","dependency_job_id":"3f8341cf-c10e-4aee-bf7e-d941917208ac","html_url":"https://github.com/ronanyeah/sui-zk-airdrop","commit_stats":null,"previous_names":["ronanyeah/sui-zk-airdrop"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ronanyeah/sui-zk-airdrop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronanyeah%2Fsui-zk-airdrop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronanyeah%2Fsui-zk-airdrop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronanyeah%2Fsui-zk-airdrop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronanyeah%2Fsui-zk-airdrop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronanyeah","download_url":"https://codeload.github.com/ronanyeah/sui-zk-airdrop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronanyeah%2Fsui-zk-airdrop/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266332720,"owners_count":23912663,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-23T14:00:46.926Z","updated_at":"2025-07-21T16:10:25.376Z","avatar_url":"https://github.com/ronanyeah.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# sui-zk-airdrop\n\nThis is a demonstration of using a Merkle Tree to contain a list of Sui wallet addresses. These wallets can verify their inclusion in this list onchain, by submitting offchain proofs.\n\nOnchain verification is managed by [Groth16](https://docs.sui.io/guides/developer/cryptography/groth16).\n\nThis infrastructure could be useful for airdrops where the number of wallets makes the gas costs of wallet-to-wallet transfers unfeasible, or if it it preferred that claimants interact in order to participate.\n\nThe wallet lists and Merkle roots can be stored on [Walrus](https://www.walrus.xyz/), to enable a fully decentralized user journey.\n\n---\n\n- [Sui contract](./sources/bagdrop.move)\n- [Circom circuit](./src/leanimt.circom)\n\n---\n\n### Build Instructions\n\n#### Compile the Circom circuit\n\u003e Requires installing [Circom](https://docs.circom.io/getting-started/installation/)\n\n`circom src/leanimt.circom -l ./path/to/circomlib/circuits --r1cs --wasm -o ./dist`\n\n#### Display the Merkle root\n\u003e This root will be saved onchain (and can also be stored alongside the leaves on Walrus)\n\n`cargo run --bin create_root`\n\n#### Generate claim values\n\u003e Any wallet in `./wallets.json` can be used\n\n`WALLET=0x5354085bc8a8d3f96383483a9ba42410476af916d42ff5dd4f05bad55608f2ce cargo run --bin generate_claim_proof`\n\nThese output values should be passed to the Sui contract and the claim can be validated.\n\n### Further resources:\n- [Lean Incremental Merkle Tree in Circom](https://github.com/privacy-scaling-explorations/zk-kit.circom/issues/17)\n- [fastcrypto-zkp](https://docs.rs/fastcrypto-zkp/latest/fastcrypto_zkp/)\n- [Sui Groth16](https://docs.sui.io/guides/developer/cryptography/groth16)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronanyeah%2Fsui-zk-airdrop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronanyeah%2Fsui-zk-airdrop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronanyeah%2Fsui-zk-airdrop/lists"}