feat: Privacy-preserving identity aggregator with anonymous XOR accumulator set membership proofs (#65) - #71
Merged
michaelvic123 merged 4 commits intoJul 30, 2026
Conversation
…ulator set membership proofs (laugh-tales#65)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Closes #65.
This PR introduces an anonymous, privacy-preserving cryptographic accumulator for each credential schema. It allows wallet subjects to prove valid membership in a schema holder set using a snapshot witness without revealing their specific wallet address or credential ID.
Changes Made
DataKey::SchemaAccumulator(u32)andDataKey::SchemaHolderCount(u32).0x00...00).issue_credential,batch_issue_credentials,bridge_credential,issue_multisig_credential, andrevoke_credential.get_schema_accumulator(env, schema_id) -> BytesN<32>get_schema_holder_count(env, schema_id) -> u32generate_membership_witness(env, subject, schema_id) -> (BytesN<32>, BytesN<32>)verify_membership_witness(env, schema_id, subject_hash, snapshot) -> booldocs/ARCHITECTURE.md.Test Plan & Verification
test_schema_accumulator_issue_and_revoke: Verifies accumulator state transitions on credential issuance and revocation, witness generation, and snapshot verification.cargo test.