Skip to content

feat: Outer nullifier oprf_pk_hash binding - #169

Merged
Sarkoxed merged 5 commits into
mainfrom
as/outer-oprf-pk-hash-binding
Oct 20, 2026
Merged

Sarkoxed merged 5 commits into
mainfrom
as/outer-oprf-pk-hash-binding

Conversation

@Sarkoxed

Copy link
Copy Markdown
Contributor

Closes a residual gap in the outer aggregator: the top level oprf_pk_hash was unconstrained for non salted nullifiers.

Comment on lines +137 to +142
// oprf_pk_hash is only meaningful for salted nullifiers (it is the OPRF service key
// hash). A non-salted subproof emits oprf_pk_hash = 0, which rides the per-subproof
// "== 0" wildcard below, leaving the top-level value otherwise unconstrained. Pin it:
// the top-level oprf_pk_hash must be zero unless the nullifier is salted, so a
// non-salted proof cannot publish a forged OPRF service hash.
assert(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

cna remove comment

@Sarkoxed
Sarkoxed merged commit 6a3b613 into main Oct 20, 2026
1 check passed
@mverzilli mverzilli mentioned this pull request Oct 21, 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.

2 participants