]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Merge pull request #15 from dooglus/clam
authoriancoleman <coleman.ian@gmail.com>
Fri, 21 Aug 2015 00:36:39 +0000 (10:36 +1000)
committeriancoleman <coleman.ian@gmail.com>
Fri, 21 Aug 2015 00:36:39 +0000 (10:36 +1000)
Add CLAM.

bip39-standalone.html
src/js/bitcoinjs-extensions.js
src/js/index.js

index 1767c4a575845254afd36d23b411faa7cd3e88ff..5ef69eacea5452a9bf741784ac912c3c60fcfd9d 100644 (file)
@@ -13101,6 +13101,15 @@ bitcoin.networks.shadowtn = {
   feePerKb: 1000,
   estimateFee: function() { return "unused in this app" },
 };
+
+bitcoin.networks.clam = {
+  bip32: {
+    public: 0xa8c26d64,
+    private: 0xa8c17826
+  },
+  pubKeyHash: 0x89,
+  wif: 0x85,
+};
 </script>
         <script>// Select components from sjcl to suit the crypto operations bip39 requires.
 
@@ -15041,6 +15050,13 @@ var Mnemonic = function(language) {
                 DOM.bip44coin.val(26);
             },
         },
+        {
+            name: "CLAM",
+            onSelect: function() {
+                network = bitcoin.networks.clam;
+                DOM.bip44coin.val(23);
+            },
+        },
     ]
 
     init();
index 856be95f063a68dd954333862c53a7ef69787832..a7ca2ecd612be268d3aad9fe9c910b0d9dad3653 100644 (file)
@@ -25,3 +25,12 @@ bitcoin.networks.shadowtn = {
   feePerKb: 1000,
   estimateFee: function() { return "unused in this app" },
 };
+
+bitcoin.networks.clam = {
+  bip32: {
+    public: 0xa8c26d64,
+    private: 0xa8c17826
+  },
+  pubKeyHash: 0x89,
+  wif: 0x85,
+};
index 672906d2e7ac14d9600f27785bf952d041eeccb9..0a662a81e8e69d05e961fb04e72a32ef452101b8 100644 (file)
                 DOM.bip44coin.val(26);
             },
         },
+        {
+            name: "CLAM",
+            onSelect: function() {
+                network = bitcoin.networks.clam;
+                DOM.bip44coin.val(23);
+            },
+        },
     ]
 
     init();