]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
deleting the remaining checksum from the private key
authoramougel <alix.mougel@gmail.com>
Mon, 5 Jun 2017 15:08:22 +0000 (17:08 +0200)
committeramougel <alix.mougel@gmail.com>
Mon, 5 Jun 2017 15:08:22 +0000 (17:08 +0200)
src/js/ripple-util.js

index 8b287fb6dfbad647f70cbc3001f424c09c4c7c1b..8cafdf72daa02c74c48f53a68750325e6f56ef48 100644 (file)
@@ -5,6 +5,6 @@ function convertRippleAdrr(address) {
       }
 
 function convertRipplePriv(priv)   {
-        return window.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(priv).toString("hex").slice(2)
+        return window.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(priv).toString("hex").slice(2,-4)
 }