@tanglelabs/key-identity-adapter
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.2
    157
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.2
    157
  • 0.2.1
    0
  • 0.2.0
    0
  • 0.1.2
    2
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i @tanglelabs/key-identity-adapter

Weekly Downloads

159

Version

0.2.2

License

MIT

Unpacked Size

289 kB

Total Files

20

Last publish

Collaborators

  • coodos