aboutsummaryrefslogtreecommitdiff
path: root/src/js/casinocoin-util.js
blob: ac40c5a300cbd004fe4fce5fe0c7a61a3e992d59 (plain) (blame)
1
2
3
4
5
6
7
8
9
function convertCasinoCoinAdrr(address) {
        return window.basex('cpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2brdeCg65jkm8oFqi1tuvAxyz').encode(
           window.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(address)
        )
      }

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