IdentityManager is a utility library that acts as a wrapper around most IOTA Identity functions and provides an easier and more comprehensive experience to manager your identities.
On top of simply managing your DID, the IdentityManager also combines the power of stronghold and DVID (Domain Verifiable Identity).
DVID verification connects your DID to a record on a domain's DNS, inspired by the DKIM protocol, you add your DID to a text record on the domain's DNS and during verification of a credential the issuer's DID is resolved from the dns record of the domain mentioned in the id
field in the credential, Adding proof of origin to a Verifiable Credential.
IdentityManager can be installed using
$ npm install @tanglelabs/identity-manager
or
$ yarn add @tanglelabs/identity-manager
you can then add it to your project and use it
import { IdentityManager } from "@tanglelabs/identity-manager";
async function run() {
const manager = await IdentityManager.newIntsance({
filepath: "./identity"
password: process.env.IDENTITY_PASSWORD
});
const did = await manager.createDid("identity-alias");
}
run();
- see API Reference
- see examples