Skip to main content

IdentityWallet.createIdentity() method

Create Identity creates Auth BJJ credential, Merkle trees for claims, revocations and root of roots, adds auth BJJ credential to claims tree and generates mtp of inclusion based on the resulting state it provides an identifier in DID form.

Signature:

createIdentity(opts: IdentityCreationOptions): Promise<{
did: DID;
credential: W3CCredential;
}>;

Parameters

ParameterTypeDescription
optsIdentityCreationOptionsdefault is did:iden3:polygon:mumbai** with generated key.

Returns:

Promise<{ did: DID; credential: W3CCredential; }>

Promise<{ did: DID; credential: W3CCredential }> - returns did and Auth BJJ credential