Identities

Handles all Identity related functionality

Hierarchy

  • Identities

Index

Methods

Methods

createPortfolio

createPortfolio(args: object, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueueNumberedPortfolio››

Defined in src/Identities.ts:61arrow-up-right

Create a new Portfolio under the ownership of the signing Identity

note this method is of type ProcedureMethodarrow-up-right, which means you can call createPortfolio.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

args: object

Name
Type

name

string

Optional opts: ProcedureOptsarrow-up-right

Returns: Promise‹TransactionQueueNumberedPortfolio››


getIdentity

getIdentity(args: object): Promise‹Identity

Defined in src/Identities.ts:70arrow-up-right

Create an Identity instance from a DID

throws if there is no Identity with the passed DID

Parameters:

args: object

Name
Type

did

string

Returns: Promise‹Identity


isIdentityValid

isIdentityValid(args: object): Promise‹boolean›

Defined in src/Identities.ts:77arrow-up-right

Return whether the supplied Identity/DID exists

Parameters:

args: object

Name
Type

identity

Identity | string

Returns: Promise‹boolean›


registerIdentity

registerIdentity(args: RegisterIdentityParamsarrow-up-right, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueueIdentity››

Defined in src/Identities.ts:51arrow-up-right

Register an Identity

note must be a CDD provider

note this may create Authorization Requests which have to be accepted by the targetAccount. An Accountarrow-up-right or Identityarrow-up-right can fetch its pending Authorization Requests by calling authorizations.getReceived. Also, an Account or Identity can directly fetch the details of an Authorization Request by calling authorizations.getOne

note required role:

  • Customer Due Diligence Provider

note this method is of type ProcedureMethodarrow-up-right, which means you can call registerIdentity.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueueIdentity››

Last updated

Was this helpful?