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