Function createUnsignedCredentialForExistingAccount

  • Create an unsigned credential for an existing account. This credential has to be signed by the creator before it can be deployed on the existing account.

    Parameters

    • identity: IdentityInput

      the identity to create a credential for

    • cryptographicParameters: CryptographicParameters

      the global cryptographic parameters from the chain

    • threshold: number

      the signature threshold for the credential, has to be less than number of public keys

    • publicKeys: VerifyKey[]

      the public keys for the credential

    • credentialIndex: number

      the index of the credential to create, has to be in sequence and unused

    • revealedAttributes: ("firstName" | "lastName" | "sex" | "dob" | "countryOfResidence" | "nationality" | "idDocType" | "idDocNo" | "idDocIssuer" | "idDocIssuedAt" | "idDocExpiresAt" | "nationalIdNo" | "taxIdNo" | "lei" | "legalName" | "legalCountry" | "businessNumber" | "registrationAuth")[]

      the attributes about the account holder that should be revealed on chain

    • address: AccountAddress

      the account address to associated the credential with

    Returns UnsignedCdiWithRandomness

Generated using TypeDoc