Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 338 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 338 Bytes

@transmute/did-web

npm i @transmute/did-web@latest --save

Usage

DID Web Resolver
import didWeb from '@transmute/did-web';
const resolve = async (did) => {
  if (did.startsWith('did:web')){
    const didDocument = await didWeb.resolve(did);
    return  { didDocument, didResolutionMetadata: {}};
  }
}