Type alias GPCProofOwnerInputs

GPCProofOwnerInputs: {
    externalNullifier?: PODValue;
    semaphoreV3?: IdentityV3;
    semaphoreV4?: IdentityV4;
}

Optional part of GPCProofInputs relating to an owner's identity, which at present may be either a Semaphore V3 or Semaphore V4 identity.

Type declaration

  • Optional externalNullifier?: PODValue

    If this field is set, a nullifier hash will be calculated and revealed in the proof. The hash is uniquely tied to this value, and to the owner's private identity. This allows identifying duplicate proofs (e.g. to avoid double spending or voting) without de-anonymizing the owner.

    This field can be a PODValue of any type, and will be represented in the circuit as a number or a hash as appropriate. When the proof is verified, the external nullifier is also verified (as a public input).

    This field cannot be set if no entry is marked with isOwnerID, because such a nullifier would not be cryptographically tied to anything verifiable.

  • Optional semaphoreV3?: IdentityV3

    The owner's identity using Semaphore V3. This need not be specified if no entry has isOwnerID equal to "SemaphoreV3".

  • Optional semaphoreV4?: IdentityV4

    The owner's identity using Semaphore V4. This need not be specified if no entry has isOwnerID equal to "SemaphoreV4".

Generated using TypeDoc