Skip to content
LogoLogo

WaltIdVcSigner

Sign the DDO with a walt.id wallet key, so the asset's issuer is a real DID.

Usage

const  = new ({ : 'https://wallet.example.org' })
 
const {  } = await .()
const [{ :  }] = await .()
const [] = await .(, )
const [{  }] = await .(, )
 
const  = new ({ 
  , 
  , 
  : .., 
  , 
   
}) 

Pair it with setIssuer when the document's declared issuer should match.

Parameters

options

OptionTypePurpose
walletWaltIdWalletThe wallet client.
walletIdstringWhich wallet to sign with.
keyIdstringWhich key in that wallet.
didstringBecomes the credential's issuer.
tokenstringThe bearer token from authenticate.

See signing.