From 8dd28f2cff4e1f673f4aa7adc93a7254de72a297 Mon Sep 17 00:00:00 2001 From: alkley Date: Mon, 9 Oct 2017 15:34:39 +0200 Subject: Add nubits --- src/js/bitcoinjs-extensions.js | 11 +++++++++++ src/js/index.js | 8 ++++++++ 2 files changed, 19 insertions(+) diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index 58a8d77..661e089 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js @@ -239,3 +239,14 @@ bitcoinjs.bitcoin.networks.fujicoin = { scriptHash: 0x10, wif: 0xa4 }; + +bitcoinjs.bitcoin.networks.nubits = { + messagePrefix: '\x18Nu Signed Message:\n', + bip32: { + public: 0x0488b21e, + private: 0x0488ade4 + }, + pubKeyHash: 0x19, + scriptHash: 0x1a, + wif: 0x96, +}; diff --git a/src/js/index.js b/src/js/index.js index f7a1be2..d61c314 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -1386,6 +1386,14 @@ setHdCoin(111); }, }, + { + name: "USNBT - NuBits", + p2wpkhNestedInP2shAvailable: false, + onSelect: function() { + network = bitcoinjs.bitcoin.networks.nubits; + setHdCoin(12); + }, + }, { name: "VIA - Viacoin", p2wpkhNestedInP2shAvailable: false, -- cgit v1.2.3