Function createAccountCommitmentInput

  • Creates the commitment input required to generate a proof for account credential statements. The commitment input contains the attribute values and randomness needed for zero-knowledge proofs.

    Returns

    Account commitment input for proof generation

    Parameters

    • statements: AtomicStatementV2[]

      The atomic statements to prove

    • identityProvider: number

      The identity provider index that issued the credential

    • attributes: AttributeList

      The credential holder's attributes

    • randomness: Record<number, string>

      Randomness values for commitments, keyed by attribute index

    Returns AccountCommitmentInput

Generated using TypeDoc