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









                                                                                                                                
function convertJingtumAdrr(address) {
        return libs.basex('jpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65rkm8oFqi1tuvAxyz').encode(
           libs.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(address)
        )
      }

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