Function createWeb3CommitmentInput

  • Creates the commitment input required to generate a proof for Web3 ID credential statements. The commitment input contains the attribute values, randomness, and signature needed for proofs.

    Returns

    Web3 issuer commitment input for proof generation

    Parameters

    • verifiableCredentialPrivateKey: string

      The private key for signing the credential

    • credentialSubject: CredentialSubject

      The credential subject with attributes

    • randomness: Record<string, string>

      Randomness values for commitments, keyed by attribute name

    • signature: string

      The credential signature

    Returns Web3IssuerCommitmentInput

Generated using TypeDoc