Hierarchy

  • Versioned
    • Presentation

Constructors

Properties

_version: string
attributeCiphertexts?: Map<number, AttributeCiphertexts[]>
blindedAttributeCiphertexts?: AttributeCiphertexts[]
context?: string
nonce?: Uint8Array

Accessors

Methods

  • Parameters

    • credentialVerifParams: Map<number, CredentialVerificationParam> | CredentialVerificationParam[]

      Map of verification parameters for credentials in the presentation. The key of the map is the credential index. Can also take array of keys in the order of credentials in the presentation for supporting old API but this will be removed in future. The verification param could be a public key or secret key. Certain kinds of credentials don't require either for (partial) verification but will require for full verification

    • OptionalaccumulatorVerifParams: Map<number, AccumulatorVerificationParam>

      Mapping credential index -> accumulator verification parameters.

    • OptionalpredicateParams: Map<string, PredicateParamType>

      Setup params for various predicates

    • OptionalcircomOutputs: Map<number, Uint8Array[][]>

      Values for the outputs variables of the Circom programs used for predicates. They key of the map is the credential index

    • OptionalblindedAttributesCircomOutputs: Uint8Array[][]

      Outputs for Circom predicates on blinded attributes

    • OptionalcircomOutputsMultiCred: Uint8Array[][]

      Values for the outputs variables of the Circom programs spanning over multiple credential attributes

    Returns VerifyResult