Function createWeb3CommitmentInputWithHdWallet

  • Creates the commitment input required to generate a proof for Web3 ID credential statements. Uses a ConcordiumHdWallet to derive the credential signing key.

    Returns

    Web3 issuer commitment input for proof generation

    Parameters

    • wallet: ConcordiumHdWallet

      The HD wallet for deriving the signing key

    • issuer: ContractAddress

      The contract address of the credential issuer

    • credentialIndex: number

      The credential index in the wallet

    • 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