@tanglelabs/key-identity-adapter
v0.2.2
Published
did:key adapter
Downloads
680
Readme
DID Key Adapter
did:key
adapter for @tanglelabs/ssimon
Installation
1. npm
$ npm install @tanglelabs/ssimon @tanglelabs/key-identity-adapter
2. yarn
$ yarn add @tanglelabs/ssimon @tanglelabs/key-identity-adapter
Usage
(async () => {
const manager = await IdentityManager.build({
adapter: DidKeyAdapter,
storage,
});
const did = await manager.createDid({
alias: "asdf",
store,
});
console.log(did.getDid());
})();
Result
did:key:z6MkgMrYL9gZDeDq9d4ZRQquiE83cuwN6BUzHDVLNz1CpAmG