UNPKG

did-relayer-quick

Version:

Veramo plugin that can enable creation and control of did:quick identifiers.

23 lines 788 B
import Debug from 'debug'; const debug = Debug('veramo:did-provider-quick:saveDIDQuickUpdate'); export async function getDIDQuickUpdates(message, agent) { if (!message.did) { throw Error('DID not found in request'); } const credentials = await agent.dataStoreORMGetVerifiableCredentials({ where: [ { column: 'type', value: ['VerifiableCredential,DIDQuickUpdate,DIDQuickAddKey'], }, { column: 'issuer', value: [message.did] } ], order: [{ column: 'issuanceDate', direction: 'ASC' }] }); console.log("getDIDQuickUpdates: ", JSON.stringify(credentials)); return credentials; } //# sourceMappingURL=getDIDQuickUpdates.js.map