Function createCredentialDeploymentTransaction

  • Create a credential deployment transaction, which is the transaction used when deploying a new account.

    Deprecated

    This function doesn't use allow supplying the randomness. createCredentialTransaction or createCredentialTransactionNoSeed should be used instead.

    Returns

    the details used in a credential deployment transaction

    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 account

    • 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

    • expiry: TransactionExpiry

      the expiry of the transaction

    Returns CredentialDeploymentTransaction

Generated using TypeDoc