BlueWallet/blue_modules/base43.ts
2024-03-31 20:59:14 +01:00

16 lines
341 B
TypeScript

import base from 'base-x';
const Base43 = {
encode: function () {
throw new Error('not implemented');
},
decode: function (input: string): string {
const x = base('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ$*+-./:');
const uint8 = x.decode(input);
return Buffer.from(uint8).toString('hex');
},
};
export default Base43;