mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
16 lines
341 B
TypeScript
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;
|