]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Compile standalone v0.1.0
authorIan Coleman <coleman.ian@gmail.com>
Wed, 14 Jun 2017 02:31:12 +0000 (12:31 +1000)
committerIan Coleman <coleman.ian@gmail.com>
Wed, 14 Jun 2017 02:31:12 +0000 (12:31 +1000)
bip39-standalone.html

index 09634b882b150ab98c796adc8b8901b0ab00186b..bcf020c798b22d23dc669659ee48a6405a35fe7f 100644 (file)
                 border-bottom: 1px dashed #000;
                 text-decoration: none;
             }
+            .version {
+                position: absolute;
+                top: 5px;
+                right: 5px;
+            }
         </style>
     </head>
     <body>
         <div class="container">
 
             <h1 class="text-center">Mnemonic Code Converter</h1>
+            <p class="version">v0.1.0</p>
             <hr>
             <div class="row">
                 <div class="col-md-12">
@@ -38726,7 +38732,7 @@ module.exports = function stripHexPrefix(str) {
       }
 
 function convertRipplePriv(priv)   {
-        return window.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(priv).toString("hex").slice(2)
+        return window.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(priv).toString("hex").slice(2,66)
 }   
       
 </script>
@@ -44310,6 +44316,8 @@ window.Entropy = new (function() {
                     var hexAddress = addressBuffer.toString('hex');
                     var checksumAddress = ethUtil.toChecksumAddress(hexAddress);
                     address = ethUtil.addHexPrefix(checksumAddress);
+                    privkey = ethUtil.addHexPrefix(privkey);
+                    pubkey = ethUtil.addHexPrefix(pubkey);
                 }
                 // Ripple values are different
                 if (networks[DOM.network.val()].name == "Ripple") {