Use micro-base for base{32, 58, 64} (#1209)

This commit is contained in:
Jaco
2021-11-19 11:27:47 +02:00
committed by GitHub
parent 222bb74a81
commit 4d77bf3c5b
15 changed files with 89 additions and 87 deletions
@@ -11,6 +11,12 @@ describe('base32Encode', (): void => {
).toEqual('irswgzloorzgc3djpjssazlwmvzhs5dinfxgoijb');
});
it('encodes to a base32 (ipfs-compat)', (): void => {
expect(
base32Encode('Decentralize everything!!', true)
).toEqual('birswgzloorzgc3djpjssazlwmvzhs5dinfxgoijb');
});
it('encodes a base58 to a base32', (): void => {
expect(
base32Encode(