Static
generateGenerate a single beacon service.
Required parameters for generating a single Beacon Service.
The identifier for the beacon service.
The name of the Bitcoin network to use.
Byte array representation of a public key used to generate a new btc1 key-id-type.
The type of beacon service to create.
A BeaconService object.
Static
generateGenerate all 3 Beacon Service Endpoints 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
generateGenerate a set of Beacon Services for a given public key.
Required parameters for generating Beacon Services.
The type of address to create (p2pkh, p2wpkh, p2tr).
Bitcoin network interface from bitcoinlib-js.
Public key bytes used to generate the beacon object serviceEndpoint.
A BeaconService object.
Static
generateGenerate a custom Beacon Service.
Required parameters for generating Beacon Services.
Static
generateGenerate beacon services.
Required parameters for generating Beacon Services.
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
getCreate a map of address => beaconService with address field.
The list of beacon services.
A map of address => beaconService.
Static
getGet the beacon service ids from a list of beacon services.
The DID Document to extract the services from.
An array of beacon service ids.
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
manufactureManufacture a pre-filled Beacon using the BeaconFactory.
Required parameters for generating a single Beacon Service.
One BeaconService object.
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