aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bip39-standalone.html108
1 files changed, 67 insertions, 41 deletions
diff --git a/bip39-standalone.html b/bip39-standalone.html
index 90d2246..720b14c 100644
--- a/bip39-standalone.html
+++ b/bip39-standalone.html
@@ -39,6 +39,11 @@
39 border-bottom-left-radius: 20px 20px; 39 border-bottom-left-radius: 20px 20px;
40 border-bottom-right-radius: 20px 20px; 40 border-bottom-right-radius: 20px 20px;
41 } 41 }
42 .no-border {
43 border: 0;
44 box-shadow: inset 0 1px 1px rgba(0,0,0,.0);
45 -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.0);
46 }
42 </style> 47 </style>
43 </head> 48 </head>
44 <body> 49 <body>
@@ -102,13 +107,7 @@
102 <div class="col-md-12"> 107 <div class="col-md-12">
103 <h2>Derivation Path</h2> 108 <h2>Derivation Path</h2>
104 <ul class="derivation-type nav nav-tabs" role="tablist"> 109 <ul class="derivation-type nav nav-tabs" role="tablist">
105 <li id="hive-tab" class="active"> 110 <li id="bip44-tab" class="active">
106 <a href="#hive" role="tab" data-toggle="tab">Hive Wallet</a>
107 </li>
108 <li id="mycelium-tab">
109 <a href="#mycelium" role="tab" data-toggle="tab">Mycelium Wallet</a>
110 </li>
111 <li id="bip44-tab">
112 <a href="#bip44" role="tab" data-toggle="tab">BIP44</a> 111 <a href="#bip44" role="tab" data-toggle="tab">BIP44</a>
113 </li> 112 </li>
114 <li id="bip32-tab"> 113 <li id="bip32-tab">
@@ -116,37 +115,7 @@
116 </li> 115 </li>
117 </ul> 116 </ul>
118 <div class="derivation-type tab-content"> 117 <div class="derivation-type tab-content">
119 <div id="hive" class="tab-pane active"> 118 <div id="bip44" class="tab-pane active">
120 <form class="form-horizontal" role="form">
121 <br>
122 <div class="col-sm-2"></div>
123 <div class="col-sm-10">
124 <p>For more info see the <a href="https://www.hivewallet.com/" target="_blank">Hive Wallet homepage</a></p>
125 </div>
126 <div class="form-group">
127 <label for="hive-path" class="col-sm-2 control-label">BIP32 Derivation Path</label>
128 <div class="col-sm-10">
129 <input id="hive-path" type="text" class="path form-control" value="m/0'/0" readonly="readonly">
130 </div>
131 </div>
132 </form>
133 </div>
134 <div id="mycelium" class="tab-pane">
135 <form class="form-horizontal" role="form">
136 <br>
137 <div class="col-sm-2"></div>
138 <div class="col-sm-10">
139 <p>For more info see the <a href="http://www.mycelium.com/" target="_blank">Mycelium Wallet homepage</a></p>
140 </div>
141 <div class="form-group">
142 <label for="mycelium-path" class="col-sm-2 control-label">BIP32 Derivation Path</label>
143 <div class="col-sm-10">
144 <input id="mycelium-path" type="text" class="path form-control" value="m/44'/0'/0'/0" readonly="readonly">
145 </div>
146 </div>
147 </form>
148 </div>
149 <div id="bip44" class="tab-pane">
150 <form class="form-horizontal" role="form"> 119 <form class="form-horizontal" role="form">
151 <br> 120 <br>
152 <div class="col-sm-2"></div> 121 <div class="col-sm-2"></div>
@@ -206,6 +175,24 @@
206 <input id="bip32-path" type="text" class="path form-control" value="m/0"> 175 <input id="bip32-path" type="text" class="path form-control" value="m/0">
207 </div> 176 </div>
208 </div> 177 </div>
178 <div class="form-group">
179 <label class="col-sm-2 control-label">Hive Wallet</label>
180 <div class="col-sm-10">
181 <p class="form-control no-border">
182 Use path <code>m/0'/0</code>.
183 For more info see the <a href="https://www.hivewallet.com/" target="_blank">Hive Wallet homepage</a>
184 </p>
185 </div>
186 </div>
187 <div class="form-group">
188 <label for="mycelium-path" class="col-sm-2 control-label">Mycelium Wallet</label>
189 <div class="col-sm-10">
190 <p class="form-control no-border">
191 Use path <code>m/44'/0'/0'/0</code>.
192 For more info see the <a href="http://www.mycelium.com/" target="_blank">Mycelium Wallet homepage</a>
193 </p>
194 </div>
195 </div>
209 </form> 196 </form>
210 </div> 197 </div>
211 </div> 198 </div>
@@ -13087,6 +13074,34 @@ module.exports = Wallet
13087}).call(this,require("buffer").Buffer) 13074}).call(this,require("buffer").Buffer)
13088},{"./address":54,"./bufferutils":57,"./hdnode":63,"./networks":66,"./script":68,"./transaction_builder":71,"assert":5,"buffer":7,"randombytes":52,"typeforce":53}]},{},[64])(64) 13075},{"./address":54,"./bufferutils":57,"./hdnode":63,"./networks":66,"./script":68,"./transaction_builder":71,"assert":5,"buffer":7,"randombytes":52,"typeforce":53}]},{},[64])(64)
13089});</script> 13076});</script>
13077 <script>bitcoin.networks.shadow = {
13078 magicPrefix: '\x19ShadowCash Signed Message:\n',
13079 bip32: {
13080 public: 0xEE80286A,
13081 private: 0xEE8031E8
13082 },
13083 pubKeyHash: 0x3f,
13084 scriptHash: 0x7d,
13085 wif: 0xbf,
13086 dustThreshold: 0,
13087 feePerKb: 1000,
13088 estimateFee: function() { return "unused in this app" },
13089};
13090
13091bitcoin.networks.shadowtn = {
13092 magicPrefix: '\x19ShadowCash Signed Message:\n',
13093 bip32: {
13094 public: 0x76C0FDFB,
13095 private: 0x76C1077A
13096 },
13097 pubKeyHash: 0x7f,
13098 scriptHash: 0xc4,
13099 wif: 0xff,
13100 dustThreshold: 0,
13101 feePerKb: 1000,
13102 estimateFee: function() { return "unused in this app" },
13103};
13104</script>
13090 <script>// Select components from sjcl to suit the crypto operations bip39 requires. 13105 <script>// Select components from sjcl to suit the crypto operations bip39 requires.
13091 13106
13092//// base.js 13107//// base.js
@@ -14607,7 +14622,6 @@ var Mnemonic = function(language) {
14607 DOM.indexToggle = $(".index-toggle"); 14622 DOM.indexToggle = $(".index-toggle");
14608 DOM.addressToggle = $(".address-toggle"); 14623 DOM.addressToggle = $(".address-toggle");
14609 DOM.privateKeyToggle = $(".private-key-toggle"); 14624 DOM.privateKeyToggle = $(".private-key-toggle");
14610 DOM.myceliumPath = $("#mycelium-path");
14611 14625
14612 var derivationPath = $(".tab-pane.active .path").val(); 14626 var derivationPath = $(".tab-pane.active .path").val();
14613 14627
@@ -14968,7 +14982,6 @@ var Mnemonic = function(language) {
14968 onSelect: function() { 14982 onSelect: function() {
14969 network = bitcoin.networks.bitcoin; 14983 network = bitcoin.networks.bitcoin;
14970 DOM.bip44coin.val(0); 14984 DOM.bip44coin.val(0);
14971 DOM.myceliumPath.val("m/44'/0'/0'/0");
14972 }, 14985 },
14973 }, 14986 },
14974 { 14987 {
@@ -14976,7 +14989,6 @@ var Mnemonic = function(language) {
14976 onSelect: function() { 14989 onSelect: function() {
14977 network = bitcoin.networks.testnet; 14990 network = bitcoin.networks.testnet;
14978 DOM.bip44coin.val(1); 14991 DOM.bip44coin.val(1);
14979 DOM.myceliumPath.val("m/44'/1'/0'/0");
14980 }, 14992 },
14981 }, 14993 },
14982 { 14994 {
@@ -14993,6 +15005,20 @@ var Mnemonic = function(language) {
14993 DOM.bip44coin.val(3); 15005 DOM.bip44coin.val(3);
14994 }, 15006 },
14995 }, 15007 },
15008 {
15009 name: "ShadowCash",
15010 onSelect: function() {
15011 network = bitcoin.networks.shadow;
15012 DOM.bip44coin.val(35);
15013 },
15014 },
15015 {
15016 name: "ShadowCash Testnet",
15017 onSelect: function() {
15018 network = bitcoin.networks.shadowtn;
15019 DOM.bip44coin.val(1);
15020 },
15021 },
14996 ] 15022 ]
14997 15023
14998 init(); 15024 init();