Function createWeb3IdDID

  • Creates a DID string for a Web3 ID credential. Used to build a request for a verifiable credential issued by a smart contract.

    Returns

    DID string in format: did:ccd:{network}:sci:{index}:{subindex}/credentialEntry/{publicKey}

    Parameters

    • network: Network

      The Concordium network

    • publicKey: string

      The public key of the credential holder

    • index: bigint

      The contract index

    • subindex: bigint

      The contract subindex

    Returns DIDString

Generated using TypeDoc