Skip to content

auvoid/jwk-identity-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DID JWK Adapter

did:jwk adapter for @tanglelabs/ssimon

Installation

1. npm

$ npm install @tanglelabs/ssimon @tanglelabs/jwk-identity-adapter

2. yarn

$ yarn add @tanglelabs/ssimon @tanglelabs/jwk-identity-adapter

Usage

(async () => {
    const manager = await IdentityManager.build({
        adapters: [DidJwkAdapter],
        storage,
    });

    const did = await manager.createDid({
        alias: "asdf",
        store,
        method: "jwk",
    });

    console.log(did.getDid());
})();

Result

did:jwk:eyJrdHkiOiJFQyIsIngiOiJ2NWItdkVHVDdEbmNRbDBDS21xSm1rWDZCNVhDU3ZfbWt4RjVzQV9VWko4IiwieSI6IktZLTdJOGI5SXV5c0Ixb0I0cWRtQkN1bzlUWHo4M0QzUUxTcFZJTG5nMlUiLCJjcnYiOiJQLTI1NiJ9

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published