aboutsummaryrefslogblamecommitdiff
path: root/src/js/ripple-util.js
blob: ee8c4fdb73cbd5b6dadbfbd68c0671031291e940 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                     

                                                                                                   



                                    
                                                                                                                                

 
function convertRippleAdrr(address) {
        return libs.basex('rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz').encode(
           libs.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(address)
        )
      }

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