Closed mitar closed 3 years ago
Nope.
The protocol is not fixed-width.
Do you know of any base58 protocol which is?
No. Use traditional base64 for fixed length.
This library does not support that though.
buffer.toString('base64') is fixed length.
I would like to use BASE58 characters though for encoding.
Then use base58 and account for variable length.
So I would like to encode 128 bits consistently to 22 character in base58, but this is now always true. For example:
They are both 128 bits. I would like that this is always encoded to 22 characters. Is this possible somehow?