Skip to content

[WIP] Add zkTLS airdrop example#33

Open
critesjosh wants to merge 1 commit intonextfrom
add-zktls-airdrop-example
Open

[WIP] Add zkTLS airdrop example#33
critesjosh wants to merge 1 commit intonextfrom
add-zktls-airdrop-example

Conversation

@critesjosh
Copy link
Copy Markdown
Contributor

Summary

  • Adds zktls-airdrop/ example: fully-private token airdrop on Aztec using Primus zkTLS attestations to verify GitHub contributors
  • PrimusAirdrop contract verifies ECDSA-signed zkTLS attestations, prevents double-claims via nullifiers, and mints private tokens cross-contract via defi-wonderland/aztec-standards Token
  • Includes attestation generation, parsing, deployment scripts, benchmark tooling, and integration tests
  • Updates root .gitignore for .env, generated artifacts (store, artifacts, codegenCache.json, *.json.bak)
  • Adds .env.example with placeholder Primus API credentials
  • Updates root CLAUDE.md project structure

Test plan

  • cd zktls-airdrop && yarn install
  • yarn ccc compiles contract and generates TypeScript bindings
  • aztec start --local-network starts local network
  • yarn test runs integration tests (deploy + set_token + claim + double-claim rejection)
  • yarn claim deploys contracts and submits a claim with a valid attestation
  • yarn benchmark profiles gate counts for all contract operations
  • Verify .env is not tracked by git
  • Verify contract/target/, contract/artifacts/, node_modules/ are excluded

🤖 Generated with Claude Code

…stations

New example demonstrating fully-private token airdrops on Aztec using Primus
zkTLS attestations to verify GitHub contributors. Includes the PrimusAirdrop
contract, attestation generation/parsing scripts, deployment workflow, benchmark
tooling, and integration tests. Also adds .env.example and updates .gitignore
for generated artifacts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@critesjosh critesjosh changed the title Add zkTLS airdrop example [WIP] Add zkTLS airdrop example Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant