feat(proof): add private claims co-proof POC - #959
Draft
Dzejkop wants to merge 2 commits into
Draft
Conversation
Dzejkop
force-pushed
the
codex/claims-proof-poc
branch
from
August 28, 2026 10:54
64efc01 to
4d20c66
Compare
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.
Summary
claims_hashand verify that it is covered by the issuer credential signaturePrivacy model
The raw 15 claim slots and the recalculated
claims_hashare private circuit inputs. There is no public claims hash, salt, or claims commitment. Only the RP-requested predicates and the public context needed to pair and verify the two proofs are exposed.The RP must independently verify both the Circom nullifier proof and the Noir claims proof using matching public context. The claims verifier also requires the issuer public key resolved for the requested issuer/schema.
Claims-proof public inputs
The Noir ABI contains 68 public field elements grouped into three structs:
claims— 60 fields: 15 fixed claim slots, each containingcheck_min,check_max,range_check_min, andrange_check_max. The sparse indexed Rust statements are expanded into these slots internally. The two check flags are constrained to boolean values.credential— 5 fields:issuer_schema_id, issuer public key coordinatescred_pk[2],current_timestamp, andcred_genesis_issued_at_min.nullifier— 3 fields: the shared nullifiervalue,rp_id, andaction.The credential and nullifier fields must match the public context used to verify the companion Circom proof. In the Authenticator integration,
current_timestampis the request item's effectiveexpires_at_minpolicy value.POC limitations
wasm32Validation
nix develop --command sh -c 'cd crates/proof/noir/claims-proof && nargo fmt --check && nargo test && nargo compile'— 6 tests passedcargo test -p world-id-primitives— 167 unit tests, regression tests, and doctests passedcargo test -p world-id-proof --lib— 28 tests passedcargo test -p world-id-authenticator --lib— 19 tests passedcargo clippy -p world-id-primitives -p world-id-proof -p world-id-authenticator -p world-id-core --all-targets -- -D warnings