Skip to content

auvoid/web-identity-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DID Web Adapter

did:web adapter for @tanglelabs/ssimon

Installation

1. npm

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

2. yarn

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

Usage

(async () => {
    const manager = await IdentityManager.build({
        adapter: DidWebAdapter,
        storage,
    });

    const did = await manager.createDid({
        alias: "domain.com",
        store,
    });

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

Result

did:web:domain.com