]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blame - src/js/ripple-util.js
[ADD] KMD - Komodo
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / src / js / ripple-util.js
CommitLineData
64a7d2aa 1function convertRippleAdrr(address) {
2 return window.basex('rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz').encode(
3 window.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(address)
4 )
5 }
6
7function convertRipplePriv(priv) {
bbe7f184 8 return window.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(priv).toString("hex").slice(2,66)
64a7d2aa 9}
10