]> 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:21:00 +0000 (17:21 +0200)
committeramougel <alix.mougel@gmail.com>
Mon, 5 Jun 2017 15:24:40 +0000 (17:24 +0200)
src/js/ripple-util.js

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