mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 23:27:26 +01:00
14 lines
294 B
JavaScript
14 lines
294 B
JavaScript
const base = require('base-x');
|
|
|
|
const Base43 = {
|
|
encode: function () {
|
|
throw new Error('not implemented');
|
|
},
|
|
|
|
decode: function (input) {
|
|
const x = base('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ$*+-./:');
|
|
return x.decode(input).toString('hex');
|
|
},
|
|
};
|
|
|
|
module.exports = Base43;
|