mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
15 lines
294 B
JavaScript
15 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;
|