From cd8893f6c980644ff382d10dee7181d1a943ebad Mon Sep 17 00:00:00 2001 From: Matthew Cornelisse Date: Tue, 2 Oct 2018 23:44:17 -0500 Subject: added DigiByte segwit parameters --- src/js/segwit-parameters.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'src') diff --git a/src/js/segwit-parameters.js b/src/js/segwit-parameters.js index 55acb9c..246ca10 100644 --- a/src/js/segwit-parameters.js +++ b/src/js/segwit-parameters.js @@ -159,4 +159,32 @@ bitcoinjs.bitcoin.networks.bgold.p2wpkhInP2sh = { wif: 0x80, }; +bitcoinjs.bitcoin.networks.digibyte.p2wpkh = { + baseNetwork: "digibyte", + messagePrefix: '\x18DigiByte Signed Message:\n', + bech32: 'dgb', + bip32: { + public: 0x0488B21E, + private: 0x0488ADE4 + }, + pubKeyHash: 0x1e, + scriptHash: 0x3f, + wif: 0x80 +}; + +bitcoinjs.bitcoin.networks.digibyte.p2wpkhInP2sh = { + baseNetwork: "digibyte", + messagePrefix: '\x18DigiByte Signed Message:\n', + bech32: 'dgb', + bip32: { + public: 0x0488B21E, + private: 0x0488ADE4 + }, + pubKeyHash: 0x1e, + scriptHash: 0x3f, + wif: 0x80 +}; + + + })(); -- cgit v1.2.3