Type alias GPCProofEntryConfig

GPCProofConfig for a single non-virtual POD entry, specifying which features and constraints should be enabled for that entry.

Type declaration

  • Optional isOwnerID?: IdentityProtocol

    Indicates that this entry must match the public ID of the owner identity given in GPCProofInputs. For Semaphore V3 this is the owner's Semaphore commitment (a cryptographic value), whereas for Semaphore V4 this is the owner's EdDSA public key (a PODEdDSAPublicKeyValue) that hashes to their identity commitment.

    Comparison in the proof circuit is based on the hash produced by podValueHash. This means values of different types can be considered equal if they are treated in the same way by circuits.

    If undefined, there is no owner-related constraint on this entry.

    This feature cannot be combined with equalsEntry on the same entry (since it shares the same constraints in the circuit). However since equality constraints can be specified in either direction, you can still constrain an owner entry by specifying it on the non-owner entry.

Generated using TypeDoc