aboutsummaryrefslogblamecommitdiff
path: root/src/js/ripple-util.js
blob: f26a93a2f30e87f6e94b0b2577aafcac54f4c7c6 (plain) (tree)
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)
}