aboutsummaryrefslogtreecommitdiff
path: root/src/js/ripple-util.js
blob: 8184a7635ae1f5e2d6c5be967eb921d6f4b2e1ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
function convertRippleAdrr(address) {
        return window.basex('rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz').encode(
           window.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(address)
        )
      }

function convertRipplePriv(priv)   {
        return window.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(priv).toString("hex").slice(2,66)
}