aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bip39-standalone.html16
-rw-r--r--src/js/bitcoinjs-extensions.js9
-rw-r--r--src/js/index.js7
3 files changed, 32 insertions, 0 deletions
diff --git a/bip39-standalone.html b/bip39-standalone.html
index 1767c4a..5ef69ea 100644
--- a/bip39-standalone.html
+++ b/bip39-standalone.html
@@ -13101,6 +13101,15 @@ bitcoin.networks.shadowtn = {
13101 feePerKb: 1000, 13101 feePerKb: 1000,
13102 estimateFee: function() { return "unused in this app" }, 13102 estimateFee: function() { return "unused in this app" },
13103}; 13103};
13104
13105bitcoin.networks.clam = {
13106 bip32: {
13107 public: 0xa8c26d64,
13108 private: 0xa8c17826
13109 },
13110 pubKeyHash: 0x89,
13111 wif: 0x85,
13112};
13104</script> 13113</script>
13105 <script>// Select components from sjcl to suit the crypto operations bip39 requires. 13114 <script>// Select components from sjcl to suit the crypto operations bip39 requires.
13106 13115
@@ -15041,6 +15050,13 @@ var Mnemonic = function(language) {
15041 DOM.bip44coin.val(26); 15050 DOM.bip44coin.val(26);
15042 }, 15051 },
15043 }, 15052 },
15053 {
15054 name: "CLAM",
15055 onSelect: function() {
15056 network = bitcoin.networks.clam;
15057 DOM.bip44coin.val(23);
15058 },
15059 },
15044 ] 15060 ]
15045 15061
15046 init(); 15062 init();
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index 856be95..a7ca2ec 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -25,3 +25,12 @@ bitcoin.networks.shadowtn = {
25 feePerKb: 1000, 25 feePerKb: 1000,
26 estimateFee: function() { return "unused in this app" }, 26 estimateFee: function() { return "unused in this app" },
27}; 27};
28
29bitcoin.networks.clam = {
30 bip32: {
31 public: 0xa8c26d64,
32 private: 0xa8c17826
33 },
34 pubKeyHash: 0x89,
35 wif: 0x85,
36};
diff --git a/src/js/index.js b/src/js/index.js
index 672906d..0a662a8 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -459,6 +459,13 @@
459 DOM.bip44coin.val(26); 459 DOM.bip44coin.val(26);
460 }, 460 },
461 }, 461 },
462 {
463 name: "CLAM",
464 onSelect: function() {
465 network = bitcoin.networks.clam;
466 DOM.bip44coin.val(23);
467 },
468 },
462 ] 469 ]
463 470
464 init(); 471 init();