Static
generateGenerate a beacon service.
Required parameters for generating a single Beacon Service.
One BeaconService object.
Static
generateGenerate beacon services.
Required parameters for generating Beacon Services.
Optional beacon type to use (default: SingletonBeacon).
The name of the Bitcoin network to use.
Byte array representation of a public key used to generate a new btc1 key-id-type.
Array of DidService objects.
Static
generateGenerate a set of Beacon Services for a given public key.
Required parameters for generating Beacon Services.
Bitcoin network interface from bitcoinlib-js.
Public key bytes used to generate the beacon object serviceEndpoint.
2D Array of bitcoin addresses (p2pkh, p2wpkh, p2tr).
Static
getCreate a map of address => beaconService with address field.
The list of beacon services.
A map of address => beaconService.
Static
getExtracts the services from a given DID Document
The DID Document to extract the services from
An array of DidService objects
Static
isValidates that the given object is a Beacon Service
The object to validate
A boolean indicating whether the object is a Beacon Service
Static
parseStatic
toConvert beacon service endpoints from BIP-21 URIs to addresses.
The list of beacon services.
An array of beacon services with address: bitcoinAddress.
Static class of utility functions for the Beacon Service BeaconUtils