From a9385c1bd61fd17596c4c9dd65f1d383b8e00347 Mon Sep 17 00:00:00 2001 From: dasource Date: Tue, 21 Jul 2015 21:17:19 +0000 Subject: Add Shadow and Shadow Testnet --- bip39-standalone.html | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'bip39-standalone.html') diff --git a/bip39-standalone.html b/bip39-standalone.html index 77e86a5..c450982 100644 --- a/bip39-standalone.html +++ b/bip39-standalone.html @@ -6286,7 +6286,9 @@ button.close { - + + +
@@ -31117,6 +31119,32 @@ var networks = { dustThreshold: 546, // https://github.com/bitcoin/bitcoin/blob/v0.9.2/src/core.h#L151-L162 feePerKb: 10000, // https://github.com/bitcoin/bitcoin/blob/v0.9.2/src/main.cpp#L53 estimateFee: estimateFee('bitcoin') + }, + shadow: { + magicPrefix: '\x19Shadow Signed Message:\n', + bip32: { + public: 0xEE80286A, + private: 0xEE8031E8 + }, + pubKeyHash: 0x3f, + scriptHash: 0x7d, + wif: 0xbf, + dustThreshold: 0, // CHECK + feePerKb: 100000000, // CHECK + estimateFee: estimateFee('shadow') + }, + shadowtn: { + magicPrefix: '\x19Shadow Signed Message:\n', + bip32: { + public: 0x76C0FDFB, + private: 0x76C1077A + }, + pubKeyHash: 0x7f, + scriptHash: 0xc4, + wif: 0xff, + dustThreshold: 0, // CHECK + feePerKb: 100000000, // CHECK + estimateFee: estimateFee('shadowtn') }, dogecoin: { magicPrefix: '\x19Dogecoin Signed Message:\n', @@ -33935,6 +33963,16 @@ var Mnemonic = function(language) { else if (n == "litecoin") { network = Bitcoin.networks.litecoin; DOM.bip44coin.val(2); + } + else if (n == "shadow") { + network = Bitcoin.networks.shadow; + var UNOFFICIAL_BIP44_COIN = 9999; + DOM.bip44coin.val(UNOFFICIAL_BIP44_COIN); + } + else if (n == "shadowtn") { + network = Bitcoin.networks.shadowtn; + var UNOFFICIAL_BIP44_COIN2 = 9999; + DOM.bip44coin.val(UNOFFICIAL_BIP44_COIN2); } else if (n == "dogecoin") { network = Bitcoin.networks.dogecoin; -- cgit v1.2.3