Adding our own base58 library has the advantage that we have this sensitive code in-house without extra dependencies, that we can model it closely after our existing C++ implementation, and that we can modify it's behavior as needed.
Alternatives were considered:
- bs58: Just a special case of base-x, but we want somethins specialized without extra dependencies
- base58-js: No TS support and also really obscure implementation with reduce(.map)
- b58: Older version of bs58 is seems?
- base58: Only for integers it seems