Last active
February 2, 2021 01:10
-
-
Save WietseWind/9a7c0eacea80567b19af82998ae58006 to your computer and use it in GitHub Desktop.
Convert address/secret from non XRPL to XRPL (if different alphabet)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const bx = require('base-x') | |
const cCSC = bx('cpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2brdeCg65jkm8oFqi1tuvAxyz') | |
const cXRP = bx('rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz') | |
const csc_decoded = cCSC.decode('sssssssssssssssssssssss') | |
console.log({csc_decoded}) | |
const xrp_encoded = cXRP.encode(csc_decoded) | |
console.log({xrp_encoded}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment