-
Notifications
You must be signed in to change notification settings - Fork 3
feat: ts tests for zk examples #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- 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
|
Important Review skippedIgnore keyword(s) in the title. ⛔ Ignored keywords (5)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
| if address_tree_pubkey.to_bytes() != light_sdk::constants::ADDRESS_TREE_V2 { | ||
| msg!("Invalid address tree"); | ||
| return Err(ProgramError::InvalidAccountData.into()); | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls revert
| if address_pubkey.to_bytes() != light_sdk::constants::ADDRESS_TREE_V2 { | ||
| msg!("Invalid address tree"); | ||
| return Err(ProgramError::InvalidAccountData.into()); | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls revert
56e1f61 to
a35d669
Compare
No description provided.