The latest release of
bitcoin-ts now supports encoding, decoding, and error correction for CashAddress, the address format used by Bitcoin Cash and SLP (Simple Ledger Protocol).
cashaddressed by Amaury Séchet). It can correct up to two mistakes in the CashAddress format, enabling more helpful user experiences in situations where users must speak or type addresses.
As with the rest of
bitcoin-ts, the code is fully portable — only universal APIs are used, so the same code runs on both Node.js and browsers.
The library is also written so projects can use tree-shaking to import only the methods they use. Importing all CashAddress functionality should add less than
1KB to a project’s bundle.