mirror of
https://github.com/RoboSats/robosats.git
synced 2025-08-11 15:00:37 +00:00
9 lines
235 B
TypeScript
9 lines
235 B
TypeScript
import { Base16, Base91 } from 'base-ex';
|
|
|
|
export default function hexToBase91(hex: string): string {
|
|
const b16 = new Base16();
|
|
const b91 = new Base91();
|
|
const base91string = b91.encode(b16.decode(hex));
|
|
return base91string;
|
|
}
|