UNPKG

dwnpm

Version:

Decentralized Registry Package Manager (DRPM) helps developers publish, install, find and manage Decentralized Packages (DPKs) published to Decentralized Web Nodes (DWNs). DRPM does this by looking up a Decentralized Identifier (DID) to find its DID docum

18 lines 667 B
import { DidMethod } from '@web5/dids'; import { resolveDidBtc } from 'did-btc-sdk'; export class DidBtc extends DidMethod { /** * Name of the DID method, as defined in the DID BTC specification. */ static methodName = 'btc'; /** * @param _didUri DID URI to resolve; NOT USED * @param _options DID resolution options; MOSTLY NOT USED, contains required transactions and optional didIndex * @returns DID Document from BTC blockchain */ static resolve(_didUri, _options) { const { transactions, didIndex } = _options; return resolveDidBtc(transactions, didIndex); } } //# sourceMappingURL=did-btc.js.map