@tanglelabs/jwk-identity-adapter
v0.1.3
Published
did:jwk adapter
Downloads
26
Readme
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