IIdentityWallet.createIdentity() method
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
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
Parameter | Type | Description |
---|---|---|
opts | IdentityCreationOptions | default 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