Skip to content

Latest commit

 

History

History

did-web

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@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: {}};
  }
}