Manuscript Offprint
arXiv:2611.12636BioBind: Binding Biometric Deduplication to Zero-Knowledge Authentication
Taotao Wang, Xiaoxiao Wu, and Shengli Zhang
Abstract—Biometric identity systems for decentralized applications need credentials that resist repeated enrollment and support private, publicly verifiable authentication. Capture and large-scale private deduplication run off chain, while smart contracts authorize credential issuance and use. These stages span distinct trust domains, and a correct verdict covers only the checked inputs and gallery snapshot. Without binding and state checks, concurrent enrollments can issue duplicate credentials from correct verdicts, while substituted inputs can authorize unrelated credentials. We present BioBind, a protocol whose four backend interface conditions bind the deduplication query, gallery insertion and issued commitment to one captured vector, authenticate gallery transitions, and require a sound uniqueness verdict valid at finalization. Our encrypted instance uses bound requests, stale-session rejection and committee-confirmed gallery migration. Capture-bound zero-knowledge authentication links credential use to the enrolled template and a fresh device-originated probe bound to the challenge. We give a conditional multi-session composition argument under explicit capture, back-end and cryptographic assumptions. A prototype using LFW face features rejects the tested composition attacks; its unlinkable authentication circuit uses 31,445 constraints and approximately 305,000 gas. An equal-public-field baseline quantifies the cost of keeping matching verifiable, with witness-plus-proving medians of 1.989 s versus 1.119 s when the device is trusted with matching. Separate tests of encrypted enrollment complete three histories of 16,384 registrations without decoding errors at the tested checkpoints. Biometric accuracy bounds person-level uniqueness: on the Bosphorus database, cooperative subjects who change their appearance evade deduplication in 1.8% of re-enrollment attempts at the operating threshold. Full backend integration remains open.
Index Terms—Biometric deduplication, biometric authentication, proof of personhood, zero-knowledge proofs, Sybil resistance, smart contracts, composition.
I. INTRODUCTION
Decentralized applications use identity credentials to limit repeated participation and allocate one-per-person benefits without exposing a user's identity at every interaction [1], [2]. The one-person-one-account goal has also been proposed as a design requirement for Web 3.0 accounts that bind each account to one person while keeping its use anonymous [3], [4]. Formal proof-of-personhood work separates uniqueness, authenticated personhood and unlinkable use [5]. Biometrics can connect this goal to physical people: 1:N deduplication checks a newcomer against an enrollment gallery, and 1:1 authentication checks a later probe against an enrolled template. World ID combines a trusted capture device, private
uniqueness checking and credential use [2], while Kothari et al. demonstrate privacy-preserving fingerprint authentication with on-chain verification [6]. These settings motivate our question: how can a deduplication result become an enrollment record that subsequent private authentication can rely on?
The question is concrete at the boundary between off-chain biometric processing and on-chain credential management. Capture depends on physical devices, while encrypted search over large galleries is computationally intensive. These operations therefore typically take place off chain, with holders supplying proofs and contracts verifying evidence to authorize issuance and use. The stages span distinct trust domains, and an enrollee seeking multiple credentials can control its own host, submitted data and request timing. Without bindings among the capture record, deduplication request and gallery insertion, a valid verdict for one input may authorize a credential or gallery update derived from another. For example, if the ciphertext used to query the gallery and the one inserted afterwards are supplied separately without a consistency check, an enrollee could query with its captured template, receive a correct unique verdict, and insert an encrypted zero vector. The gallery then holds no entry for this person, and a second enrollment passes deduplication again. Even when query and insertion are consistent, concurrent enrollments can change the gallery after the verdict is computed, so uniqueness relative to an earlier snapshot need not justify issuance at finalization.
Existing systems address different parts of this boundary. World ID's published MPC protocol and BioZKFHE provide private 1:N deduplication through secret sharing and verifiable encrypted evaluation, respectively [7], [8]. Their adversary models differ, but either route still needs an enrollment protocol that makes a unique verdict justify the gallery update and credential that follow it. World ID describes storing the fragments used in a successful uniqueness check [2]; BioZKFHE instead updates its gallery with a separately encrypted insertion ciphertext, which the enrollment protocol must bind to the queried one.
On the authentication side, prior work proves a match against a committed enrollment template and verifies the proof on chain [6], [9]. These authentication proofs do not establish 1:N enrollment uniqueness or the provenance of a fresh capture. World ID's WIP-201/202 draft binds a trusted matching service's result to a credential and challenge in zero knowledge [10], [11]. Taken together, these systems leave open what a contract can rely on when it issues a credential: which captured vector was queried, which entry was added to the gallery, which commitment was issued, and whether the unique verdict still held when the entry was added.
The authors are with the College of Electronics and Information Engineering, Shenzhen University, Shenzhen 518060, China (e-mail: ttwang@szu.edu.cn; xxwu.eesissi@szu.edu.cn; zsl@szu.edu.cn).
BioBind makes these checks explicit under malicious enrollees and concurrent sessions, with capture and backend trust stated separately.
Two failures illustrate why these checks matter. In a snapshot race, one person opens two enrollment sessions on a snapshot that contains no entry of theirs. Both queries correctly return unique. If both sessions insert into fresh slots and issue credentials, that person enrolls twice even though each query and write is correct. In a dropped merge, the failure lies with the backend rather than the enrollee: the chain stores only a commitment to each gallery block and cannot recompute a merge of megabyte-sized ciphertexts, so a compute node can discard the new ciphertext and still report an updated commitment. The person is then absent from the gallery and can enroll again. We reproduce both on a plaintext model of BioZKFHE's gallery encoding, as detailed in Section V. These cases show why a valid off-chain verdict must be connected to the actual gallery transition before it can authorize on-chain issuance.
We present BioBind, a protocol and composition model that binds the deduplication query, gallery insertion and issued commitment to one captured enrollment vector. Later authentication proves a match between that commitment and a probe bound to the current challenge. The protocol requires the 1:N backend to meet four conditions under malicious enrollees and concurrent sessions, listed below. Our instance builds on BioZKFHE, which supplies the gallery encoding and the verifiable similarity evaluation. A certified enrollment station plays the honest client that BioZKFHE assumes, and its existing committee additionally confirms gallery integrity under the same corruption threshold. At authentication, raw features remain on the user side and the contract verifies the match without an online matching service. We also analyze how the conditions map onto World ID's secret-sharing protocol, where verdict soundness rests on a different trust model. We make three contributions.
-
Secure enrollment composition conditions. We identify four conditions a 1:N backend must meet: input binding, so that the queried, inserted and committed templates are one captured vector (I1); authenticated gallery transitions, so that an update appends exactly the declared entry (I2); verdict linearization, so that a verdict is used only if the gallery has not changed since it was computed (I3); and verdict soundness, so that a unique verdict is correct for the queried template and snapshot (I4). Counterexamples show the role of these conditions in the stated composition model.
-
Construction and conditional security. For a BioZKFHE-based backend, requests are bound to one captured vector when they are made, a session whose gallery snapshot has gone stale is rejected, and the committee confirms each merge of a new ciphertext into the gallery. Capture-bound authentication then connects the issued commitment to later use. A multi-session argument sorts failures into cryptographic ones, trusted-device assumptions, state invariants and biometric errors, and a separate conditional argument covers hiding which credential and device authenticated
from an on-chain observer.
- Implementation and evaluation. We implement the contracts, circuits and enrollment bridge, test them against the composition attacks, each paired with an honest run, and run the pipeline end to end on real LFW face features. A baseline with the same public inputs, in which the capture device attests to the match instead of the circuit proving it, measures the proving cost of keeping matching verifiable. Separate component tests run real BGV encryption through three histories of 16,384 registrations without decoding errors at the tested checkpoints, while the end-to-end pipeline uses a simulated committee. LFW measurements and evasive re-enrollment on the Bosphorus database show how biometric accuracy and limits on enrollment attempts bound person-level uniqueness: under controlled changes of appearance, 1.8% of re-enrollment attempts evade deduplication, and the end-to-end run records one missed duplicate.
A. Biometric Matching and Template Protection
A 1:1 check compares one probe and template, whereas 1:N deduplication searches a gallery. Matching errors therefore have different consequences as the gallery grows. ISO/IEC 24745 specifies protection goals for stored biometric references [12]. We focus on whether protected query, inserted template and credential originate from one capture; additional source comparisons appear in Supplementary Appendix D.
B. Private Deduplication and Enrollment
BioZKFHE provides verifiable encrypted similarity evaluation for a gallery snapshot under an honest-client assumption [8]. It encrypts the gallery under the BGV homomorphic encryption scheme and packs templates into ciphertext blocks. A compute node evaluates each 1:N query over these blocks and attaches a publicly verifiable proof for each block, and a threshold committee decrypts only the verdict. We call our instantiation on BioZKFHE the BGV instance. World ID's cited MPC protocol evaluates iris uniqueness under semi-honest, honest-majority assumptions [7]. In humanitarian aid, Wang et al. assume unique registration before private token use [13]; Janus studies the biometric registration step with MPC, somewhat homomorphic encryption and trusted hardware [14]. xDup addresses private deduplication across organizations using fuzzy private set intersection [15]. Our interface conditions concern the link from a bound private verdict to an authorized gallery transition and credential.
C. Biometric Authentication and Credentials
BAZKP, zkSABER, BioZero and Kothari et al. demonstrate different zero-knowledge 1:1 biometric checks [6], [9], [16], [17]. Krul et al. systematize trust in self-sovereign identity [18]; CanDID combines decentralized credentials with Sybil resistance [19]; and a formal personhood framework separates uniqueness from unlinkable use [5]. For anonymous credential use, zk-credits proves claims over existing identity
TABLE I
WHICH LINK OF THE UNIQUENESS-TO-AUTHENTICATION CHAIN EACH SYSTEM MAKES CHECKABLE, AND WHERE THE INPUTS TO THAT LINK COME FROM. THE TABLE CHARACTERIZES THE CITED VERSIONS, NOT A DEPLOYMENT AUDIT. NE MEANS NOT ESTABLISHED BY THE INSPECTED SOURCES; – MEANS OUTSIDE THE COMPARED OPERATION.
| System | 1:1 match verifiable | Uniqueness | Probe bound to capture | Enrollment provenance | Gallery write verifiable | Verdict linearized | Live state at acceptance | Off-device material |
|---|---|---|---|---|---|---|---|---|
| Kothari et al. [6] | yes | no | no | – | – | – | NE | ciphertext |
| BioZero [9] | yes | no | no | – | – | – | NE | commitments |
| BioZKFHE [8] | – | yes | – | honest client operator | NE | NE | – | ciphertexts |
| World ID iris-mpc [7] | – | yes | – | – | NE | NE | – | shares |
| World ID WIP-201/202 [10], [11] | enclave | – | engine | – | – | – | NE | images to enclave |
| BioBind (this paper) | yes | relative to backend | yes (ACM) | yes (I1) | yes (I2) | yes (I3) | yes | plaintext at ES |

Fig. 1. Enrollment and authentication in the evaluated BGV instance, linked by the enrollment commitment. The upper path binds capture, private deduplication, gallery migration and issuance; the lower path binds a fresh probe to credential use. Panels group components by trust domain; dashed cards are adversary-controlled. Features are processed inside the attended ES at enrollment and remain on the user side at authentication, under the trust assumptions detailed in Section III.
sources and Semaphore uses membership proofs and scoped nullifiers [20], [21]. BioBind links private enrollment deduplication, capture-bound authentication and live credential state.
D. World ID Context
World ID combines device-based enrollment, private uniqueness checking and credential use [2]. Its documented phone-local Face Auth [22] is distinct from the cloud-enclave re-authentication design in the WIP-201/202 drafts [10], [11]. The latter binds a matching result to a credential and challenge; our comparison concerns the registration-state interface and trust allocation. Table I summarizes the cited operations and input assumptions, without auditing current deployments.
III. SYSTEM AND TRUST MODEL
A. Parties
Figure 1 shows the off-chain capture and private deduplication paths connected to the on-chain gateway. Table II lists the parties and their trust responsibilities. Two certified devices form the capture trusted computing base. The enrollment station (ES) derives the protected query, insertion input and enrollment commitment from one captured, quantized vector; the protected inputs are ciphertexts in the BGV instance. Its default deployment is attended: staff supervise liveness and limit attempts before a person has a unique identifier. The authentication capture module (ACM) captures and quantizes each probe, commits to it under the current challenge, enforces an attempt budget and signs the result. Neither device decides whether a probe matches. That decision is split between two other parties. The holder's host, an ordinary phone or PC that we do not trust, produces a zero-knowledge proof that the committed probe lies within the registered threshold of the enrolled template; the on-chain gateway verifies this proof before it accepts. The devices therefore only need to capture honestly and sign, and a malicious host gains nothing from running the prover, because soundness prevents it from proving a match that does not exist.
B. Division of Trust
World ID's MPC protocol and verifiable encrypted evaluation protect templates and establish verdict integrity under different adversary models [7], [8]. I1–I4 specify their enrollment interface conditions. In the BGV instance, enrollment confidentiality relies on BGV and fewer than t corrupted committee members, who threshold-decrypt the verdict. The ES instantiated the honest client assumed by that backend. BioBind assigns the same committee an additional integrity
TABLE II PARTIES AND TRUST.
| Party | Role and trust |
|---|---|
| Holder | Enrolls, holds credentials, authenticates.Malicious: wants two credentials, someone else's credential, or more attempts. |
| Holder's host | Phone or PC that relays messages and runs the prover. Malicious: may alter, replay or substitute anything it relays. |
| Enrollment station (ES) | Enrollment capture, extraction and derivation.Trusted, certified and versioned; attended by default; erases the plaintext after sealing the session. |
| Authentication capture module (ACM) | Authentication capture, probe commitment, budget, signature. Trusted, certified; does not evaluate the policy. |
| 1:N backend | Private deduplication and authenticated gallery updates under I1–I4. Inherits its own model: malicious compute node and threshold committee in the BGV instance; passive, honest-majority computation in the cited MPC design. |
| Source contract | On-chain contract that binds each enrollment request to its gallery snapshot and aborts stale sessions. Public and deterministic. |
| Gateway | On-chain contract that checks signatures, digests, proofs and state, and advances state atomically. Public and deterministic. |
| Relying party | Sets policy, reads results. Curious; may collude to link users. |
| Observer | Reads all public data. Curious; links across applications. |
| Device authority | Registers, rotates and revokes device versions. Trust root. |
responsibility: members confirm the gallery-root migration in the finalization message, as detailed in Section VI-B. Thus the party set and corruption threshold are unchanged, but the committee's duty extends beyond confidentiality. Everyday authentication relies on the user-side ACM, the proof-system setup and the gateway contract, with no online committee or matching server, as detailed in Section IV.
C. Privacy Model
At authentication, raw images and embeddings stay in the ACM and the holder's host. At enrollment, the certified ES processes them, derives the protected inputs and commitment, seals the session and erases the plaintext without exposing it to its operator. This is the explicit NoRetain assumption of Section IV; only the self-enrollment variant also keeps enrollment on the user side. The ES receives the holder's identity commitment idc, a hash of a secret chosen by the holder, but never itself. Because the holder's host runs the prover of the matching proof, it receives the opening of the probe commitment, namely the quantized probe vector and its commitment randomness . Our privacy claim therefore does not hide the probe from a malicious host; hiding it would require an attested prover reached over an encrypted channel.
BioBind offers two authentication profiles that differ in what appears on chain. In the public profile, every authentication exposes the holder address, the credential handle, the enrollment commitment, the device key and a per-device counter, so an observer can link all authentications of one credential. The unlinkable profile, as detailed in Section VI-E, keeps
these handles in the zero-knowledge witness. In their place, the holder derives from a nullifier for each application, a pseudonym that stays fixed within that application and differs across applications. Because never reaches the ES, the station cannot compute these nullifiers to link the holder's authentications. Issuance caldata, the nullifiers themselves and funding edges remain observable. Section IX reports the trace audit, and Supplementary Appendix A-J states the conditional observer model.
IV. SECURITY DEFINITIONS
A. Syntax
The backend interface binds the protected query and insertion inputs, the queried snapshot and the finalization record to one enrollment commitment. Below we give the syntax of this interface for the BGV instance, in which the protected inputs are ciphertexts. Supplementary Appendix C-B maps the same conditions to an MPC backend, in which the protected inputs are secret shares. A feature vector has coordinates bounded by . The 1:1 relation uses squared Euclidean distance and a policy threshold ; the backend uses its own similarity and threshold , and the duplicate predicate is true when the similarity between and some entry of the gallery reaches .
Enrollment. The source contract opens a session sid whose context binds the current gallery snapshot and the number of templates enrolled so far. The ES captures from a person and derives three outputs from this single vector, so that the queried, inserted and committed templates coincide. The query ciphertext is what the backend compares against the snapshot to decide whether is already enrolled. The write ciphertext encodes at slot ; the gallery stores templates in slots numbered in enrollment order, so slot is the position reserved for the next template. After a unique verdict, is added to the gallery, so that later enrollments are checked against as well. The enrollment commitment
is a hiding commitment to under the policy digest , with randomness . Its third field is a context field, which binds a probe commitment to its authentication challenge; it is zero here because enrollment answers no challenge. The issued credential carries , and every later authentication proves a match against its opening, which ties credential use to the enrolled template without revealing it. The ES seals a pending record before releasing any output and signs the declaration
Here ctx is the session context, is a collision-resistant hash that replaces each ciphertext by a short digest, because BGV ciphertexts are too large to sign or store on chain, and slot is the write position declared for . The declaration is the ES's statement, made before the backend runs, that the three outputs come from one capture and belong to session sid at count . The source contract accepts the session's inputs only with a valid declaration from a registered ES, so a host that substitutes any output after signing is rejected.
The backend identifies against and finalizes the session with a record , where , and updates the gallery. The gateway issues a credential by consuming atomically together with the ES link signature
where ver collects the model, quantization and template versions. The two ES signatures guard the two ends of the backend. Whereas decl binds the inputs to the session before evaluation, link binds the verdict to the credential after it. The record carries only ciphertext digests and not , so without link a valid unique record could be presented together with an unrelated commitment, for instance one to another person's vector. The ES therefore signs link only when matches the pending record it sealed, and takes from that record rather than from the host. The credential thus carries the commitment derived from the deduplicated vector and is bound to its holder.
Authentication. The gateway issues a challenge . The ACM captures and commits to it under the challenge digest , placed in the context field:
The probe commitment fixes the probe before any proof is produced and ties it to this challenge, so a probe captured for one challenge cannot be reused for another. The ACM then consumes one unit of its attempt budget and signs the capture statement
where dev is the model and firmware measurement, ctr a per-device counter and exp an expiry time. The signature attests that commits to a fresh capture made by a certified device for this challenge and policy; the counter lets the gateway reject a replayed statement, and the expiry bounds how long it remains valid. Without this signature, the host could commit to a vector of its own choice, such as the enrolled template itself, and prove a distance of zero. With the probe thus fixed by a trusted device, the holder's host produces a zero-knowledge proof that it knows openings of (1) and (4), namely the two vectors and their randomness, that satisfy the match relation
The commitments, , and are public inputs, while the openings stay in the witness, so the gateway learns that the probe matches without seeing either vector. The gateway verifies and accepts after reading the current state of the credential, the policy and the device version, as detailed in Section VI-D.
Design choice. Three routes can check a fresh probe against an enrolled template. First, BioZKFHE treats 1:1 verification as a special case of its encrypted evaluation, comparing the probe against a single gallery slot; each authentication then needs the compute node and an online committee to decrypt the result. Second, World ID's draft re-authentication
design [10], [11] runs a closed matching engine inside a cloud enclave and uses a zero-knowledge proof to bind the enclave's signed result to a credential and challenge; the raw face leaves the user side, and matching correctness rests on the enclave and its provider. Third, zero-knowledge 1:1 checks such as BioZero [6], [9] let the holder prove a distance bound against a committed template. We take the third route, so that everyday authentication involves only the ACM, the holder's host and the gateway, keeps raw features on the user side and makes the comparison itself publicly verifiable. What BioBind adds is the binding around the proof: the commitment that opens is the one that link ties to the deduplicated vector, and the probe it opens is fixed by a certified capture under the current challenge. Supplementary Appendix C compares the trust placed in BioBind and in the World ID draft in more detail.
Lifecycle. After issuance, the state that authentication reads keeps changing. The holder or the relying party can revoke a credential, the device authority can rotate or revoke a device version, and a relying party can migrate its policy or model. Only the legitimate owner of each object issues these operations, but the adversary chooses when each one takes effect relative to pending challenges and authentications. The gateway must therefore decide on the state current at acceptance.
B. Adversary Model
The adversary controls all holders and their hosts, which run the provers, as well as the network, relayers and transaction ordering. It may open any number of concurrent enrollment and authentication sessions, including requests built directly against the source contract rather than through an ES, and it receives every opening handed to a holder's host. It may have the ES and the ACM capture any person in , the set of persons it can present to a device, and it chooses when each lifecycle operation takes effect. Inside the backend it corrupts whatever the backend's own model allows, which in the BGV instance is the compute node and up to committee members.
The adversary does not control the keys of unrevoked devices, the derivation inside a device, or the captures of honest users, who form the set , and it cannot break the assumptions on the cryptographic primitives. Corrupted devices and a malicious owner of a credential, device or policy form separate threat profiles that this paper does not cover. Retention is a separate assumption that concerns privacy only. Under NoRetain, the ES erases the plaintext image and vector after sealing the session, and its operator never receives them. If retention fails, that user's template leaks, but neither game below is affected. A failure of the derivation inside the ES is more serious, because it can produce a Sybil identity.
To state the winning conditions, the challenger keeps records of what actually happened. These records define the games only; no party reads them. The enrollment log holds each ES derivation (sid, p, v, , , , ), and the capture log holds each ACM capture. The linearization point of an operation is the transaction in which it takes effect on chain; for an enrollment session, it is the transaction in which the session finalizes and writes the gallery. The term comes from the theory of concurrent objects [23]. An operation such as an enrollment session spans several transactions and off-chain computation, but its effect is ordered as if it happened at this single point, and the adversary, who orders transactions, chooses how these points interleave. The ideal gallery is the map slot that the gallery should hold: at the linearization point of each session that finalizes as unique, it gains the entry . Finally, the challenger holds the FHE secret key, so the plaintext of any ciphertext is well defined.
C. Multi-Session Uniqueness Game
The uniqueness game asks whether the adversary can obtain a credential that honest enrollment would not have produced. It may run many sessions concurrently and wins in one of three ways.
Definition 1 (Game ). The adversary wins if, at the end of the experiment, one of the following holds.
W1 Commitment provenance: some issued credential with final record has no record in whose equals that of and whose equals the credential's commitment.
W2 Gallery integrity: at some time, the decrypted and decoded gallery differs from in some slot , or some slot is non-empty.
W3 Verdict linearization: some issued credential with session and vector has, immediately before 's atomic insertion, an entry with .
The uniqueness advantage of the adversary is its probability of winning, .
Each condition describes a different way in which a credential can escape deduplication. W1 is a credential whose commitment does not come from the vector that was deduplicated, which is the gap that link closes. W2 is a gallery that no longer equals the sequence of unique enrollments, so that later queries compare against the wrong templates. W3 is a credential issued to a person who was already in the gallery when the session took effect.
W3 is evaluated against the gallery at finalization, not against the snapshot the backend queried. The difference between the two is exactly the concurrency that the snapshot race exploits, as detailed in Section V. It is also why the game must range over many sessions: a game with a single acceptance cannot express it.
D. Capture-Bound Authentication Game
The authentication game asks whether the adversary can make the gateway accept a submission that is not a genuine match between an issued credential and a fresh capture. It wins if an accepted submission violates any of four conditions.
Definition 2 (Game ). The adversary wins if the gateway accepts a submission while one of the following fails.
U1 Credential origin: the credential is in the issuance log, its matches an record, and its record was consumed exactly once.
U2 Capture origin: appears in .
U3 Whole match: bounded openings of and exist, agree with the logged vectors and satisfy .
U4 Live state: credential, policy, device version, holder and freshness are valid and consistent at the linearization point, and success advances state atomically.
The authentication advantage of the adversary is its probability of winning, , where denotes that some accepted submission violates .
Each condition corresponds to one of the bindings in the syntax. U1 requires that the credential come from a consumed enrollment record, through link. U2 requires that the probe come from a certified capture for this challenge, through . U3 requires that the two committed vectors actually match, through . U4 requires that the gateway decide on the state current at acceptance, as the lifecycle operations demand.
E. Person-Level Sybil and Impersonation
The two games speak about vectors, but the goals of the system speak about people. Two further events capture these goals. SYB is the event that some person in holds two issued credentials, and Imp is the event that the credential of a fixed honest target user is accepted on a capture that is not that user's. Cryptography alone cannot exclude either event, because both also depend on how well the biometric matcher separates people.
Two biometric quantities capture this dependence. The miss rate bounds the probability, over any reachable history, that a new enrollment capture of a person fails to match that person's earlier gallery entry; bounds the number of enrollment captures summed over all adversarial persons, or the capture count of the target person when one person is fixed. The false-match bound bounds the probability that one capture of an adversarial person falls within of an honest user's template, and bounds the captures the adversary can expose within one budget scope. Both and are taken under adversarial presentation; the FNMR and FAR measured on a dataset are non-adversarial reference values for them, not substitutes.
Theorem 1 in Section VII bounds SYB by and, when the ACM enforces its capture budget, bounds Imp by . The first bound shows that enrollment also needs an attempt budget. Because a person cannot be counted before deduplication, we treat as a deployment parameter, which an attended station can enforce.
F. Unlinkability Game
The unlinkability game asks whether an observer of the public chain can tell which of two honest holders authenticated in an application. It concerns the unlinkable profile, and the observer only reads the chain instead of controlling holders' hosts.
Definition 3 (Game ). The observer receives the entire public chain transcript, including issuance caldata, all nine public inputs of each authentication, proof bytes, transaction senders and funding edges. Two honest candidates use the same policy and valid tree roots, and each can authenticate successfully; their hosts, devices and identity secrets remain private. The observer chooses a fresh scope in which neither candidate has authenticated, a candidate is chosen uniformly at random and authenticates once in that scope, and the observer outputs a guess . The observer may query either candidate in other scopes, but not in the challenge scope, before or after the challenge. The unlinkability advantage of the observer is .
The game excludes corrupting a candidate and revoking selectively so that the two candidates differ in eligibility. The accounts, funding, timing, ordering and outcome of the challenge transaction must also have the same distribution whichever candidate is chosen. This equal-metadata condition does not require equal nullifiers, probe commitments or proof bytes, since their indistinguishability is exactly what the profile must achieve. Under the zero-knowledge, commitment-hiding and pseudorandomness assumptions stated in Supplementary Appendix A-J, is negligible. The claim is conditional and holds at the protocol level. It excludes identification through the network, compromise of a holder's host or device, and metadata that differs between the candidates, and it does not promise anonymity from fresh addresses alone.
V. CONDITIONS FOR SECURE ENROLLMENT COMPOSITION
A. The Four Conditions
The enrollment contract must connect an off-chain verdict to the vector written into the gallery and the record consumed at issuance. A bound snapshot identifies what was queried; additional checks establish what was committed and whether the verdict was still applicable. We call a backend, together with its source contract and enrollment station, composable under malicious enrollees if it meets the following four conditions. They concern logical templates and gallery state, and their realization depends on the backend representation and adversary model; Section VI realizes them for the BGV instance. Authentication is governed separately by the conditions U1–U4, as discussed in Section IV.
I1 Input binding. (a) At request time, the source binds the session and policy to query and insertion inputs derived by a registered ES from one captured template. (b) Authenticated input references identify the actual protected objects consumed by the backend; their template consistency is established by trusted derivation or a proof, not by hashes alone. (c) Issuance requires an ES link from the matching pending record to the final record and credential commitment.
I2 Authenticated gallery transition. (a) The source assigns the next slot from the authenticated count at write time. (b) An accepted transition appends the declared insertion template at that slot, preserves earlier entries and leaves later slots empty. (c) The write and unique finalization share one linearization point: each occurs exactly once with the other, and all other sessions leave the gallery unchanged.
I3 Verdict linearization. A session may finalize as unique only if no write occurred after the snapshot it queried; otherwise it aborts and the person retries with a new session and a new capture. Under I2(a), “no write” is equivalent to “the count is unchanged”, which gives a stale-slot abort.
I4 Verdict soundness. Under the backend's stated corruption model, a unique verdict is sound for the bound query template and logical gallery snapshot, except with negligible probability over the permitted adaptive session history.
B. Counterexamples
We test each premise by removing it and exhibiting an adversary that then wins, and Table III summarizes the resulting counterexamples, each with the removed premise, the adversary's action and the violated winning condition. The table groups them by the premise they remove. Besides the enrollment premises, it lists the two authentication premises that the same chain evaluation tests, so that the evidence for all executed counterexamples appears in one place. The E-series runs on a local chain against our gateway with synthetic vectors. The A-series and the dropped merge run on a plaintext model of BioZKFHE's packed gallery with blocks of twelve templates; they do not execute its block proofs, threshold decryption or committee protocol.
The enrollment rows also show that each condition is independent of the other three: for each there is a backend that meets the other three, violates , and admits an adversary that wins with probability close to one. E1 and A1 remove parts of I1; A2, A3 and the dropped merge remove parts of I2; and A3' removes I3 while I1, I2 and I4 hold. For I4 the witness is trivial: a backend that answers unique without comparing satisfies I1–I3 and lets the same person enroll twice. Independence is a statement about this set of conditions only; it is not a lower bound over all designs.
Three cautions apply. First, the counterexamples show that a premise is needed for the composition; they do not show that a strong signature baseline fails, since a trusted matcher that signs correct results also excludes E1–E3. Second, A1–A3 need a malicious enrollment client, which BioZKFHE's model excludes; they are conditions the composition must add, not vulnerabilities of BioZKFHE. Third, A2 does not let the adversary escape deduplication, because inner products are linear; its effect is misidentification and a wrong count.
C. The Snapshot Race
A3' deserves separate attention because every component is correct in it. Assume I1 and I2: every write takes a fresh slot at write time, and its content is bound to the declared digest. BioZKFHE binds the gallery snapshot into the session context, and its block proofs authenticate each block against the snapshot resolved from that context. A person opens two sessions on the same snapshot s, which contains no vector of theirs. Both verdicts are unique; finalizes and
TABLE III
COUNTEREXAMPLES, GROUPED BY THE PREMISE THEY REMOVE: REMOVED PREMISE, ADVERSARY ACTION, VIOLATED CONDITION AND EVIDENCE.
| ID | Removed premise | Adversary action | Violates | Status (run) |
|---|---|---|---|---|
| Enrollment premises (I1–I4) | ||||
| E1 | Issuance checks ES link (I1c) | Present a valid unique receipt with an unrelated commitment, e.g. of another person's vector | W1 | Executed, chain† |
| A1 | Request-time input binding (I1a) | Query Enc(v_A) but write Enc(0); enroll again later | W1 | Executed, model (R-BRIDGE-20261025) |
| A2 | Slot from authenticated count (I2a) | Declare while ; template is added onto user I's slot | W2 | Executed, model; misidentification, not Sybil |
| A3 | Write-time slot, serialization | Two honest sessions prepared at the same both write slot | W2 | Executed, model |
| A3' | Verdict linearization (I3) | Same person opens two sessions on one snapshot; both judged unique | W3 | Executed, model (R-A3P-20261027) |
| Drop | Verifiable root migration (I2b) | Compute node drops at a merge; caller supplies the next root | W2 | Executed, model (R-ROOTMIG-20261027) |
| Authentication premises (U1–U4) | ||||
| E2 | ACM derives its own probe | Signing API accepts a host-built ; host sets v' = v and proves distance 0 | U2 | Executed, chain† |
| E3 | Live state at acceptance | Gateway caches authorization at challenge time; owner revokes before submission | U4 | Executed, chain†; our gateway rejects |
†build/provenance-evaluation/result.json; R-PROV-20261028 (local synthetic evaluation).
TABLE IV
A3' UNDER THREE VERDICT SEMANTICS (PLAINTEXT GALLERY MODEL WITH BLOCKS OF TWELVE TEMPLATES, AFTER TEN HONEST ENROLLMENTS).
| Verdict semantics | A, 1st | A, 2nd | Two people |
|---|---|---|---|
| Gallery at finalization | unique | dup | both pass |
| Session snapshot | unique | unique | both pass |
| Snapshot + stale abort (I3) | unique | abort; retry dup | 2nd aborts; retry passes |
writes; finalizes and writes another fresh slot. At 's finalization, already contains and holds, so W3 occurs while I1, I2 and I4 hold. This is an abstract backend variant that permits trusted re-encoding of the same captured vector into a fresh write slot. It is not obtained by merely removing a check from our fixed-slot ciphertext implementation: that implementation additionally binds the declaration to the snapshot count.
We execute A3' after ten honest enrollments. Table IV reports the outcome under three verdict semantics. With the gallery at finalization, the second session is a duplicate. With BioZKFHE's snapshot semantics, the person is accepted twice. With snapshot semantics and a stale abort, the second session aborts and its retry is a duplicate. The abort also stops one of two different people who enroll concurrently; that person retries successfully, so the cost is availability, not security. Figure 2 illustrates the timeline.
D. Existing Backends
Table V assesses three configurations against I1–I4. BioZKFHE's published protocol binds but not , and its count, slot and gallery root are supplied by the client or caller; its public repository is an experiment reproduction package without an enrollment path or an implemented

Fig. 2. Snapshot race A3'. Two sessions of the same person open on snapshot s with count , and both verdicts on s are unique. Under snapshot semantics the second session also writes, yielding two credentials despite correct queries and writes; with I3 the changed count aborts the second session.
gallery update, so I3 is unspecified. We implement the bound extension ourselves, as detailed in Section VI. World ID's published MPC protocol studies private iris deduplication under semi-honest, honest-majority assumptions [7]. Supplementary Appendix C-B maps I1–I4 to a proposed World ID-inspired MPC instance: input binding and serialized issuance remain necessary, while verdict integrity depends on the backend's adversary model. This interface comparison does not establish properties of the deployed World ID service. A “no” denotes an unmet composition condition for malicious enrollees outside BioZKFHE's model, not a backend flaw.
VI. CONCRETE CONSTRUCTION OF BIOBIND
This section makes each step of the syntax in Section IV concrete, in the same order: enrollment in the first two subsections, issuance and lifecycle operations in the third, authentication in the fourth and the unlinkable profile in the last. It realizes the interface conditions I1–I4 for the BGV instance and connects off-chain biometric processing to two on-chain decisions: issuance from a finalized enrollment record and authentication against the commitment that the
TABLE V
INTERFACE CONDITIONS FOR THREE BACKEND CONFIGURATIONS. NE MARKS AN INTERFACE CONDITION NOT ESTABLISHED BY THE SOURCES INSPECTED, RATHER THAN AN ABSENT DEPLOYMENT PROPERTY. THE WORLD ID COMPARISON USES THE CITED MPC PROTOCOL, NOT A FULL SERVICE AUDIT.
| BioZKFHE [8] | BioBind on BioZKFHE | World ID MPC [7] | |
|---|---|---|---|
| I1 | no: unbound | yes, trusting ES derivation | NE |
| I2 | no: client-supplied N, slot, root | yes (Section VI-B) | NE |
| I3 | unspecified | yes: stale abort | NE |
| I4 | yes, plus two implementation requirements | yes | semi-honest, honest majority |
record carries. On the enrollment side, we extend BioZKFHE's session handling with a source contract that binds the inputs, checks the gallery state and migrates the gallery, and with a finalization adapter that exposes each finalized record to the gateway. On the authentication side, the capture-bound proof links the issued commitment to the current challenge.
The BGV instance realizes the four conditions as follows. I1 relies on digests of canonically serialized ciphertexts, the declaration (2) and the link signature (3). I2 relies on the committee-confirmed gallery update, as detailed in Section VI-B, under the correctness conditions C1–C4 stated in Section VII. For I4, a unique verdict means that the decrypted query matches no entry of the decrypted snapshot gallery , that is, . This follows from BioZKFHE's result integrity, provided that the gateway checks the committee roster and accepts only block-proof openings verified against their quadratic arithmetic programs. I3 is the stale-session check of the finalization step below. Section VII separates the state argument common to all backends from these instance-specific bounds.
A. Bound Enrollment
Session creation. When a session opens, the source contract binds into its context a digest of the on-chain gallery state, which is the snapshot the backend will query. The chain stores only a commitment to each ciphertext block of the gallery, so this state consists of a hash chain over the closed blocks, the commitment of the last block, the number M of blocks and the template count N.
Request binding. The ES performs the single-capture derivation and signs the declaration (2), as discussed in Section IV; the source contract then checks the declaration against the on-chain state. Each gallery block holds templates, arranged in columns and packed layers, so the slot of the next template lies in column and layer of the last block, where . The source accepts the request only if the signer is a registered ES, the declared equals both the snapshot count and the current count, and the declared column and layer equal ; these checks realize I1(a) and I2(a). We index from zero; BioZKFHE indexes the same slot from one. A holder's host that swaps after the

Fig. 3. On-chain state machine of an enrollment session, with the check on each transition. Only Finalized leads to issuance; a stale or duplicate session cannot be issued a credential.
ES has signed, or omits the declaration, is rejected because the signature no longer verifies for a registered station.
Finalization. At least t members of the registered committee, called the roster, sign one confirmation that covers the verdict y, the digest of the backend's outputs and the gallery migration. If y = unique but N has changed since the snapshot, the session ends as AbortedStaleSlot, as I3 requires. Otherwise the contract checks the migration, as detailed in Section VI-B, updates the block commitments and N, and marks the session finalized in the same transaction, as I2(c) requires. Signers must appear in strictly increasing address order, so a repeated signature cannot be counted twice, and addresses outside the roster do not count. Figure 3 illustrates the resulting state machine.
B. Gallery-Root Migration
After a unique verdict, the gallery update either appends or merges. When the last block is full , becomes a new block and its commitment is . Otherwise the last block becomes under homomorphic addition, and its new commitment is not a function of . The chain can therefore check an append directly, but cannot check a merge: BGV ciphertexts are megabytes in size, so neither nor the addition fits on chain. If the next root is supplied by the caller, as in BioZKFHE's public implementation, a compute node can drop at a merge and still report success.
Instead of recomputing a merge, the chain accepts it when the committee that the backend already has confirms it. A merge migration is the statement , signed as , where is the index of the merged block, and are its commitments before and after the merge, and are the template counts, and is the digest bound at request time. An honest member signs only if it holds canonical, uncompressed serializations of and with and and its own equals . Members use the same deterministic BGV addition algorithm, including correction-factor handling; with matching levels and correction factors it reduces to coefficient-wise modular addition. The contract requires slot = and ; for an append it requires with no signature; for a merge it requires and distinct roster signatures. The finalization confirmation binds the session, inputs, verdict and migration; Supplementary Appendix E-A specifies its roster, data-availability and byte-level requirements.
The rule changes what the committee is responsible for. Corrupting members now breaks gallery integrity as well as confidentiality. A compute node that withholds the ciphertexts only prevents finalization, which is an availability failure: the session aborts and the person retries. Liveness needs at least honest members online.
C. Issuance and Lifecycle Operations
Issuance consumes the final record atomically and requires the link signature (3), whose role is discussed in Section IV; each record therefore yields at most one credential. The lifecycle operations of Section IV change on-chain records that the gateway reads in the transaction that accepts an authentication: the credential's status, the policy and the registered device versions. Revoking any of them therefore takes effect at the next acceptance, without notifying holders or invalidating pending challenges. Template replacement is limited. Because the gallery only grows, a person cannot pass deduplication again under the same model, so same-model template refresh would need a new backend operation. Model or quantization migration requires a new gallery, a continuity check and a frozen old gallery.
D. Authentication
In the public profile the circuit has five public signals . It constrains the openings of the two commitments (1) and (4), checks every coordinate's range, and checks the match relation (6). In one transaction the gateway checks that the sender is the challenge's beneficiary, the address for which the challenge was issued, and that the challenge is pending and unexpired; that the credential, policy and device version are active in the current state; that the public signals equal the credential's , the policy digest, the registered threshold and the reduced challenge digest; that the ACM statement (5) carries the same and context, matching device metadata and a counter above the last one; that the statement's signature recovers the device's registered key; and that the Groth16 verifier accepts. On success it deletes the challenge and advances the counter in the same state transition.
E. Unlinkable Profile
As discussed in Section III, the public profile exposes the holder's credential handles at every authentication. The unlinkable profile keeps enrollment public and makes use
private, following the Semaphore pattern [21]. Before issuance the holder chooses an identity secret and submits the identity commitment [24], which the ES link signature covers. Issuance inserts the leaf Poseidon() into an incremental Poseidon Merkle tree of depth 20 in the same transaction that consumes the record. Devices use EdDSA keys on BabyJubJub. Each person carries one capture module, so active device versions are leaves in an equally deep device tree.
The circuit of the unlinkable profile takes nine public inputs: the two tree roots, , the policy digest and threshold, the challenge digest, the capture expiry, a scope and a nullifier. It proves that a credential leaf built from and Poseidon() is in the credential tree; that and open to vectors satisfying (6); that a device leaf is in the device tree and its key signed , a variant of the capture statement (5) without the per-device counter and without any credential handle; and that . With scope , where hashes into the field of the proof system, the nullifier is a stable pseudonym within an application, and with an action identifier added it is a one-time token with a distinct action domain. Both scopes use Keccak ABI encoding reduced modulo the field order in the implementation. Conditional on person-level uniqueness and preservation of idc across any future migration, one person has at most one nullifier per application. A missed duplicate can violate that premise.
The gateway accepts if the challenge is pending and the sender is its beneficiary; both roots are in their root histories at or after the minimum valid epoch; the policy and threshold match; a one-time nullifier is unused; and the proof verifies. The current contract has no interface for delegated relayers, so the holder submits the transaction itself. Revocation zeroes the leaf and raises the minimum valid epoch to the current one, so proofs against older roots are rejected and revocation takes effect at the next acceptance. The price is that every holder must re-prove against the new root after any revocation. The per-device counter is dropped, because it would identify the device; the attempt budget then rests on the ACM alone. Figure 4 shows the circuit's constraint groups and the public inputs each group binds.
VII. SECURITY ANALYSIS
The security argument follows the enrollment record across the off-chain and on-chain boundary. The gallery invariant ties decoded entries to the ideal registration history; finalization and single-use issuance tie each credential to that history. Authentication then ties its template to the current device-originated probe and live authorization state. We state the multi-query bounds below; Supplementary Appendix A gives the full conditional arguments.
A. Backend-Independent State Argument
The first part of the argument does not depend on how the backend represents templates. Starting from an empty gallery

Fig. 4. Constraint groups of the authentication circuit of the unlinkable profile and the public inputs each group binds. The credential handle, the enrollment commitment and the device key stay in the witness.
and with single-use issuance, I1 binds each credential to its captured template. Induction over the I2 transitions shows that the logical gallery equals the history of finalized enrollments. I3 makes the snapshot that a session queried equal to that history at the session's finalization, and I4 then excludes an earlier matching entry. Supplementary Lemma S1 bounds the probability that any of these steps fails over the entire adaptive execution. Each backend must establish the premises I1–I4 under its own adversary model.
B. BGV Instance and Concrete Bounds
For the BGV instance, the correctness conditions are explicit: (C1) the packed similarity scores decode exactly, without wrapping around the plaintext modulus. Coordinate bounds alone do not ensure this, so the ES normalizes each embedding to unit length before scaling by and rounding, which bounds every query-template inner product; (C2) every block decrypts correctly after its allowed enrollment additions and full query evaluation; (C3) addition is deterministic under fixed parameters, representation and canonical serialization, including BGV correction factors; and (C4) an enrollment encoding changes only its designated empty slot. Supplementary Appendix A gives the precise domain and capacity requirements. These are correctness premises, not consequences of the signature or proof assumptions.
Let be the number of enrollment sessions, and the numbers of registered device versions, and the signing queries per device key, and the committee size and threshold, the migration signatures per member, and the accepted authentications. is the single-key EUF-CMA advantage with queries, the collision advantage against with domain separation, and the advantage against BioZKFHE's result-integrity experiment for one session. Likewise, is the collision advantage against the hash into the circuit field, the binding advantage against Com, and the knowledge-
soundness advantage against the proof system II. Three events are not cryptographic: DerivFail and DerivFail are the events that a device's internal derivation deviates from its specification, and BadState is the event that the deployed contracts violate their state invariant.
Theorem 1 (Lifecycle binding for the BGV instance). Suppose the backend meets I1–I4 and the correctness conditions (C1)–(C4) of Supplementary Appendix A hold, at most committee members are corrupted, the ES and ACM signatures are EUF-CMA, H is collision resistant with unambiguous, domain-separated encodings, Com is computationally binding, and the proof system is knowledge sound for the matching relation of Section IV, given by Eqs. (1), (4) and (6), in the presence of honest-proof auxiliary input, as specified in Supplementary Appendix A-I. Then for every PPT adversary
and at the level of people,
where is the number of captures presented against , and when the ACM budget holds.
For this instance, the backend term uses BioZKFHE's single-session result integrity. Its extension to concurrent sessions requires local soundness for adaptively chosen statements under shared parameters; counts all initiated sessions, including aborts and duplicates. Supplementary Appendix A-F gives the concrete bound. Enrollment history and malicious insertion inputs are handled by W1–W3, separately from that backend result.
The authentication bound of the public profile extends to the unlinkable profile with one additional term , which bounds a membership failure anywhere in the execution, including an attempt to open an empty leaf as a valid credential or device. Supplementary Appendix A-I gives the argument and its assumptions.
C. Proof Outline
Supplementary Appendix A proves the theorem through three lemmas, whose ideas we outline here. Lemma U shows that if none of W1–W3 occurs, no two issued credentials carry duplicate vectors: the chain orders their finalizations, the earlier vector enters G and stays there because the gallery only grows, and at the later finalization excludes a duplicate. BioZKFHE's per-slot inner-product threshold is entry-wise and symmetric, as this argument requires. Lemma R bounds the acceptance of a merge with a wrong new commitment by . Any t accepted roster signatures include one from an honest member, which is either a forgery or was computed from ciphertexts that collide with the true ones; the lemma therefore reuses the threshold assumption of BioZKFHE's result integrity instead of adding a new one. Lemma S then shows that, in the absence of a forgery, a collision, a derivation failure, a bad migration and a bad verdict, the link signature excludes W1, an induction over gallery changes excludes W2, and I3 and I4 together exclude W3. Guessing the session reduces a bad verdict to BioZKFHE's single-session experiment, at the cost of the factor .
At the level of people, I3 also excludes the capture order that W3 alone would miss: a session that opened before a person's first vector entered the gallery but finalized after it sees a changed count and aborts. A conditional union bound over the remaining captures gives without assuming independence, and Eq. (10) follows in the same way for authentication captures, because an honest user's own capture is bound to that user's challenge. The authentication bound replaces each check of the gateway by the corresponding assumption. Because the adversary sees honest proofs, extraction must succeed in their presence; we state this as an explicit assumption, since ordinary knowledge soundness and re-randomizability do not establish it, and whether the deployed Groth16 instantiation meets it still requires independent review. This part of the proof is a standard hybrid. The uniqueness part is not: the induction over gallery transitions, verdict linearization, whose necessity the snapshot race shows, and the root migration of Lemma R cannot be argued one acceptance at a time.
D. Nature of the Error Terms
Table VI classifies the terms. Only the first row consists of standard assumptions that can be cited as such. is heuristic: the context and policy digests are Keccak outputs reduced modulo the field order , which is not implied by Keccak's collision resistance, and in the random-oracle model it is at most for challenges and policies. Placing the full 256-bit digest in the circuit as two field elements would remove it. Knowledge soundness requires a trusted setup, which our local single-party benchmark setup does not provide. The derivation failures are trusted-computing-base assumptions and are not reduced. The state term is a deterministic program invariant: it is zero if the deployed bytecode meets its specification, and establishing that needs an audit and adversarial ordering tests. The biometric terms cannot be replaced by dataset metrics.
VIII. PROTOTYPE IMPLEMENTATION
The enrollment source has reference and compact versions with the same checks. The compact version stores record digests and authenticates records supplied as caldata; its adapter re-encodes each final record and checks the digest before issuance. The public gateway implements the live-state and lifecycle checks; the gateway of the unlinkable profile uses two incremental Poseidon trees with epoch-tagged root histories. The evaluated circuit of the unlinkable profile uses , 12-bit coordinates (), commitment format v2 and depth-20 trees. Format v2 absorbs fifteen packed chunks per
TABLE VI ERROR TERMS OF THEOREM 1.
| Term | Type | Current status |
|---|---|---|
| AdveufSig, AdvcrH, | Standard assumptions | Citable |
| AdvbindCom | Heuristic (ROM birthday bound) | Removable by a 256-bit in-circuit context |
| AdvksII | Extraction with honest-proof auxiliary input | Needs trusted setup; prototype setup does not qualify |
| Advres-intB | BioZKFHE result integrity | Concrete per session (its Cor. 1); multi-session union is ours |
| Pr[DerivFailES], Pr[DerivFailACM] | TCB assumptions | Not reduced; software devices only |
| Pr[BadState] | Implementation invariant | Needs audit and ordering tests |
| fnm, fmax | Biometric, adversarial presentation | Assumptions; dataset rates are non-adversarial references |
Poseidon call instead of two, reducing each commitment by about 2,175 constraints. Supplementary Appendix E gives the record encoding, commitment formats and hash-library optimization.
A software enrollment bridge and a mock ACM implement the ES and ACM roles with software keys. The bridge derives transparent stand-ins for the query and insertion ciphertexts together with the enrollment commitment from one vector, seals a pending record, and signs declarations and links. The simulated committee evaluates the 1:N query on plaintext snapshots and merges the stand-ins; block proofs, the check that every block is proved, and threshold decryption are not executed. Separate C++ experiments, detailed in Section IX-F, execute real BGV components that are not integrated into this pipeline.
We align faces with MTCNN [25] and extract -normalized, 512-dimensional InceptionResnetV1 embeddings pretrained on VGGFace2 [26]. Quantization scales by and rounds half away from zero. Contracts run on local Ganache; circuits use Circom and snarkjs. Groth16 uses local single-party benchmark setups whose keys are not deployable. The contracts, circuits, evaluation scripts and the outputs behind every reported number are available at https://github.com/plan-lab-szu/biobind; its README lists the toolchain versions and maps each result to its scripts and run identifier, and Supplementary Appendix E gives further build details.
IX. EXPERIMENTAL EVALUATION
We evaluate whether the implementation rejects the composition attacks, what verifiable matching adds relative to trusted matching, and what the selected circuits and contracts cost. We then examine the separate BGV component requirements and the biometric accuracy that limits person-level uniqueness. Local experiments use software keys and benchmark-only Groth16 setups; the enrollment pipeline uses a simulated committee. Gas is measured per transaction, proving times follow the reported repeated-run protocols, and the cost composition explicitly separates published BioZKFHE data from our measurements. Run identifiers link the results to the reproduction records.
A. Negative Controls and End-to-End Runs
The implementation rejects the tested input substitutions, slot and snapshot races, invalid migration confirmations, repeated issuance, unauthorized authentication and stale-root proofs. Each attack has a successful honest control; all 45 tests pass, and fourteen honest enrollments across a block boundary preserve the expected last-block commitment. Supplementary Appendix F lists the controls and run identifiers.
An end-to-end run with real LFW features passes all eight checks. Two people enroll through the software bridge and simulated committee, authenticate with other images of themselves and obtain stable scope pseudonyms; an impostor's probe fails witness generation. However, the calibrated deduplication threshold misses a re-enrollment using another image, and that person obtains a second credential. This illustrates the biometric-error contribution in Eq. (9): the protocol executes correctly, but the tested operating point has a non-adversarial missed-duplicate rate of about 17%. Authentication costs 305,060–305,072 gas in this run; the matched proving-time comparison follows below.
B. Comparison with a Strong Signature Baseline
A trusted matcher with the same capture and live-state checks also excludes E1–E3. We compare retaining verifiable opening and matching constraints with additionally trusting those operations to the device. The main comparison uses equal public fields in the unlinkable profile; Supplementary Appendix F-B reports the public-profile signature variants.
For an equal-public-field comparison in the unlinkable profile, we implemented a second relation that retains both hidden memberships, the identity secret and scope nullifier. The device checks the enrollment opening and match, then signs the enrollment commitment and threshold together with the existing capture fields under a separate domain. The proof verifies that signature without exposing which device or credential was used. Both relations have the same nine public inputs and depth-20 trees; matching is the changed trust assumption. This baseline still needs ZK for membership privacy, so public-profile signature costs cannot serve as its gas estimate.
With the same real 512-dimensional LFW inputs, the attested relation has 15,534 constraints versus 31,445 for ZK matching, a 50.6% reduction. Its authentication costs 305,048–305,060 gas, essentially unchanged because the public input count and gateway checks are unchanged (R-PRIVATT-20261030). The first challenge costs 140,577 gas and subsequent ones 123,477. All eight end-to-end controls, seven statement-binding controls and rejection of a capture-only signature pass. A deliberately false match signed by the authorized software device is accepted, making the added trust assumption explicit. In five alternating-order rounds after one warmup, witness plus proving medians are 1.989 s for ZK matching and 1.119 s for attested matching (R-PRIVTIME-20261030); these exclude capture, TCB matching/opening
TABLE VII
CIRCUIT OF THE UNLINKABLE PROFILE ( UNLESS NOTED): CONSTRAINTS AND PROVING TIME (MEDIAN OF FIVE ALTERNATING RUNS, ONE LOCAL CPU).
| Circuit | Constraints | Witness | Prove | Total |
|---|---|---|---|---|
| v1, 12-bit, device tree 10 | 33,463 | 297 ms | 1,761 ms | 2,040 ms |
| v2, 12-bit, device tree 10 | 29,025 | 414 ms | 1,310 ms | 1,724 ms |
| v2, 12-bit, device tree 20 | 31,445 | 423 ms | 1,354 ms | 1,801 ms |
| v2, 8-bit, device tree 10 | 24,863 | not timed | ||
| v2, 16-bit, device tree 10 | 34,331 | not timed | ||
| v2, , 16-bit | 19,247 | not timed |
checks, signing and network time. The baseline removes verifiable matching from the circuit; it does not remove trust in capture from either profile.
C. Circuit Cost
Table VII reports circuit costs. Format v2 reduces the 12-bit, 512-dimensional circuit below constraints, halving the Groth16 evaluation domain. In five alternating v1/v2 rounds after one warmup, proving time falls by 26% and total time by 15%, despite slower witness generation with Poseidon(16). The depth-20 configuration takes 1,801 ms in this benchmark, which is separate from the matched signature comparison above. Real LFW vectors pass for the genuine user and fail witness generation for the impostor in all three tested v2 configurations. Supplementary Appendix F-G records the implementation tradeoffs and run identifiers.
D. On-Chain Cost
Table VIII reports per-operation gas with and . Compact enrollment uses 228,746 gas across three transactions, a 36.6% reduction from the reference source; each additional committee signature adds about 16,000 gas. Duplicate rejection and stale abort also incur transaction costs. Authentication in the unlinkable profile costs less than in the public profile because it removes on-chain signature recovery, the device counter and several state reads. Tree updates shift cost to issuance and revocation: issuance in the unlinkable profile costs about twice as much as public issuance, and credential revocation costs about one million gas to recompute both paths.
E. Composition with BioZKFHE
BioZKFHE reports the gas cost of each function of its enrollment contract, which lets us split one of its enrollment sessions exactly into session creation, block-proof submissions, committee confirmations and finalization (R-COST-20261027). In the composed deployment the block proofs are kept unchanged; session creation, confirmations and finalization are replaced by BioBind's source, which verifies the signatures in one transaction; issuance is new. The replaced part falls from 329,563 to 228,746 gas, mostly because confirmation transactions become one, so the bound request, the stale abort and the root migration make BioZKFHE's session no more expensive. Figure 5 presents the breakdown for FaceNet with one packed layer, , in which
TABLE VIII
GAS PER OPERATION (LOCAL GANACHE, SINGLE RUNS, ). NEITHER PROFILE INCLUDES BIOZKFHE'S BLOCK PROOFS. PUBLIC CHALLENGE AND AUTHENTICATION COME FROM THE CURRENT 128-DIMENSIONAL BASELINE RUN; ON-CHAIN VERIFICATION COST DOES NOT DEPEND ON . OTHER RUNS REPORT AUTHENTICATION IN THE UNLINKABLE PROFILE AT 305,048–305,072 GAS, BECAUSE GAS VARIES SLIGHTLY WITH CALLDATA CONTENTS.
| Operation | Public | Unlinkable | Run |
|---|---|---|---|
| createSession | 61,285 | R-ENRSRC2 | |
| bindRequest | 48,075 | R-ENRSRC2 | |
| finalize, merge | 119,386 | R-CALLDATA | |
| finalize, append | 142,307 | R-CALLDATA | |
| finalize, stale abort / dup | 78,889 / 76,180 | R-ENRSRC2 | |
| Issuance (merge) | 438,059 | 856,135 | R-CALLDATA / R-PRIVGW2 |
| Enrollment + issuance (merge) | 666,841 | 1,085,317 | R-CALLDATA / R-PRIVE2E |
| Challenge | 108,121 | 140,314 | R-BASE-20261030 / R-PRIVGW-20261030 |
| Authentication, app scope | 336,239 | 304,736 | R-BASE-20261030 / R-PRIVGW2 |
| Authentication, one-time scope | – | 327,140 | R-PRIVGW2 |
| Revoke credential (depth 20) | not measured | 1,042,325 | R-PRIVGW2 |
| Register / revoke device (depth 10)* | – | 388,095 / 554,550 | R-PRIVGW2 |
*Measured with a depth-10 device tree. The evaluated circuit uses depth 20, whose device updates were not measured; they use the same tree contract as the depth-20 credential-tree updates above.

Fig. 5. Composition of on-chain gas per enrollment when BioBind replaces BioZKFHE's session control (FaceNet, ; BioZKFHE gas from its published data), with totals at right. Source and issuance are the transactions that BioBind adds or replaces.
BioBind source denotes the three source transactions above and BioBind issuance the public-profile credential issuance of 438,059 gas, and Supplementary Table S4 lists the totals for further profiles. Block proofs grow with the number of blocks, while BioBind's source and issuance are constant. At people, source and issuance therefore account for 80% of the total, issuance alone for about half; at almost all gas goes to BioZKFHE's block proofs, and the share of source and issuance falls to 6%, with issuance alone at 4–10% across the listed profiles. BioZKFHE's session totals are its own per-block extrapolations, which we adopt.
F. Real BGV Enrollment and Merge Components
We evaluate a unified BGV profile, denoted Unified512-2, with and matching the authentication configuration. It uses degree , two packed layers (16,384 registrations), , a 48-bit plaintext prime and coefficient-modulus limb sizes (60, 50, 50, 50). Microsoft SEAL 4.1.2 retains its 128-bit parameter check. These components execute separately from the software bridge; the Supplementary Material records the exact primes and the controls with BioZKFHE's original parameter sets.
For serial timing, one warmup precedes five measured rounds. Each round encrypts an enrollment into the final empty
TABLE IX
UNIFIED512-2 SERIAL COMPONENT MEASUREMENTS: ONE WARMUP AND FIVE MEASURED ROUNDS. THE TIMING EXPERIMENT APPENDS ONE ENROLLMENT TO A FRESHLY ENCRYPTED GALLERY; FULL-HISTORY CORRECTNESS IS TESTED SEPARATELY.
| Operation / representation | Median |
|---|---|
| Enrollment preparation | 2312.12 ms |
| Query preparation | 2204.09 ms |
| Load both input frames | 268.76 ms |
| Homomorphic addition | 31.88 ms |
| Serialize merged frame (uncompressed) | 186.05 ms |
| Encrypted query evaluation | 266.20 ms |
| Enrollment frame (uncompressed / zstd) | 192.06 / 179.89 MiB |
slot of a freshly encrypted tail block, merges it and evaluates an encrypted query. Every decoded slot and packed layer agrees with the plaintext result in all six rounds. A second context recomputes identical merge bytes within the same process. Table IX reports component medians; enrollment and query preparation include construction, encoding and encryption. Key generation, capture, signatures, network transfer and chain execution are excluded.
To test accumulated noise, we separately execute three complete histories, each with a newly generated key and a different plaintext seed. Every registration independently encrypts all 512 rows before addition; a fixed encrypted query is evaluated at 16 checkpoints per history, including the 8192/8193 layer boundary and capacity 16,384. At all 48 checkpoints, every accumulated row, query slot and unpacked score is correct. Fresh encryption of the same gallery provides a separate control and never replaces the accumulated ciphertexts. The final minimum row noise budget is 90 bits in every run; query budgets are 17, 17 and 15 bits.
This validates the three tested full-capacity histories for the aligned profile. The Supplementary Material gives the admissible input domain, checkpoint results and a source-dependent sufficient noise bound; finite synthetic tests do not establish a failure probability for all inputs and keys. BioZKFHE's published parameter sets, from its experiment E3, were evaluated on galleries encrypted as whole blocks;
TABLE X
LFW VIEW 2 WITH INCEPTIONRESNETV1 (VGGFACE2): HELD-OUT ACCURACY AND ERRORS OVER 3,000 GENUINE AND 3,000 IMPOSTOR PAIRS. AUC AND EER ARE DESCRIPTIVE OVER ALL 6,000 PAIRS.
| Encoding | Accuracy (%) | FA | FR | EER (%) | |
|---|---|---|---|---|---|
| Float | - | 29 | 24 | 0.93 | |
| 4-bit | 7 | 56 | 80 | 2.32 | |
| 6-bit | 31 | 30 | 29 | 0.98 | |
| 8-bit | 127 | 27 | 38 | 0.97 | |
| 10-bit | 511 | 27 | 37 | 0.93 | |
| 12-bit | 2047 | 29 | 24 | 0.93 | |
| 16-bit | 32767 | 29 | 24 | 0.93 | |
| BioZKFHE rule | 512 | 26 | 38 | 0.93 |

Fig. 6. ROC on LFW View 2 (6,000 pairs, 3,000 impostor) for the float embedding and quantized encodings, scored by squared Euclidean distance. The 12-bit encoding used by BioBind and the rule of BioZKFHE lie on the float curve; so do the 6-, 8-, 10- and 16-bit encodings (not drawn; AUC within of float). Only the 4-bit encoding departs visibly from the float curve. The left edge is one impostor pair (FAR = 1/3000); View 2 cannot resolve lower FARs.
under the accumulated noise of merge-based enrollment, two of them fail within 32 registrations because the query's noise budget runs out. This motivates the larger modulus chain, and Supplementary Appendix G retains these controls. Unified512-2 aligns the vector domain with authentication, while integration with block proofs, threshold decryption and the enrollment bridge remains separate work.
G. Biometric Accuracy under Quantization
We use LFW [27] View 2 with its ten fixed folds of 300 genuine and 300 impostor pairs, and fix the protocol before scoring: each fold's threshold is chosen on the other nine by balanced accuracy, and errors are counted on the held-out fold only. MTCNN aligned all 7,701 images without a fallback. Table X reports the results (R-LFW-20261027). From 12 bits up, quantized vectors make exactly the same errors as float vectors. BioZKFHE's rule loses about 0.2 percentage points, as do 8 to 10 bits, because the coordinates of a 512-dimensional unit vector are small and uses only about 8 bits of range. Figure 6 presents the ROC curves. With only 3,000 impostor pairs, LFW supports no low-FAR claim. Our untuned accuracy is 99.12%, below the model documentation's 99.6%; we attribute the gap to alignment settings and our held-out threshold protocol.
H. Deduplication at Scale
A 1:N verdict compounds per-comparison errors over the gallery, so we calibrate it separately (R-DEDUP-20261028). Scores are the 12-bit inner products that the encrypted 1:N query evaluates. We split identities by a hash of the name into a calibration half (2,112 identities) and a test half (2,169), and choose thresholds on the calibration half only, as the smallest whose per-pair false match rate is at most to ; we also report the model's original threshold (cosine 0.5). On the test half, with 7,478,879 impostor and 3,767 genuine pairs, we report per-pair FMR and FNMR with Clopper–Pearson intervals [28]. We then split the test half again into a gallery pool of 1,645 identities with one image each and 524 newcomers with 978 images, and count false duplicates, in which a newcomer is flagged as enrolled, and missed duplicates, in which an enrolled person's second image is not flagged, over 592 probes. Beyond the measured range we extrapolate false duplicates by , which assumes independent comparisons.
Figure 7 presents the results, and Supplementary Table S5 lists the thresholds and error rates. The original threshold flags 83% of newcomers as duplicates at only 1,645 enrolled people. No threshold balances the two errors. To keep false duplicates acceptable at people the per-pair FMR must be far below , where more than 60% of re-enrollments already go undetected; to keep missed duplicates in single digits, more than half of newcomers are rejected at a thousand people. Missed duplicates change by at most 8 percentage points across the measured N, as expected, since they depend on the threshold. These numbers are pessimistic for deployment: LFW contains unconstrained web photographs of celebrities, we use one public 2018 model with one image per enrolled person, and the extrapolation ignores dependence among comparisons. Within the measured range it overestimates the false-duplicate rate, for example 98% against the measured 83% at , so it indicates the trend only. They are also not the adversarial of Theorem 1, and do not establish a bound on it. The tested thresholds expose a tradeoff for this model and dataset. The uniqueness guarantee of BioBind remains relative to the backend's biometric accuracy at the intended gallery size.
The rate of Theorem 1 is taken under adversarial presentation, and the simplest such presentation is a change of appearance before re-enrolling. The Bosphorus database [29] offers controlled examples of such changes, since it holds a neutral image of each subject together with images under occlusion, expression and pose changes. We enroll the neutral image of each of 98 subjects and present every other image of that subject as a re-enrollment attempt against the thresholds calibrated on LFW, which we do not retune. A failed face detection counts as a miss, as detailed in Supplementary Appendix F-E, which also separates the conditions that an attended station can accept from those that it would reject. Table XI lists the missed duplicates by condition. For the accepted conditions, which are occlusion, expression and rotations up to , 1.8% of 3,273 attempts are missed at the threshold with a per-pair false match rate of (95% interval 1.4–2.3%) and 4.6% at ; occluding the eyes or
TABLE XI
MISSED DUPLICATE (%, 95% INTERVALS) WHEN 98 BOSPHORUS SUBJECTS RE-ENROLL UNDER CHANGED APPEARANCE, AT THE THRESHOLDS CALIBRATED ON LFW FOR THE PER-PAIR FALSE MATCH RATE IN THE HEADER. A FAILED FACE DETECTION COUNTS AS A MISS. SUPPLEMENTARY TABLE S6 LISTS ALL CONDITIONS AND THRESHOLDS.
| Condition | n | ||
|---|---|---|---|
| Eyes occluded | 98 | 6.1 [2.3, 12.8] | 6.1 [2.3, 12.8] |
| Mouth occluded | 98 | 1.0 [0.0, 5.5] | 7.1 [2.9, 14.2] |
| Glasses | 97 | 4.1 [1.1, 10.2] | 8.2 [3.6, 15.6] |
| Hair occluded | 65 | 6.2 [1.7, 15.0] | 16.9 [8.8, 28.3] |
| Six expressions | 421 | 1.9 [0.8, 3.7] | 8.6 [6.1, 11.6] |
| Lower-face action units | 1,443 | 1.7 [1.1, 2.5] | 4.5 [3.5, 5.7] |
| Yaw up to | 294 | 0.3 [0.0, 1.9] | 0.7 [0.1, 2.4] |
| All attended conditions | 3,273 | 1.8 [1.4, 2.3] | 4.6 [3.9, 5.4] |
| Yaw | 196 | 45.9 [38.8, 53.2] | 83.2 [77.2, 88.1] |
| Same person, neutral | 187 | 0.0 [0.0, 1.9] | 0.0 [0.0, 1.9] |
hair is the most effective change, at about 6% for . A turn of , which an attended station would reject, is missed in 46% of attempts at . The subjects are cooperative and perform prescribed poses, so these rates are reference values for under controlled changes of appearance. They lie below the 17% of second images that LFW, with its unconstrained photographs, leaves undetected at the same threshold. An adversary who selects the most effective disguise may exceed them, and the attempt budget limits how often it can try.
The dependence of person-level uniqueness on the matcher shapes three design choices. First, every missed duplicate is a chance to obtain a second credential, so enrollment needs an attempt budget; because a person cannot be counted before deduplication, BioBind treats as a deployment parameter. Second, the default attended enrollment enforces this budget through supervision and liveness checks, which self-enrollment across devices cannot provide. Third, the matcher and modality must suit the intended gallery size. World ID, for instance, uses the iris for uniqueness and the face only for re-authentication, and any change of modality or capture conditions requires a fresh evaluation.
I. Public Observer Audit
We audit caldata, events and metadata from five authentications in the unlinkable profile. Same-scope nullifiers link repeated use, while nullifiers differ across scopes; a common funding source remains observable but does not identify the holder by itself. All six field and equality-pattern checks pass. These observations test the exposed interface, not statistical anonymity or the cryptographic assumptions of Supplementary Appendix A-J; the full trace protocol is in Supplementary Appendix F-F.
X. LIMITATIONS
The evaluation uses software capture devices and a simulated committee; sensor provenance, presentation-attack detection and tamper-resistant attempt budgets are unvalidated. Real BGV components are measured separately; block proofs, the check that every block is proved, and threshold decryption

(a) False duplicate
(b) Missed duplicate, N = 1,645

Fig. 7. Open-set deduplication on the identity-disjoint test half of LFW (12-bit inner product; thresholds chosen on the calibration half). (a) Share of newcomers wrongly flagged as duplicates; markers are measured up to N = 1,645 (dotted line), and dashed curves extrapolate . (b) Share of re-enrollments with a second image that go undetected at N = 1,645, with 95% Clopper-Pearson intervals over 592 probes. “Demo” marks the end-to-end threshold.
remain unintegrated. Measured gas excludes block proofs; the composed estimate uses published BioZKFHE costs. Cipher-text availability is assumed. Three full-capacity BGV histories do not establish a general failure probability. The single-model LFW evaluation cannot establish low-FAR performance or adversarial bounds on and .
Security and privacy depend on the stated extraction, membership and related-output hiding assumptions; the proofs and noise bound await independent review. Groth16 setups are local and benchmark-only, and performance measurements carry no deployment-wide guarantee. Stale-session rejection preserves safety at the cost of retries and does not establish concurrent throughput. The count-based stale check assumes an append-only gallery; template refresh and deletion require revised state semantics. The gateway of the unlinkable profile implements credential and device revocation but lacks policy revocation and model migration, and no gateway supports same-model template refresh. Supplementary Appendix H discusses the design alternatives, hardware requirements and trust-reducing extensions, and Supplementary Appendix H-A details the remaining deployment requirements.
XI. CONCLUSION
BioBind connects off-chain biometric enrollment to on-chain credential issuance and capture-bound authentication for decentralized applications. Its four enrollment interface conditions bind the queried vector, gallery transition and issued commitment; authentication relates that commitment to a fresh authorized probe. The snapshot race shows why correct queries and writes still require a state check at finalization. The conditional multi-session argument separates these common state conditions from backend-specific correctness and trust. The BGV instance, built on BioZKFHE, realizes them with bound requests, committee-confirmed root migration and stale-session rejection; the World ID-inspired MPC mapping ex-poses the alternative trust requirements. The software prototype rejects the tested composition attacks on real face features. The signature baseline of the unlinkable profile quantifies the proving cost of retaining verifiable matching, and an aligned BGV profile passes three full-capacity registration histories. With biometric errors and trusted acquisition accounted for separately, the protocol makes explicit which evidence a contract needs to rely on a registration record at issuance and use.
SUPPLEMENTARY MATERIAL
The appendices below contain the full conditional proofs, the extended trust comparison, implementation details, evaluation controls and the unified BGV capacity results and parameter-repair record. The BGV record includes three completed 16,384-registration histories, serial component measurements and their evidence boundaries. References prefixed by "main paper" point to the numbered sections above, and the equations, tables, figures and lemmas of the appendices carry an S prefix.
APPENDIX A PROOFS
A. Abstract Enrollment Interface
We view protected storage through its logical gallery, initially empty. An abstract enrollment failure is an issued commitment without the declared capture provenance, a gallery inconsistent with finalized insertions, or issuance of a template that matched an earlier entry at finalization. These specialize to W1–W3 in the BGV instance.
Lemma S1 (Interface composition). Suppose I3 is enforced, issuance consumes only unique final records and consumes each at most once, and the gallery initially is empty. Let , and bound the probabilities that I1, I2 and I4, respectively, fail anywhere in the permitted adaptive execution. The probability of any abstract enrollment failure is at most . If Dup is entry-wise and symmetric, the same bound applies to issuing two credentials for duplicate templates.
Proof. Condition on the absence of all three interface-failure events. I1 associates every issued commitment with its session's captured template and the actual query and insertion inputs. Initially the logical gallery and finalized insertion history are empty. At each unique finalization, I2 appends the declared insertion template at the next slot and preserves all other entries. I1 identifies it with the captured query template; non-finalizing sessions do not change the gallery. Induction therefore preserves equality with the finalized history. I3 ensures that this history has not changed since the queried snapshot, and I4 excludes a match at finalization. Distinct issued credentials consume distinct final records; the later finalization is checked against a gallery containing the earlier template. Entry-wise matching and symmetry exclude a duplicate pair. A union bound over the three excluded events proves the claim, without independence assumptions.
The bounds here concern entire adaptive executions, not marginal single-session experiments. A concrete backend must justify them, including representation correctness, authenticated state and output delivery, under its specified corruption model. The following BGV analysis derives concrete terms under C1–C4; the MPC mapping in Appendix C-B identifies conditions but supplies no second implementation or instantiated cryptographic bound.
B. BGV Instance: Setting
Correctness conditions. These are parameter choices, not cryptographic assumptions. (C1) Packed-score decoding is correct on the backend’s admissible domain. For unit-normalized vectors scaled by and rounded, , so any query-template inner product has absolute value at most . Require and plaintext modulus . Centered base-T decoding then recovers every slot’s score without modular wraparound. Coordinate bounds alone do not establish this claim. The trusted station must enforce this domain. (C2) Under the chosen BGV parameters, a block still decrypts correctly after at most enrollment additions per row and the full 1:N query evaluation: ciphertext products followed by additions. (C3) The specified addition algorithm is deterministic under fixed parameters, ciphertext representation and canonical serialization. Coefficient-wise addition is sufficient only when the BGV correction factors and other required states agree. (C4) The enrollment encoding of at slot is non-zero only in the column and layer of slot , so adding it to a block whose slot is empty writes into slot and changes no other slot. Main-paper Section IX-F reports three complete registration histories for Unified512-2; Appendix G gives a source-dependent sufficient bound and the failure controls with BioZKFHE’s original parameter sets. The theorem remains conditional on (C2); finite tests do not replace its general correctness premise.
ES signing rule. An honest ES keeps, per derivation, a pending record . It signs decl once with slot = N; it signs a link only if is a unique final record equal to rec on , taking from rec; and it signs at most one link per sid. DerivFailES is the event that the ES violates this rule or that are not honest encryptions and a commitment of .
Real and ideal gallery. The chain stores block commitments and . The challenger sees every ciphertext in the experiment, so for each it can name the ciphertext with that hash; two different such ciphertexts form a collision, event Coll. Under Coll the decoded gallery is well defined for .
Multi-key signatures. For keys, guessing the index gives .
C. Lemma U
Lemma S2. Let Dup be entry-wise (Dup(v, G) ⇔ ∃g ∈ G : Dup(v, {g})) and symmetric. If W1, W2 and W3 do not occur in an execution, then any two issued credentials cred_j ≠ cred_k satisfy ¬Dup(v_j, {v_k}).
Proof. By each credential has an record; let its vector be the credential's vector and its unique final session. Issuance consumes atomically, so distinct credentials have distinct sessions; their finalizations are totally ordered on chain, and we let come first. At 's linearization point enters , and since only grows it stays there. At 's later finalization therefore contains , and gives . Symmetry gives the converse.
The proof uses W1 and W3 only. W2 is used in Lemma S4, where it makes the gallery the backend queries equal to , so that I4's statement about the real snapshot becomes .
D. Lemma R
A merge migration Mig = (sid, m, , , slot, , , ) is signed as = . Event BadMig: the contract accepts some merge whose differs from , where are the experiment's ciphertexts hashing to .
Lemma S3. If the set Cor of corrupted members has , there are adversaries with
Proof. An accepted merge carries signatures from distinct roster addresses, so at least one belongs to an honest member . Case : never signed . Then the signature is a forgery. guesses an honest index, embeds its EUF-CMA challenge key there, answers that member's signing queries through its oracle, simulates the rest and outputs the forgery; it guesses right with probability at least . Case : signed . If it signed some with , the unambiguous encoding gives a collision. Otherwise signed itself and, by its rule, held with , and . Under BadMig this pair differs from while having the same hashes, so one of the two components is a collision; (C3) rules out two results for the same pair. runs the whole experiment and outputs any collision it observes. An append is checked on chain as and contributes no term.
E. Lemma S
Lemma S4. If the backend meets , hold and , then is bounded by the right-hand side of main-paper Eq. (7).
Proof. Let Bad be the union of ForgeES (an accepted ES signature on an unsigned message), Coll, DerivFailES, BadMig and BadVerdict (some session finalizes as unique although Dup(Pt(C_{id}), Pt(G_{s})) holds for its bound snapshot ).
. Issuance needs a valid ES link, as I1(c) requires; without forgery an ES produced it, and without derivation failure it did so only for a pending record equal to on the session fields, with taken from that record.
. We induct over gallery changes with the invariant that for and every slot is empty. Initially . By I2(c) the commitments and change only in the transaction that finalizes a unique session , and by I2(a) each change increments once, while appends at the same point. By I1(a), comes from an ES-signed declaration for a record rec with slot , so and, under , the ciphertext is . In an append, the new block is , which by (C4) decodes to rec.v at slot . In a merge, makes the new last block with the previous last block; by (C2)–(C4), (C1) and the empty slot , it decodes to rec.v at slot and leaves other slots unchanged. The record is the one 's digests come from, so and the invariant holds after the change. Sessions that do not finalize cannot change the gallery, and unique finalization always writes.
. Let have snapshot with count . By I3 the count at finalization is , and since every change increments , the gallery did not change: it equals , and by the invariant . By and , , and entry-wise Dup gives .
Bounds. , counted once because the same outputs the collisions of Lemma S3; ; and , where guesses the session and plays BioZKFHE's single-session experiment while simulating the ES, the gateway, other sessions and the corrupted members. A union bound completes the proof.
F. Concrete BioZKFHE Integrity Bound
For BioZKFHE, the backend term is concrete. Its result-integrity experiment covers a single session, and its Corollary 1 bounds a session with blocks by . In BioZKFHE's notation, is the soundness error of one local proof instance and the hash term; counts the local proof instances of a block, and the extra instance per block is its binding check. Taking the union over sessions gives q_S \mathrm{Adv}_{\mathrm{B}}^{\mathrm{res-int}} \leq q_S M_{\max}(K_{\max}+1)\epsilon_{\mathrm{loc}} + \epsilon_H_{\mathrm{total}}, with authentication and threshold decryption treated as ideal functionalities. This multi-session step is ours, not BioZKFHE's. It requires local soundness to hold for adaptively chosen statements over shared parameters, and counts every session the adversary initiates, including aborted and duplicate ones, not only those that finalize. The enrollment history, concurrent sessions and malicious are covered by W1–W3, not by this term.
G. Person-Level Corollary for Uniqueness
Order person 's enrollment captures as . When the th capture happens and already has a vector in , let be the earliest and the event ; is the supremum of .
Corollary 1. with for the global existential event defined in main-paper Section IV. For a fixed target person p, replace by .
Proof. Assume SYB and . Some holds two credentials with vectors that are 's captures, and finalizes first, so entered no later than . As in Lemma S2, . If the capture of happened after entered , then occurred. Otherwise opened before the write of , since the ES captures only after a session opens, and finalized after it, so its snapshot count differs from its final count and I3 forbids a unique finalization, a contradiction. Hence some occurs, and a conditional union bound over 's captures gives .
H. Authentication
The accepted predicate is that of the public gateway in main-paper Section VI-D. Additional events are ForgeACM, DerivFail (the ACM signs something other than its own capture and derivation under the challenge supplied by the holder's host), CollF (two different challenge or policy encodings with equal reduced digests), ExtFail (no witness extracted for an accepted proof), BindFail (one commitment opened two ways) and BadState (the gateway deviates from its specification). Fix an accepted submission. U1 follows from the issuance path as in the W1 case of Lemma S4, with single consumption from BadState. For U2, the device signature is genuine by ForgeACM and refers to a logged capture by DerivFail ; that capture's challenge has the same reduced digest as the submitted challenge, so they are equal by CollF. For U3, extraction gives openings that satisfy the relation; the enrollment opening equals the ES's vector by BindFail, provided the ES used the same policy field, which the link signature covers; the probe opening equals the ACM's vector likewise. U4 follows from the same-transaction checks and BadState. Summing the events gives main-paper Eq. (8). For main-paper Eq. (10), an honest user's own capture is bound to that user's challenge, whose beneficiary is that user, so an impersonating acceptance must use a capture of an adversarial person within of the honest template, and a conditional union bound over the captures for that credential gives . This bound excludes template leakage with a presentation attack.
I. Authentication in the Unlinkable Profile
For the gateway of the unlinkable profile, interpret U1–U4 on the credential and device extracted from an accepted proof. Holder validity means knowledge of the identity secret and authorization by the challenge beneficiary; the issuance and authentication addresses need not coincide. Let bound a failure of authenticated membership for either tree over the entire execution. This includes opening a root to an unregistered leaf and opening the empty leaf zero to a valid credential or device tuple. The latter needs zero-preimage resistance of the domain-separated leaf hashes, in addition to collision resistance. The device authority registers well-formed keys and leaves, and the verifier is pinned to the configured relation and tree depths.
Under these conditions and the extraction assumption below, main-paper Eq. (8) applies with the additional term and with the EdDSA signature scheme that the unlinkable profile uses for the ACM. This is a conditional extension, not a reduction of Poseidon's zero-preimage resistance to collision resistance.
Proof. Extract a witness from an accepted proof. Membership soundness identifies issued credential and registered device leaves. The credential leaf binds the enrollment commitment, identity commitment, policy and version; atomic issuance, the station's link signature and its derivation log then give U1. The in-circuit device signature binds the probe commitment, context, policy, model, quantization, firmware and expiry. Signature authenticity and correct device derivation identify a capture log entry, while reduced-context collision resistance identifies the challenge. This gives capture origin. The two commitment openings and the bounded distance relation follow from extraction; commitment binding identifies them with the station and capture logs, and the gateway pins the threshold, giving U3.
An accepted historical root can precede insertions but cannot precede a revocation: zeroing a leaf invalidates every earlier root. Insertions preserve previous leaves. Thus membership under an accepted root implies that both leaves are still active, assuming correct tree updates and no empty-leaf opening. Sender, policy, deadline, scope and nullifier checks, followed by atomic challenge consumption, give U4, including the live device. A union bound over the original bad events and membership failure completes the argument. The gateway of the unlinkable profile has no per-device counter, so this proof does not establish the attempt budget.
Extraction model. We explicitly assume extraction for new accepted statements in the presence of previously observed honest proofs. For an already issued honest statement the reduction keeps its original witness. We do not infer this property merely from Groth16's ordinary knowledge soundness or from its re-randomizability. Instantiating the assumption for the precise setup and adversary model remains an independent review obligation. The term denotes a conservative bound on extraction failure over the execution.
J. Conditional Protocol-Level Unlinkability
The public observer receives all transaction caldata, events, public state and metadata, including issuance commitments and identity commitments, device registration fields, challenge callers, funding edges, proof bytes and all nine public inputs. It does not receive the secrets or openings held by honest holders' hosts and devices. This observer differs from the adversary, which controls the holders' hosts.
In Game of main-paper Definition 3, both candidates can successfully authenticate under the same policy, root pair, scope and expiry. Transaction accounts, funding, timing, ordering and subsequent public behavior are chosen independently of the challenge bit. Neither candidate nor the devices they require can be corrupted or selectively revoked to make only one candidate eligible. Other-scope queries are allowed; neither candidate may be queried in the challenge scope before or after the challenge.
We require three distributional assumptions: adaptive multi-statement zero knowledge under an honest setup; hiding of the v2 probe commitment with fresh high-entropy salts even given public enrollment records and known candidate vectors; and pseudorandomness of the nullifier Poseidon() at the fresh challenge scope scope*, jointly with the public identity commitment Poseidon(), credential leaf and other-scope outputs. The latter two are explicit heuristic assumptions about Poseidon with domain separation, not consequences of collision resistance alone. Their auxiliary information includes the simulated setup and preceding public transcript, but excludes the candidates' secrets.
Conditional hybrid argument. For each candidate world, first replace honest proofs by simulated proofs. Next replace the challenge probe commitment by a common reference distribution using commitment hiding, and replace the fresh-scope nullifier by an independent field element using the joint pseudorandomness assumption. The simulator is an efficient function of the public statement under the simulated setup. After replacing statement components it may run on a statement without a witness; this step asserts indistinguishability of its inputs and outputs, not real-setup provability of a false statement. The query restrictions prevent a later response in the challenge scope from revealing the substituted nullifier. Both candidate worlds now have the same distribution because their external metadata and eligibility agree. The triangle inequality bounds distinguishing advantage by the sum of the two worlds' zero-knowledge, commitment-hiding and joint-pseudorandomness errors.
This argument hides the selected member conditional on the stated metadata and eligibility restrictions. It does not hide a funding graph, guarantee a large anonymity set, or protect a corrupted holder's host. The five-session public trace audit tests observable fields and intended equality patterns; it does not establish these cryptographic assumptions.
APPENDIX B
REPRODUCTION
The artifact at https://github.com/plan-lab-szu/biobind contains the contracts, circuits, evaluation scripts and the archived outputs behind every reported number. Its README gives the toolchain versions, build instructions, the run identifier of each result and the scope boundaries. Historical outputs are retained; local proving keys are benchmark-only and are not included.
APPENDIX C
EXTENDED TRUST COMPARISON
A. Re-authentication Trust
World ID's WIP-201/202 draft [10], [11] places the matching engine inside a cloud TEE and uses a zero-knowledge proof to bind its signed result to a credential and challenge. The cloud host and its operator are trusted for availability; isolation and attestation protect the data, while the engine provider is trusted for matching correctness. This comparison concerns that draft, not the phone-local Face Auth described in
TABLE S1
TRUST AND PRIVACY AT RE-AUTHENTICATION IN WORLD ID'S DRAFT DESIGN AND IN BIOBIND. AT ENROLLMENT BOTH DESIGNS PROCESS RAW FEATURES IN AN ATTENDED, CERTIFIED DEVICE (THE ORB, THE ES).
| World ID WIP-201/202 (draft) | BioBind | |
|---|---|---|
| Trusted component | Cloud enclave running a closed engine | User-side ACM |
| Raw face goes to | The enclave | Nowhere off the user side |
| Who compares | The enclave engine | The prover on the holder's host; the gateway checks the proof |
| Re-authentication root of trust | Enclave attestation and the cloud provider | ACM certificate, CRS and contract |
| Capture integrity | App and device attestation | ACM certificate |
the official FAQ [22]. BioBind places the trusted component on the user side: the ACM signs a commitment to its own capture, and the match itself is proved in zero knowledge and checked on chain. Capture integrity has a similar structure in both designs, since World ID trusts app and device attestation and BioBind trusts the ACM; we count this as a shared assumption, not a difference. The difference is where raw features are processed and who can check the comparison. Table S1 contrasts them.
B. World ID-Inspired MPC Enrollment Interface
World ID illustrates which enrollment conditions survive a backend change. The published iris MPC protocol [7] evaluates a duplicate predicate over shared templates under semi-honest, honest-majority assumptions; its second construction protects both codes and masks. That construction supplies the computational component of a proposed interface mapping, separate from the re-authentication comparison above. This design analysis neither implements an MPC extension nor audits World ID's current service.
The mapping realizes I1–I4 with secret shares. World ID's whitepaper describes storing the fragments after a successful uniqueness check [2]. Reusing the checked shares can satisfy query–insertion consistency without separately supplied insertion shares; capture provenance and authorization of the credential and state transition remain distinct conditions. In our proposed mapping, a certified enrollment station derives the shares and credential commitment from one captured template. Its signed manifest binds their canonical digests to the session, matcher policy and queried gallery version. Each recipient authenticates the station, checks the delivered shares against the manifest and uses the checked shares for insertion. Share hashes authenticate bytes, but do not prove correspondence with the committed template; this rests on trusted station derivation, as in the BGV instance. Removing this derivation trust requires verifiable sharing and a proof linking the shared template and credential commitment.
Table S2 summarizes the preserved conditions and their proposed realization. The parties must agree on one logical gallery history, although their local shares and state digests
TABLE S2
PROPOSED WORLD ID-INSPIRED MPC INTERFACE MAPPING. THESE ARE REQUIREMENTS FOR COMPOSITION, NOT CLAIMS ABOUT DEPLOYED WORLD ID CHECKS.
| Preserved condition | MPC realization and trust | |
|---|---|---|
| I1 | One capture, query, insertion and issued record | Authenticate station shares and reuse them for insertion; station guarantees consistency with the capture and credential commitment. |
| I2 | Authenticated slot and state transition | Assign the slot from current state; authenticate each party's prepared update and finalize one logical transition with issuance. |
| I3 | Verdict valid at finalization | Bind the queried version; reject if an intervening insertion changed the append-only gallery. |
| I4 | Sound unique verdict | Correct MPC on the bound inputs and snapshot, plus authenticated result delivery; semi-honest parties must follow the protocol. |
differ. A successful finalization must atomically couple the authenticated state transition to issuance, with the required shares durably prepared before commitment; aborted sessions must not enter the searchable gallery. Distributed commit and recovery are additional implementation requirements. MPC evaluation alone does not prevent two correct unique verdicts on one snapshot from authorizing duplicate credentials.
The main change in trust concerns I4. BioZKFHE supplies verifiable encrypted evaluation against a malicious compute node, subject to its committee assumptions. In the cited MPC model, even corrupted computing parties follow the protocol; an honest majority alone does not justify correctness under active deviations. A signed or threshold-signed verdict authenticates its origin, not its computation. The proposed interface therefore needs authenticated output delivery under the passive-adversary assumption, or a separately established malicious-secure MPC protocol or verifiable computation mechanism if active deviations are allowed. Capture provenance and enrollment-attempt limits remain separate trust requirements in either case.
Lemma S1 supplies the common state argument, while the concrete BGV theorem remains instance-specific. An MPC instantiation needs its own input-consistency and verdict-soundness arguments for adaptive histories and its chosen corruption model, replacing the BGV-specific premises. Using iris templates also requires suitable capture and commitment relations, a specified matcher and authentication circuit, and new biometric error estimates. Our face-circuit costs, BGV capacity results and timings do not measure this alternative.
APPENDIX D
EXTENDED LITERATURE CONTEXT
This appendix preserves the extended source comparisons behind main-paper Table I. The cited systems have different goals and trust models; their descriptions do not assert properties of unexamined deployments.
A. Biometric Verification, Identification and Template Protection
A 1:1 verification compares a probe with one enrolled template and accepts when a distance or similarity crosses a threshold. A 1:N identification, or deduplication, compares a probe with every entry in a gallery. Their error behavior differs sharply: a per-comparison false match rate that is acceptable for verification compounds over N comparisons, so deduplication needs much lower per-comparison error as the gallery grows. Template protection standards such as ISO/IEC 24745 [12] ask for irreversibility, unlinkability and renewability of stored references. This paper does not propose a template-protection scheme; it uses commitments and homomorphic ciphertexts so that raw features never leave the user side after enrollment, and it asks what must hold for the stored objects to come from one capture.
B. Private 1:N Deduplication
Private deduplication can use distributed computation on secret shares or verifiable evaluation on ciphertexts. World ID's published iris MPC protocol uses the former under semi-honest, honest-majority assumptions; BioZKFHE uses the latter against a malicious compute node [7], [8]. Neither representation alone specifies how a query, gallery insertion and credential are bound to one capture or how concurrent requests are finalized. We study these interface conditions for both routes in main-paper Section V.
Our concrete instance uses BioZKFHE's packed gallery encoding, publicly verifiable block proofs and threshold committee. Its honest-client assumption and snapshot-bound result integrity leave malicious enrollment and gallery-update composition to the surrounding protocol. We add and evaluate those checks, and Appendix C-B maps the same conditions to MPC.
Wang et al. give a private token-based aid distribution system that assumes recipients register only once [13]. Janus addresses that registration problem using MPC, somewhat homomorphic encryption or a trusted execution environment, and requires successful registrations to enter the database promptly. Its deduplication component returns a binary result; the registration station's decision to act on that result is handled by the surrounding process [14]. xDup instead studies private deduplication across humanitarian organizations using fuzzy private set intersection [15]. These settings reinforce the need to specify who may turn a private verdict into an authorized state change.
C. Zero-Knowledge Biometric Authentication
Several schemes verify a 1:1 match without revealing templates. BAZKP [16] combines a proof of squared Euclidean distance under Pedersen commitments with a range proof, as described in the article's "Our scheme" section. zkSABER [17, Sec. III, pp. 3–5] combines quantized cosine matching, anonymous Merkle membership and nullifier-based replay prevention in one circuit. BioZero [9] provides identity-bound, publicly verifiable authentication over committed templates.
It leaves uniqueness, issuance and other lifecycle operations to the surrounding identity system; its accepted witness does not independently establish a fresh sensor capture. Kothari et al. [6] recompute a cancelable fingerprint match in Groth16, bind a verifier nonce into the proof and verify on chain for 255,275 gas, independent of template size. They state the limits that matter here: the probe is not constrained by the circuit, live acquisition is outside the protocol, and the scheme provides 1:1 verification only. All of these show that whole-vector matching under commitments with constant-size on-chain verification is established; none addresses uniqueness or capture provenance.
D. Identity Credentials and Deployed Proof-of-Personhood
The broader credential literature separates trust in identity issuance from later proof and use. Krul et al. systematize trust across self-sovereign identity components [18]; CanDID combines decentralized credentials and Sybil resistance through a committee and existing accounts [19]. A formal personhood framework defines uniqueness and unlinkability as distinct properties [5]. BioBind focuses on the additional biometric registration boundary: which protected query, gallery update and credential arose from the same capture.
World ID [2] provides a system-level reference combining Orb-based acquisition, private iris uniqueness checking and credential use. Its official Face Auth description places that check on the user's phone [22]. Its draft re-authentication design (WIP-201 [10]) runs a closed face-matching engine inside a cloud Nitro enclave, which sees raw biometrics and signs the result; WIP-202 [11] binds that signed result to the user's credential and the relying party's challenge in a zero-knowledge proof. These are draft beta specifications, checked on October 31, 2026, and are distinct from the phone-local Face Auth path. WIP-202 already binds the matched image to the credential and challenge; our comparison concerns trust allocation and registration-state guarantees, not an absence of binding in World ID. WIP-201 discusses alternatives to its enclave design; the device-side trusted capture assumed here is a different trust boundary. Aadhaar and MOSIP certify capture devices; we do not analyze these national systems.
E. Anonymous Credentials and Membership Proofs
The unlinkable profile of main-paper Section VI-E follows the Semaphore pattern [21]: a holder proves membership of a leaf in a Merkle tree of valid credentials and publishes a scope-specific nullifier, which gives one stable pseudonym per application without revealing which leaf was used. We use Poseidon [24] for in-circuit hashing. zk-credits shows how general-purpose zero-knowledge proofs can derive anonymous claims from existing identity infrastructure [20]; our unlinkable profile instead proves membership together with a capture-bound biometric match.
Main-paper Table I summarizes the compared operations and their input assumptions. BioZero supplies an authentication relation, BioZKFHE supplies a verifiable deduplication backend, and World ID supplies a broader identity workflow with device and service trust. BioBind specifies and implements the enrollment-state and capture bindings needed by its on-chain gateway. The comparison does not establish missing properties in unexamined deployments.
APPENDIX E IMPLEMENTATION DETAILS
Contracts. The enrollment source exists in two versions with the same checks: a reference version that keeps session fields in storage, and a compact version that stores digests and takes records as caldata, as discussed in main-paper Section VI. A finalization adapter turns a final record into an issuance receipt. The public-profile gateway implements typed canonical policies, verifier pinning, live-state checks and the lifecycle operations. The gateway of the unlinkable profile deploys two incremental Poseidon Merkle trees with epoch-tagged root histories. For two-input Poseidon we generate an inline-assembly library from the constants and optimized round structure of circomlibjs; it agrees with circomlibjs on 69 inputs, including 0, 1, , where r is the order of the circuit field, and 64 random inputs, and costs 21,560 gas per hash against 32,183 for the generated external contract. circomlibjs cannot generate a seven-input Poseidon contract within the EVM stack limit, so the device authority computes device leaves off chain and publishes their fields in events.
Circuits. The public-profile circuit proves main-paper Eq. (6) over two commitments for or 512. The circuit of the unlinkable profile adds the credential tree, the device tree, EdDSA verification on BabyJubJub and the nullifier. We recommend , 12-bit coordinates ( ), commitment format v2 and two depth-20 trees.
Devices. An enrollment bridge plays the ES: it receives a capture package signed with P-256 and protected by Aead, derives transparent stand-ins for the two BGV ciphertexts and the commitment from the same vector, seals a pending record before releasing anything, and signs declarations and links. A software mock ACM follows the same wire format with an EdDSA key. Both use software keys; the hardware capture module is deferred.
Committee. The committee is simulated. It evaluates the verdict on a plaintext model of the packed gallery over the session snapshot and recomputes merged blocks over transparent stand-in ciphertexts; block proofs, the check that every block is proved, and threshold decryption are not executed. A separate C++ experiment executes real BGV encryption, loading, addition, serialization and query evaluation, as discussed in main-paper Section IX-F; it is not integrated into this bridge or committee.
Biometrics. Faces are aligned with MTCNN [25] and embedded with an InceptionResnetV1 model pretrained on VGGFace2 [26] (facenet-pytorch 2.6.0, 512 dimensions, normalized), running on CPU with torch 2.2.2. Quantization multiplies by and rounds half away from zero.
Toolchain and setup. Contracts compile with solc 0.8.36 (200 optimizer runs, Shanghai) and run on Ganache 7.9.2; scripts run on Node.js 24.19.0. Circuits use Circom 2.2.3 with O2 and snarkjs 0.7.6, with circomlib 2.0.5 and circomlibjs
0.1.7. Every Groth16 key comes from a local, single-party Powers-of-Tau and phase-2 setup made for benchmarking. These keys are not deployable, and the released artifacts will not include deployable keys.
A. BGV Confirmation and Serialization
The migration fields are part of the finalization confirmation that BioZKFHE's committee already sends, so the rule adds no confirmation round. Each member must obtain the ciphertexts and perform additions and three block hashes; serialization, validation and transfer also contribute to the cost. The published BioZKFHE contract records each confirmation as a transaction from the member's address, with no roster check and no structure for the result digest. Our source therefore verifies signatures from a fixed roster over a confirmation that covers the chain and contract, sid, the session context, both ciphertext digests, the verdict, the verified output digest and the migration fields; a roster that changes over time would also need a committee epoch in the message.
Two deployment assumptions support the rule. First, data availability: members must obtain the full bytes of and , since digests alone cannot be checked; the backend's storage and transport must guarantee this. Second, canonical serialization: all parties hash the same bytes only if they fix the SEAL version, the parameters, the ciphertext representation, the number of rows and the length encoding, in addition to the uncompressed mode.
B. Digest-Only Source
During a session the source stores only the hash of the session record; the full record is emitted in events, passed back as caldata in later calls and checked against the stored hash. At finalization the source stores one digest of the final record and emits the record. The adapter decodes the record supplied with an issuance request, re-encodes it and compares it with the source digest before running its field checks, so a non-canonical encoding with trailing padding cannot pose as another record. Losing the record affects availability only, since it can be rebuilt from the event log.
C. Commitment Format
A commitment packs 12-bit coordinates, offset to non-negative values, into field elements and hashes them with a Poseidon chain under a role- and format-separated header. Format v1 absorbs two chunks per Poseidon call; format v2 absorbs fifteen per Poseidon(16) call, which saves about 2,175 constraints per commitment with unchanged assumptions. The two formats are domain-separated by a format version field.
APPENDIX F
EVALUATION CONTROLS AND TRACE DETAILS
A. Attack Controls and End-to-End Measurements
Table S3 summarizes the controls. Each attack is followed by the honest version of the same operation, which succeeds. Fourteen honest enrollments across a block boundary leave
TABLE S3 NEGATIVE CONTROLS BY COMPONENT.
| Component | Attacks rejected | Run |
|---|---|---|
| Source (both versions) | swapped or missing declaration (A1); wrong (A2); slot mismatch; same-person race (A3') and two-person race (A3); merges with corrupt, off-roster, duplicated or transplanted signatures; append with ; adapter on a duplicate session | R-ENRSRC2 |
| Adapter | record differing from the source digest in any field | R-CALLDATA |
| Unlinkable gateway | swapped idc; second issuance from one record; wrong beneficiary; reused one-time nullifier; proof on a root older than a revocation; revoked holder; revoked device; scope mismatch; tampered nullifier | R-PRIVGW2 |
| Unlinkable circuit | leaf not in tree; wrong identity secret; foreign scope; device not in tree; signature on another probe; distance over threshold; unopenable probe | R-PRIV |
| End to end | swapped idc; host-chosen ; impostor in front of the ACM | R-PRIVE2EV2TAU |
the on-chain last-block commitment equal to the committee's recomputation, and the ten-file test suite passes all 45 tests.
The end-to-end run uses real LFW features in the recommended configuration and passes eight of eight checks (R-PRIVE2EV2TAU-20261028). Two people enroll through the bridge, the compact source, the simulated committee, the adapter and the gateway of the unlinkable profile. Both authenticate with other images of themselves and receive one stable pseudonym each; an impostor's capture against the first person's credential fails at witness generation, with squared distance 10,717,782 against a threshold of 5,253,245. With the calibrated deduplication threshold, the first person's re-enrollment with another image (inner product 2,580,826, below ) was not detected, and that person obtained a second credential. This is the term of main-paper Eq. (9): every protocol step executed correctly, and the failure comes from the backend's accuracy at this operating point, whose non-adversarial miss rate is about 17%. Authentication costs 305,060–305,072 gas in that calibrated run; its proof times are 1.867–2.347 s. These are three session timings, not the interleaved benchmark median reported in main-paper Section IX-B.
B. Public-Profile Signature Baselines
The on-chain setting does not itself require a zero-knowledge match: a trusted matcher under the same capture and live-state checks can also exclude E1–E3. We thus compare the cost of verifying opening and matching constraints with that of additionally trusting the capture device for them. We reran the public-profile comparison on the current code (R-BASE-20261030): bound ZK costs 336,239 gas, separate capture/match signatures 123,102, and the merged signature B1' 103,440. Each needs an additional 108,121 gas challenge transaction. These are synthetic 128-dimensional public-profile runs. The honest matcher refuses non-matches; a deliberately
TABLE S4
ON-CHAIN GAS PER ENROLLMENT, BIOZKFHE ALONE AND COMPOSED WITH BIOBIND (PUBLIC-PROFILE ISSUANCE, , MERGE CASE). : PACKED LAYERS PER BLOCK; : BLOCKS.
| Profile | BioZKFHE | Composed | Issuance | ||
|---|---|---|---|---|---|
| FaceNet, | 2 | 499,151 | 836,393 | 52% | |
| FaceNet, | 13 | 1,431,885 | 1,769,127 | 25% | |
| FaceNet, | 123 | 10,759,225 | 11,096,467 | 4% | |
| FaceNet, | 62 | 6,160,105 | 6,497,347 | 7% | |
| FaceNet, | 41 | 4,185,244 | 4,522,486 | 10% | |
| MobileFaceNet, | 123 | 10,568,206 | 10,905,448 | 4% |
faulty authorized matcher can attest a non-match, violating the baseline’s trusted-matching premise.
C. Enrollment Transaction Totals
With and , successful compact enrollment costs 228,746 gas across three transactions, excluding credential issuance and BioZKFHE’s block proofs. Duplicate rejection costs 185,540 gas and a stale abort costs 188,249 gas over the session. Main-paper Table VIII reports the per-operation costs; failed sessions incur creation and binding costs as well as finalization.
Composed with BioZKFHE’s published per-block costs, these totals give the per-enrollment gas listed in Table S4 for the profiles that BioZKFHE reports. Main-paper Figure 5 presents the breakdown of the first three rows.
D. Deduplication Thresholds
Table S5 lists the thresholds chosen on the calibration half and the error rates measured on the identity-disjoint test half, which main-paper Figure 7 plots.
E. Evasive Re-enrollment on Bosphorus
An enrollee who tries to obtain a second credential can change appearance before re-enrolling. To measure how often such a change evades deduplication (R-BOSPHORUS-20261109), we use the Bosphorus database [29], which holds 4,666 face scans of 105 people, each with a colour image. Its poses cover neutral faces, six emotional expressions, lower-and upper-face action units and their combinations, yaw, pitch and diagonal rotations, and occlusion of the eyes, mouth, glasses or hair. We use the colour images only. Seven subjects whose images the database forbids to publish are left out before any image is read, which leaves 98 subjects and 4,342 images once images marked invalid are dropped.
The first neutral image of each subject is the enrolled entry, so the gallery holds 98 people, and every other image of that subject is a re-enrollment attempt. Faces are detected, embedded and scored with the face model and the 12-bit inner product of the LFW experiments of Section IX, and we reuse the thresholds that the LFW calibration chose for per-pair false match rates of to (Table S5) without returning them. As in the LFW experiment, an attempt is missed when its highest score over the gallery is below the threshold. Scoring only against the person’s own entry gives
the same rates at the three stricter thresholds and differs by at most two percentage points at . A face detector failure leaves the station without a capture to deduplicate; we count it conservatively as a miss. Detection fails on 41 images (0.9%): nine at yaw, eight among lower-face action units, five each for eye occlusion and upper-face action units, and 14 elsewhere, and none for the enrolled neutral images.
We group the conditions by whether an attended station could accept the capture. The station accepts occlusion of the eyes, mouth, glasses or hair, expressions, action units, yaw up to and slight pitch, and rejects larger rotations, because an attended enrollment asks for a roughly frontal face. Table S6 lists the results. Over the accepted conditions, 1.8% of 3,273 attempts are missed at , 4.6% at and 10.8% at . Occlusion is the most effective single change, with hair occlusion missed at 6.2% and 16.9% for and . For eye occlusion, five of the six misses at these two thresholds are failed detections, and the sixth is one of the 93 detected images. A rotation of is missed at 45.9% and 83.2%. Neutral repeats of the same person are never missed.
The control rows show the limits of the calibration. When neutral images of one person are compared with a gallery of the other 97 people, 31.0% (95% interval 24.5–38.2%) produce a false duplicate at the loosest threshold, whereas independent comparisons at a per-pair false match rate of would give about 9%; at the rate is 1.1%, in line with LFW. The subjects were captured with one scanner under similar conditions, which can raise impostor scores above those of web photographs. We therefore rely on the columns from on, because at the loosest threshold a probe may be flagged through a match to another person.
These rates describe 98 cooperative subjects who performed prescribed poses in front of a 3D scanner. The images are the scanner’s colour textures. The intervals treat each attempt as independent although attempts of one subject are correlated, and are therefore optimistic. An adversary who picks the most effective disguise or repeats attempts may exceed them, which is why BioBind limits . Main-paper Theorem 1 takes under adversarial presentation, and the rates above are reference values for controlled changes of appearance, which come closer to that presentation than the LFW rates. The Bosphorus rates fall below the 17.1% of missed duplicates for second LFW images at (Table S5), because LFW photographs vary without constraint in lighting and pose, whereas Bosphorus fixes the conditions of capture.
F. Public Observer Trace
R-PRIVOBS-20261030 decodes actual caldata, logs and transaction metadata for five successful authentications in the unlinkable profile: two captures of A in one application, B in that application, and A and B in a second application. The collector receives no fixture identity labels, openings or keys. Same-scope nullifiers link A’s first two sessions despite fresh sender addresses. Across scopes the nullifiers differ, but all beneficiaries share an observable funding source. That source alone does not identify a holder. All probe commitments differ. Issuance caldata exposes both and idc, although neither
TABLE S5
DEDUPLICATION THRESHOLDS CHOSEN ON THE CALIBRATION HALF, EVALUATED ON THE IDENTITY-DISJOINT TEST HALF (12-BIT INNER PRODUCT). FD: FALSE DUPLICATE; MD: MISSED DUPLICATE.
| Threshold | (cosine) | Test FMR (95% upper) | Test FNMR | FD, N=1,645 | MD, N=1,645 | Extrap. FD, |
|---|---|---|---|---|---|---|
| 2,095,104 (0.500) | 2.6% | 83.3% | 0.5% | / 100% / 100% | ||
| FMR | 2,322,295 (0.554) | 5.5% | 53.7% | 3.9% | / 100% / 100% | |
| FMR | 2,777,020 (0.663) | () | 18.4% | 6.5% | 17.1% | 52% / 99.9% / 100% |
| FMR | 3,162,706 (0.755) | () | 43.8% | 0.4% | 40.0% | 3.6% / 30% / 97% |
| FMR | 3,406,345 (0.813) | () | 67.3% | 0.1% | 60.8% | 0.7% / 6.5% / 49% |
TABLE S6
MISSED DUPLICATES WHEN 98 BOSPHORUS SUBJECTS RE-ENROLL UNDER CHANGED APPEARANCE, IN PERCENT WITH 95% CLOPPER–PEARSON INTERVALS (R-BOSPHORUS-20261109). COLUMNS GIVE THE PER-PAIR FALSE MATCH RATE ON WHICH THE LFW THRESHOLD WAS CALIBRATED. AN ATTEMPT WITHOUT A DETECTED FACE COUNTS AS MISSED, AND INCLUDES THESE FAILURES. THE LAST ROW COMPARES NEUTRAL IMAGES OF ONE PERSON AGAINST A GALLERY OF THE OTHER 97 PEOPLE AND COUNTS FALSE DUPLICATES.
| Condition | Failed | |||||
|---|---|---|---|---|---|---|
| Conditions an attended station can accept | ||||||
| Eyes occluded | 98 | 5 | 6.1 [2.3, 12.8] | 6.1 [2.3, 12.8] | 6.1 [2.3, 12.8] | 8.2 [3.6, 15.4] |
| Mouth occluded | 98 | 0 | 0.0 [0.0, 3.7] | 1.0 [0.0, 5.5] | 7.1 [2.9, 14.2] | 24.5 [16.4, 34.2] |
| Glasses | 97 | 1 | 1.0 [0.0, 5.6] | 4.1 [1.1, 10.2] | 8.2 [3.6, 15.6] | 17.5 [10.5, 26.6] |
| Hair occluded | 65 | 2 | 3.1 [0.4, 10.7] | 6.2 [1.7, 15.0] | 16.9 [8.8, 28.3] | 32.3 [21.2, 45.1] |
| Six emotional expressions | 421 | 3 | 1.4 [0.5, 3.1] | 1.9 [0.8, 3.7] | 8.6 [6.1, 11.6] | 15.9 [12.6, 19.8] |
| Lower-face action units | 1,443 | 8 | 0.9 [0.5, 1.5] | 1.7 [1.1, 2.5] | 4.5 [3.5, 5.7] | 11.7 [10.1, 13.5] |
| Upper-face action units | 402 | 5 | 1.2 [0.4, 2.9] | 1.7 [0.7, 3.5] | 3.2 [1.7, 5.5] | 6.2 [4.1, 9.0] |
| Combined action units | 159 | 0 | 0.0 [0.0, 2.3] | 0.0 [0.0, 2.3] | 0.0 [0.0, 2.3] | 3.1 [1.0, 7.2] |
| Yaw up to 30° | 294 | 1 | 0.3 [0.0, 1.9] | 0.3 [0.0, 1.9] | 0.7 [0.1, 2.4] | 4.4 [2.4, 7.4] |
| Slight pitch | 196 | 1 | 1.5 [0.3, 4.4] | 1.5 [0.3, 4.4] | 1.5 [0.3, 4.4] | 2.0 [0.6, 5.1] |
| All of the above | 3,273 | 26 | 1.1 [0.8, 1.6] | 1.8 [1.4, 2.3] | 4.6 [3.9, 5.4] | 10.8 [9.7, 11.9] |
| Conditions an attended station rejects | ||||||
| Yaw 45° | 196 | 1 | 0.5 [0.0, 2.8] | 1.0 [0.1, 3.6] | 9.7 [5.9, 14.7] | 25.0 [19.1, 31.7] |
| Yaw 90° | 196 | 9 | 13.8 [9.3, 19.4] | 45.9 [38.8, 53.2] | 83.2 [77.2, 88.1] | 96.9 [93.5, 98.9] |
| Full pitch | 195 | 4 | 3.1 [1.1, 6.6] | 3.1 [1.1, 6.6] | 5.1 [2.5, 9.2] | 9.7 [6.0, 14.8] |
| Diagonal turn | 197 | 1 | 0.5 [0.0, 2.8] | 1.5 [0.3, 4.4] | 8.1 [4.7, 12.8] | 23.4 [17.6, 29.9] |
| Controls | ||||||
| Same person, neutral repeat | 187 | 0 | 0.0 [0.0, 1.9] | 0.0 [0.0, 1.9] | 0.0 [0.0, 1.9] | 0.0 [0.0, 1.9] |
| False duplicates, 97-person gallery | 187 | 0 | 31.0 [24.5, 38.2] | 1.1 [0.1, 3.8] | 0.0 [0.0, 1.9] | 0.0 [0.0, 1.9] |
is a direct authentication input. These six field and equality-pattern checks pass; they are not a statistical privacy test or a proof of anonymity. Appendix A-J states the conditional protocol-level claim and the metadata it cannot hide.
The public-profile prototype’s policy migration also links sessions through the holder address, credential lineage and supersede event. The unlinkable profile removes these authentication handles but retains the observable issuance and metadata described above. The holder’s host receives the probe opening in the present prover configuration; hiding that opening would require an encrypted channel to an attested prover.
G. Circuit Optimization and Timing Protocol
Table VII reports constraint counts and proving times (R-PRIV512-20261027, R-PRIVV2-20261028, R-PROVETIME-20261028). Range checks on 1,024 coordinates dominate format v1, followed by the two Poseidon commitment chains, the credential tree and EdDSA. Narrowing the distance width leaves no room, since it is already the minimum that holds the sum, and a shallower device tree would cap a policy at 128 devices although each person carries one. Format v2 brings the 12-bit, 512-dimensional circuit below constraints, which
halves the Groth16 evaluation domain. We measure v1 and v2 alternately on the same input, five rounds after one warm-up: proving drops by 26% and the total by 15%, although witness generation is slower because Poseidon(16) is heavier in WebAssembly. With depth 20 for both trees the total is 1,801 ms. Real LFW vectors pass for the genuine user and fail impostor witness generation in all three configured v2 circuits.
APPENDIX G
BGV CAPACITY, MEASUREMENTS AND PARAMETER CONTROLS
A. Unified configuration and capacity validation
Unified512-2 uses , , degree , two layers and . Its plaintext prime is ; the coefficient primes, in order, are 1152921504606830593, 1125899905744897, 112589906629633 and 1125899906826241. The last is the special prime; the first three give the 160-bit data modulus. All stages use identical parameters and retain SEAL’s tc128 check. We enforce and , consistent with the rounded unit-vector bound .
TABLE S7
UNIFIED512-2 CAPACITY CHECKPOINTS. ALL NOISE BUDGETS ARE IN BITS. EVERY ROW, QUERY AND PACKING CHECK, INCLUDING FRESH-GALLERY CONTROLS, HAS ZERO ERRORS. THE ROW COLUMN IS THE MINIMUM OVER ALL ROWS AND THREE RUNS.
| Registrations | Query 1 | Query 2 | Query 3 | Row min. |
|---|---|---|---|---|
| 1 | 31 | 31 | 29 | 103 |
| 2 | 30 | 30 | 28 | 102 |
| 4 | 29 | 29 | 27 | 101 |
| 8 | 28 | 28 | 26 | 100 |
| 16 | 27 | 27 | 25 | 100 |
| 32 | 26 | 26 | 24 | 99 |
| 64 | 25 | 25 | 23 | 98 |
| 128 | 24 | 24 | 22 | 97 |
| 256 | 23 | 23 | 21 | 96 |
| 512 | 22 | 22 | 20 | 95 |
| 1,024 | 21 | 21 | 19 | 94 |
| 2,048 | 20 | 20 | 18 | 93 |
| 4,096 | 19 | 19 | 17 | 92 |
| 8,192 | 18 | 18 | 16 | 91 |
| 8,193 | 18 | 18 | 16 | 91 |
| 16,384 | 17 | 17 | 15 | 90 |
The actual prime satisfies both C1 inequalities, and .
Three separate processes generate fresh SEAL keys from OS entropy and use plaintext seeds 20261031, 20261032 and 20261033. Each independently encrypts and adds all 512 rows for every registration, reaching 16,384 entries without refreshing the accumulated block. Each history uses one fixed synthetic query. Inputs are normalized and quantized synthetic vectors; registrations 1, 8192, 8193 and 16384 use admissible signed axis vectors. At each checkpoint we decrypt all accumulated rows, evaluate the encrypted query and compare all 8192 slots and both packed layers with the plaintext reference. A fresh encryption of the same gallery provides a diagnostic control, never a replacement for the accumulated block.
Table S7 reports all 16 checkpoints per history. All five error counters—row, query, packed-score, fresh-query and fresh-packed-score—are zero at all 48 checkpoints. The 128-registration precheck also passes its eight checkpoints. These tests cover specified histories and one query per key; repeated checks of the same positions are not independent trials or a general failure-probability estimate. Keys and key fingerprints are not exported; parameter IDs identify parameters.
B. Source-dependent noise bound
We give a conservative sufficient bound for this operation path, to be read with the implementation assumptions below. In , the coefficient norm obeys ; it is not the SIMD slot norm. Let be the product of the three data primes and the special prime. SEAL 4.1.2 uses centered-binomial noise with coefficient magnitude at most 21 and ternary secret and ephemeral polynomials. Before dropping , an asymmetric encryption of zero has phase modulo , where
For each ciphertext component coefficient , the zero-encryption switch uses , in , and . Thus , and . The switched phase has an integer representative modulo . Its numerator is divisible by both and , so . Since , . Adding the centered plaintext polynomial gives
Each row sums at most such phases. A query sums L products of an accumulated row and a fresh query row. A sufficient condition for its phase to remain inside the centered decryption range is therefore
Using the actual primes gives , so the strict inequality holds. This conservative ratio is not SEAL's measured invariant noise budget. Together with C1, the bound addresses the specified honestly generated ciphertext path, assuming correct ring arithmetic and decoding. It does not cover arbitrary malicious ciphertexts or other homomorphic circuits.
The bound requires SEAL's asymmetric zero encryption with one special-prime drop, centered plaintext lift and correction factor one, followed only by row additions and L products plus additions. There are no rotations, relinearizations, later modulus switches or refreshes. We checked these paths against the frozen SEAL sources and the actual build; Gaussian noise is disabled. A separate small integer-ring model checks 400 algebraic instances, distinct from the SEAL histories. The source-derived argument and its phase-representative reasoning remain subject to independent mathematical review; arithmetic checks and finite runs are not that review.
C. Timing and reproducibility
Main-paper Table IX gives the serial Unified512-2 medians from one warmup and five measured rounds. Saving the enrollment takes 188.64 ms uncompressed or 678.77 ms with zstd. In-memory Keccak-256 medians are 1004.80, 946.48 and 813.75 ms for the tail, enrollment and merged frames, respectively. Uncompressed frames contain 201,388,584 bytes, including 4136 bytes of framing. We rechecked their SHA-256 and Keccak-256 hashes; large buffers remain in the local evidence directory, with hashes included in the portable manifests. This timing path appends once to a freshly encrypted almost-full gallery. It is distinct from the three parallel capacity histories, whose elapsed times are not single-request latencies. Two-context byte equality is a same-host check.
The native implementation uses GCC 16.2.0, SEAL 4.1.2 and Zstandard 1.5.7 on Windows 11 with an Intel Core i9-9900T. Each capacity process encrypts rows with four threads and separate encoders, encryptors and memory pools; serial timings do not sum parallel work. SEAL's supported C++17-off build selects its stock atomic locks after a Windows shared-mutex handle leak was diagnosed; cryptographic parameters and randomness are unchanged. Earlier resource-stalled and console-interrupted runs are retained separately and contribute no progress to the completed histories. Source,
TABLE S8
SINGLE-MERGE MEASUREMENTS WITH THE ORIGINAL PARAMETER SETS, RETAINED AS PARAMETER CONTROLS. F: FACENET (, ); M: MOBILEFACENET (, ). NONE/DEF DENOTE UNCOMPRESSED/ZSTD FRAME SIZES.
| Profile | None (MiB) | Def (MiB) | Enroll (s) | Add (ms) | Noise |
|---|---|---|---|---|---|
| F, | 48.01 | 25.09 | 0.611 | 9.21 | 8 |
| F, | 48.01 | 31.43 | 0.624 | 9.27 | 11 |
| F, | 48.01 | 37.61 | 0.648 | 9.70 | 0 |
| M, | 192.06 | 106.95 | 2.745 | 41.86 | 13 |
| M, | 192.06 | 140.74 | 2.663 | 38.92 | 0 |
Minimum query noise budget in bits over six rounds. All single-merge results decoded correctly, including the zero-budget cases; the cumulative failures described below concern separate runs.
executable, library, configuration and raw-record hashes are frozen with run IDs R-BGV-RUNTIME-R3-FINAL-20261031 and R-BGV-RUNTIME-R3-MEASURE-20261031. The reproducibility guide locates the audit and evidence package.
D. Original parameter sets and repair controls
We additionally implement actual public-key BGV enrollment and merge operations, separately from the JavaScript pipeline. The experiment uses official Microsoft SEAL 4.1.2 and the five parameter sets that BioZKFHE's artifact, at commit 76ffb9f, uses for its experiment E3. We refer to them as the original parameter sets. The artifact's bundled SEAL fork contains unfinished changes that do not compile in our environment; this is an independent parameter-matched experiment, not a reproduction of that binary. Compilation uses GCC 16.2.0, Release/O3 and Zstandard 1.5.7 on Windows 11 with an Intel Core i9-9900T. SEAL's 128-bit parameter check is enabled. The raw data include actual primes and parameter identifiers.
For each profile, one warmup precedes five measured rounds. We encrypt a synthetic unit-normalized, quantized enrollment at the final empty slot of a freshly encrypted full tail block, encrypt a query, load and merge the frames, and compare all 8,192 decoded slots and their packed layers against plaintext inner products. A second context loads the same input bytes and recomputes identical merge bytes in every round. This is a second computation in the same process, not a cross-platform determinism result. Table S8 reports the component medians for the original parameter sets (R-BGV-20261030); main-paper Table IX instead reports Unified512-2. Construction, encoding and public-key encryption are included in enrollment time; key generation, capture, signatures, network transfer and chain execution are excluded.
The canonical experiment frame contains a version tag, , and length-prefixed rows saved with compr_mode_type::none. The actual sizes are 50,347,176 bytes for 128 rows and 201,388,584 bytes for 512 rows; framing contributes 1,064 and 4,136 bytes, respectively. Ciphertexts have three data-level RNS limbs, size two, NTT representation and correction factor one. Downloading only the enrollment frame therefore costs about 45.8–183.2 TiB over a million registrations, even with a local tail replica. This replaces the earlier compressed-block proxy for an uncompressed wire format. Key/parameter identities and representation rules would also need to be authenticated in a deployment.
Loading both inputs takes median 70.5–328.2 ms and saving the merged frame 47.7–212.5 ms. The sum of separately measured median Keccak-256 times for the two inputs and result is 0.56–2.66 s. These are in-memory component costs, not a complete transaction latency; additions alone understate the committee's work. The full ciphertext buffers and their hashes are retained locally; portable raw samples and manifests identify every run.
Accumulated noise is a separate constraint. A freshly encrypted almost-full block plus one enrollment does not represent a block formed by thousands of encrypted insertions. We therefore start with one enrollment and independently encrypt and add every subsequent enrollment across all L rows. At powers-of-two checkpoints we evaluate the full encrypted query and compare every slot and layer. With fresh keys in each of three runs, FaceNet first fails at checked counts 4, 16 and 8. MobileFaceNet first fails at checked counts 16, 16 and 32. The failed query has zero reported noise budget and all 8,192 slots disagree with the plaintext result. Checkpoints do not identify the earliest possible failure, and a zero budget alone is not our failure criterion.
These original configurations serve as baseline controls for parameter repair. The failures concern incremental insertion, which BioZKFHE's whole-block experiments do not exercise, and do not contradict its published single-block results; every single merge in Table S8 decodes correctly. A diagnostic rerun of FaceNet fails at four registrations while every accumulated row still decrypts correctly; a fresh encryption of the same gallery, evaluated with the same encrypted query, succeeds. This localizes the observed failure to the query's noise budget rather than an incorrect row merge.
We therefore add an incremental-registration candidate with coefficient modulus limb sizes (60, 50, 50, 50): 210 key-level bits and 160 data-level bits at degree 8192, retaining SEAL's tc128 check. Plaintext moduli, packing, inputs and query computation are unchanged. One fresh-key run per profile performs 64 actual registrations; all seven checkpoints at counts 1,2,4,8,16,32,64 pass row, packed-score and fresh-gallery control checks. Query noise budgets at count 64 are 29 bits for FaceNet and 40 bits for MobileFaceNet . These are short repair regressions for the two original vector profiles, not full-capacity validation of those profiles. The complete histories above instead use Unified512-2, with a different vector domain, plaintext prime and packing base. Aligning that profile with authentication does not integrate the encrypted backend into the bridge or committee.
APPENDIX H
EXTENDED DISCUSSION AND DESIGN ALTERNATIVES
Modality at scale. Main-paper Section IX identifies an accuracy tradeoff for the tested public face model on LFW and in scale extrapolations assuming independent comparisons. This does not establish an impossibility for face recognition, and it matches the choice of the largest deployment: World
ID uses the iris for uniqueness and the face only for 1:1 re-authentication. Controlled enrollment capture, several images per person, quality gating and stronger face models would all improve the numbers; we did not measure any of them and give no figures. An iris or multimodal backend must instantiate the same binding and state conditions with its own matcher and error model; Appendix C-B gives an MPC interface mapping.
Capture hardware. The ACM is a software mock in this paper. The contribution concerns protocol composition under explicit trusted interfaces; validating a physical capture module is outside this evaluation. A hardware module would need a protected sensor path, a protected key, a persistent anti-rollback counter for the budget and an attested firmware measurement. Our mock follows the same wire format, so it establishes the interface and the ordering of reservation, capture and signature, but not sensor provenance. In the unlinkable profile the attempt budget rests on the module alone, since the on-chain counter would identify the device.
Removing trust in the enrollment station. The ES is trusted to derive both ciphertexts and the commitment from one vector. A proof that a BGV ciphertext and a Poseidon commitment encrypt and commit the same plaintext would remove that trust for I1, but proofs over megabyte ciphertexts are far beyond current circuit sizes; this remains open. Such a proof would not replace the ES: deduplication is only meaningful if an entity outside the enrollee's control witnesses one live person and one capture, and limits enrollment attempts, which cannot be counted per person before deduplication.
Self-enrollment variant. The ES role can also be played by the holder's own certified capture module, so that enrollment too stays on the user side. The price is Sybil resistance. Attempts can then only be counted per device, a person with several modules can retry until one capture is a missed duplicate, and presentation attacks are easier without supervision; at the operating point of main-paper Section IX, a non-adversarial miss rate of about 17% compounds over retries. One enrollment ciphertext consists of BGV ciphertexts and is structurally a full gallery block. Our measurements with BioZKFHE's original parameter sets require 48–192 MiB under uncompressed framing and about 0.61–2.75 s to construct, encode and encrypt a registration on the measured desktop CPU. These are separate backend profiles, not measurements on a microcontroller or on the recommended authentication parameters. They favor an adequately resourced attended station, but cost alone does not establish its trustworthiness. Self-enrollment remains an extension requiring separate capture and attempt-control evidence.
Choice of 1:N backend. Our main instance inherits the packed gallery encoding and the block proofs of BioZKFHE [8]; these supply gallery encoding and verifiable encrypted evaluation. The present construction adds the capture, issuance and state bindings around that engine. Appendix C-B identifies the corresponding conditions for a World ID-inspired MPC alternative and the different assumptions needed for I4. Public verifiability is one way to establish verdict soundness, rather than a requirement that every admissible backend use the same proof system.
Committee bandwidth and homomorphic digests. A digest
that is linear in the ciphertext would let anyone check a merge from two digests and remove the committee from root migration. A linear map modulo is not collision resistant on arbitrary inputs, because its kernel can be found by Gaussian elimination, so the naive version fails. A Pedersen-style commitment over the unreduced integer block remains possible, but whether it saves bandwidth depends on how BioZKFHE's block proofs bind blocks; we have not evaluated it experimentally.
Tree cost. Credential issuance and revocation in the unlinkable profile cost about 0.86 and 1.04 million gas. Storing tree nodes would let revocation compute one path instead of two, and an off-chain root update proved by a SNARK would allow batching; both trade storage or prover work for gas.
Template refresh and deletion. The gallery only grows. Re-enrollment after revocation, same-model template refresh and deletion all require a new backend operation and a revised uniqueness game, and we do not support them.
A. Deployment and Evaluation Limitations
The prototype has no capture hardware: the ES is a software bridge and the ACM a software mock, so nothing here shows sensor provenance or a tamper-resistant budget, and enrollment has no presentation-attack detection. The committee is simulated, block proofs are not executed, and our gas figures exclude them; the composition with BioZKFHE uses its published measurements. We do not implement BioZKFHE's block-proof submission or the check that every snapshot block is proved; a deployment must accept only openings checked against their quadratic arithmetic programs, which the published cost-measurement contract does not enforce. The stale-session check compares the gallery count only, which suffices because the gallery only grows; supporting replacement or migration with an unchanged count would require comparing a gallery version or root instead. Data availability of the ciphertexts that the committee rehashes is assumed, not implemented. The aligned BGV profile passes three full-capacity histories, each with one fixed synthetic query. This finite input/key coverage does not establish a general failure probability, and the source-dependent noise argument still requires independent review. All Groth16 keys come from local single-party benchmark setups and are not deployable. The biometric evaluation uses one public face model and one dataset, LFW, which cannot resolve low FARs, and we have no access to the pose and age stress sets or to a large controlled dataset. The biometric terms and have only non-adversarial reference values. The proofs have not been independently reviewed. The authentication and privacy arguments for the unlinkable profile are conditional on explicit extraction, Merkle-membership and related-output hiding assumptions; their concrete instantiations still require review. The gateway of the unlinkable profile lacks policy revocation and model migration. Gas figures are local transaction measurements; proving-time experiments use the repetitions reported with each run, rather than a deployment-wide performance guarantee.
REFERENCES
[1] J. R. Douceur, “The sybil attack,” in Peer-to-Peer Systems: First International Workshop, ITPTS 2002, Cambridge, MA, USA, March 7–8, 2002, Revised Papers, ser. Lecture Notes in Computer Science, vol. 2429. Springer, 2002, pp. 251–260.
[2] World, “World whitepaper: Achieving proof of human,” 2026, accessed 2026-11-09. [Online]. Available: https://whitepaper.world.org/achieving-proof-of-human
[3] T. Wang, S. Zhang, Q. Yang, and S. C. Liew, “Account service network: A unified decentralized Web 3.0 portal with credible anonymity,” IEEE Network, vol. 37, no. 6, pp. 101–108, 2023.
[4] T. Wang, Z. Lin, S. Zhang, L. Shi, Q. Yang, and B. Düdder, “Linking souls to humans: Blockchain accounts with credible anonymity for Web 3.0 decentralized identity,” in Proceedings of the ACM on Web Conference 2025, 2025, pp. 2668–2676.
[5] A. R. Choudhuri, S. Garg, K. Lee, H. Montgomery, G. V. Policharla, and R. Sinha, “A cryptographic framework for proof of personhood,” Cryptology ePrint Archive, Paper 2026/333, 2026. [Online]. Available: https://eprint.iacr.org/2026/333
[6] P. Kothari, R. Dwivedi, D. Chopra, M. Singh, and S. Bhardwaj, “A privacy-preserving blockchain-based fingerprint authentication scheme using zk-snarks and cancelable biometrics,” IEEE Transactions on Biometrics, Behavior, and Identity Science, 2026, early Access, published October 15, 2026; accepted manuscript consulted.
[7] R. Bloemen, B. Gillespie, D. Kales, P. Sippl, and R. Walch, “Large-scale MPC: Scaling private iris code uniqueness checks to millions of users,” 2024.
[8] R. Xin, T. Wang, X. Wu, W. Meng, S. Zhang, and S. Yu, “BioZKFHE: Scalable encrypted biometric identification via verifiable homomorphic similarity evaluation,” IEEE Transactions on Dependable and Secure Computing, 2026, early Access, published July 23, 2026.
[9] Z. Lin, T. Wang, J. Lai, S. Zhang, Q. Yang, and S. C. Liew, “BioZero: Privacy-preserving and publicly verifiable on-chain biometric authentication via homomorphic commitments and zero-knowledge proofs,” https://arxiv.org/abs/2409.17509v3, 2026, Version 3, revised November 1, 2026.
[10] K. Glas, P. D'Amico, and T. Zillig, "WIP-201: Flamingo verifier (draft)," https://github.com/worldcoin/world-id-protocol/blob/main/docs/WIPs/wip-201.md, 2026, draft, created 2026-08-03; accessed 2026-11-09.
[11] P. D'Amico and K. Glas, "WIP-202: Proof of embedding similarity (draft)," https://github.com/worldcoin/world-id-protocol/blob/main/docs/WIPs/wip-202.md, 2026, draft, created 2026-08-03; accessed 2026-11-09.
[12] ISO/IEC, "ISO/IEC 24745:2022 information security, cybersecurity and privacy protection — biometric information protection," 2022.
[13] B. Wang, W. Lueks, J. Sukaitis, V. G. Narbel, and C. Troncoso, "Not yet another digital ID: Privacy-preserving humanitarian aid distribution," in IEEE Symposium on Security and Privacy (S&P), 2023, pp. 645–663.
[14] K. EdalatNejad, W. Lueks, J. Sukaitis, V. G. Narbel, M. Marelli, and C. Troncoso, “Janus: Safe biometric deduplication for humanitarian aid distribution,” in IEEE Symposium on Security and Privacy (S&P), 2024, pp. 655–672. [Online]. Available: https://arxiv.org/abs/2308.02907
[15] T. Rausch, S. Chatel, and W. Lueks, “xDup: Privacy-preserving deduplication for humanitarian organizations using fuzzy PSI,” in IEEE Symposium on Security and Privacy (S&P), 2026, full version: arXiv:2604.08019. [Online]. Available: https://arxiv.org/abs/2604.08019
[16] X. Mao, Y. Chen, C. Deng, and X. Zhou, “A novel privacy-preserving biometric authentication scheme,” PLOS ONE, vol. 18, no. 5, p. e0286215, 2023.
[17] T. Chinen, C. Wiraatmaja, Y. Nakahata, T. Hara, and S. Kasahara, "zkSABER: Zero-knowledge succinct authentication using biometric embedding representation," in 2025 7th Conference on Blockchain Research & Applications for Innovative Networks and Services (BRAINS), 2025. [Online]. Available: https://www-lsm.naist.jp/~t-hara/paper/chinenzkSABERZeroknowledgeSuccinct2025.pdf
[18] E. Krul, H. young Paik, S. Ruj, and S. S. Kanhere, “SoK: Trusting self-sovereign identity,” Proceedings on Privacy Enhancing Technologies, vol. 2024, no. 3, pp. 297–313, 2024.
[19] D. Maram, H. Malvai, F. Zhang, N. Jean-Louis, A. Frolov, T. Kell, T. Lobban, C. Moy, A. Juels, and A. Miller, “CanDID: Can-do decentralized identity with legacy compatibility, Sybil-resistance, and accountability,” in IEEE Symposium on Security and Privacy (S&P), 2021, pp. 1348–1366.
[20] M. Rosenberg, J. White, C. Garman, and I. Miers, “zk-credits: Flexible anonymous credentials from zkSNARKs and existing identity infrastructure,” in IEEE Symposium on Security and Privacy (S&P), 2023, pp. 790–808.
[21] Semaphore contributors, “Semaphore v4 documentation: What is semaphore?” https://docs.semaphore.pse.dev/, 2026, version 4; accessed 2026-11-09.
[22] World, “Frequently Asked Questions About World,” https://world.org/faqs, 2026. Accessed 2026-11-09; Face Auth described as phone-local.
[23] M. P. Herlihy and J. M. Wing, “Linearizability: A correctness condition for concurrent objects,” ACM Transactions on Programming Languages and Systems, vol. 12, no. 3, pp. 463–492, 1990.
[24] L. Grassi, D. Khovratovich, C. Rechberger, A. Roy, and M. Schofnegger, “Poseidon: A new hash function for zero-knowledge proof systems,” in 30th USENIX Security Symposium, 2021.
[25] K. Zhang, Z. Zhang, Z. Li, and Y. Qiao, “Joint face detection and alignment using multitask cascaded convolutional networks,” IEEE Signal Processing Letters, vol. 23, no. 10, pp. 1499–1503, 2016.
[26] Q. Cao, L. Shen, W. Xie, O. M. Parkhi, and A. Zisserman, “VGGFace2: A dataset for recognising faces across pose and age,” in IEEE International Conference on Automatic Face and Gesture Recognition (FG), 2018.
[27] G. B. Huang, M. Ramesh, T. Berg, and E. Learned-Miller, “Labeled faces in the wild: A database for studying face recognition in unconstrained environments,” University of Massachusetts, Amherst, Tech. Rep. 07-49, 2007.
[28] C. J. Clopper and E. S. Pearson, “The use of confidence or fiducial limits illustrated in the case of the binomial,” Biometrika, vol. 26, no. 4, pp. 404–413, 1934.
[29] A. Savran, N. Alyiz, H. Dibeklioglu, O. Çelikututan, B. Gökberk, B. Sankur, and L. Akarun, “Bosphorus database for 3D face analysis,” in Proc. First COST 2101 Workshop on Biometrics and Identity Management (BIOID 2008), ser. Lecture Notes in Computer Science, vol. 5372. Roskilde, Denmark: Springer, 2008, pp. 47–56.