HomePhabricator

[ecash-lib] Publish 1.4.0, expose HD wallet and mnemonic functionality

Description

[ecash-lib] Publish 1.4.0, expose HD wallet and mnemonic functionality

Summary:

  • Expose HdNode, entropyToMnemonic, mnemonicToEntropy and mnemonicToSeed, this allows users to build a complete eCash wallet without needing external dependencies (other than ecash-lib and chronik-client).
  • Add the /src folder to the published NPM. This is because some bundlers like webpack expect them, and it allows users to browse the source on npm. This not-quite doubles the package size (compressed: 150.4 kB -> 245.0 kB, uncompressed: 564.2 kB -> 934.9 kB), but since we still stay below 1 MB even uncompressed this doesn't seem to be a big issue. @bytesofman verified that these files are tree-shakable, so the CashTab bundle size doesn't increase.
  • Bump the version number to 1.4.0

Test Plan: Ideally, publish an RC on NPM and import, alternatively build locally and import. Or just trust the CI.

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

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

Details

Event Timeline