Skip to content

Conversation

@sergeytimoshin
Copy link
Contributor

No description provided.

tilo-14 and others added 7 commits January 13, 2026 01:14
- Move zk-id from root to zk/ folder
- Add zk-nullifier: single and batch (4x) nullifier creation with Groth16
- Add zk-merkle-proof: merkle proof verification with compressed accounts
- Update CI to test zk/zk-id, zk/zk-nullifier, zk/zk-merkle-proof
- zk-nullifier: Remove unused blake3 dependency
- zk-id: Update merkle proof circuit import path
- zk-merkle-proof: Add Anchor.toml, fix circuit import
… pattern

- verifying_key.rs → nullifier_1.rs
- batch_verifying_key.rs → nullifier_batch_4.rs
zk-nullifier:
- Split nullifier.circom into template + nullifier_main.circom
- Fixes multiple main components error when batchnullifier includes nullifier

zk-merkle-proof & zk-id:
- Replace Num2Bits_strict(levels) with Num2Bits(levels)
- Remove redundant LessThan range check (Num2Bits already constrains)
- Remove unused comparators.circom import
… pattern

- nullifier.circom: template-only library (Nullifier + BatchNullifier)
- nullifier_1.circom: entry point for single nullifier
- nullifier_4.circom: entry point for batch of 4 nullifiers
- Update setup.sh to compile new circuit files

Following circomlib best practice: templates in library files, minimal entry points.
- Add nullifier circuit with Poseidon hash for single nullifier creation
- Add batch nullifier circuit for creating 4 nullifiers with single proof
- Include setup script for circuit compilation and key generation
- Add e2e tests for both single and batch nullifier creation
- Remove incomplete mixer and shielded-pool examples
@coderabbitai
Copy link

coderabbitai bot commented Jan 14, 2026

Important

Review skipped

Ignore keyword(s) in the title.

⛔ Ignored keywords (5)
  • wip
  • draft
  • temp
  • test
  • experimental

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch sergey/ts-tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment on lines -60 to -64
if address_tree_pubkey.to_bytes() != light_sdk::constants::ADDRESS_TREE_V2 {
msg!("Invalid address tree");
return Err(ProgramError::InvalidAccountData.into());
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls revert

Comment on lines -187 to -191
if address_pubkey.to_bytes() != light_sdk::constants::ADDRESS_TREE_V2 {
msg!("Invalid address tree");
return Err(ProgramError::InvalidAccountData.into());
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls revert

@tilo-14 tilo-14 force-pushed the feat/add-nullifier branch 2 times, most recently from 56e1f61 to a35d669 Compare January 14, 2026 22:04
Base automatically changed from feat/add-nullifier to main January 15, 2026 02:04
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.

3 participants