diff options
author | Chris Moore <dooglus@gmail.com> | 2015-08-20 17:02:57 -0700 |
---|---|---|
committer | Chris Moore <dooglus@gmail.com> | 2015-08-20 17:02:57 -0700 |
commit | 5c434a8a00f2e18b47ca45b0c6834955cf4f02a4 (patch) | |
tree | c23ba2374ee8fbdb58d458b8d0c3f805fab68a09 | |
parent | ae30fed8037fa9d1e88e9431c4f301f1d1c53d29 (diff) | |
download | BIP39-5c434a8a00f2e18b47ca45b0c6834955cf4f02a4.tar.gz BIP39-5c434a8a00f2e18b47ca45b0c6834955cf4f02a4.tar.zst BIP39-5c434a8a00f2e18b47ca45b0c6834955cf4f02a4.zip |
Add CLAM.
-rw-r--r-- | bip39-standalone.html | 16 | ||||
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 9 | ||||
-rw-r--r-- | src/js/index.js | 7 |
3 files changed, 32 insertions, 0 deletions
diff --git a/bip39-standalone.html b/bip39-standalone.html index 9ab9552..a31ac2f 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 | |||
13105 | bitcoin.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 | |||
29 | bitcoin.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 2f7815d..a1cc31b 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(); |