aboutsummaryrefslogtreecommitdiff
path: root/src/js/jingtum-util.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/jingtum-util.js')
-rw-r--r--src/js/jingtum-util.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/js/jingtum-util.js b/src/js/jingtum-util.js
new file mode 100644
index 0000000..56dbec6
--- /dev/null
+++ b/src/js/jingtum-util.js
@@ -0,0 +1,10 @@
1function convertJingtumAdrr(address) {
2 return libs.basex('jpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65rkm8oFqi1tuvAxyz').encode(
3 libs.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(address)
4 )
5 }
6
7function convertJingtumPriv(priv) {
8 return libs.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(priv).toString("hex").slice(2,66)
9}
10