HomePhabricator

[b58-ts] Add `b58-ts` library for base58 en-/decoding in TS

Description

[b58-ts] Add b58-ts library for base58 en-/decoding in TS

Summary:
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

Test Plan: npm test

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D17260

Details

Provenance
tobias_ruckAuthored on Sat, Nov 30, 01:56
tobias_ruckPushed on Sat, Nov 30, 10:36
Reviewer
Restricted Project
Differential Revision
D17260: [b58-ts] Add `b58-ts` library for base58 en-/decoding in TS
Parents
rABCcbaae049f5de: build: depends move macOS C(XX) FLAGS out of C & CXX
Branches
Unknown
Tags
Unknown