Closed rsafier closed 2 years ago
custom networks for decode are supported.
Example:
const customNetwork = {
bech32: 'bbbbbbbbbbbbccccccc',
pubKeyHash: 0x42,
scriptHash: 0xff,
validWitnessVersions: [0,2,3,4,5]
};
console.log(bolt11.decode(invoice, customNetwork));
custom signet BOLT11 invoices fail validation.