]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blob - src/js/casinocoin-util.js
Merge pull request #466 from RitoProject/ritocoin
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / src / js / casinocoin-util.js
1 function convertCasinoCoinAdrr(address) {
2 return libs.basex('cpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2brdeCg65jkm8oFqi1tuvAxyz').encode(
3 libs.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(address)
4 )
5 }
6
7 function convertCasinoCoinPriv(priv) {
8 return libs.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(priv).toString("hex").slice(2,66)
9 }