diff options
author | iancoleman <coleman.ian@gmail.com> | 2015-08-21 10:36:39 +1000 |
---|---|---|
committer | iancoleman <coleman.ian@gmail.com> | 2015-08-21 10:36:39 +1000 |
commit | bffa8eda540af07f253259b155c5b23aa54d8d57 (patch) | |
tree | d6eb62a188dc0ad3871d020f22ee188476994274 | |
parent | 504b2c325d6523397656d38aac61bf0a85283754 (diff) | |
parent | 5c434a8a00f2e18b47ca45b0c6834955cf4f02a4 (diff) | |
download | BIP39-bffa8eda540af07f253259b155c5b23aa54d8d57.tar.gz BIP39-bffa8eda540af07f253259b155c5b23aa54d8d57.tar.zst BIP39-bffa8eda540af07f253259b155c5b23aa54d8d57.zip |
Merge pull request #15 from dooglus/clam
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 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 | |||
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 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(); |