Package Exports
- b2x-core-lib
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (b2x-core-lib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
b2x-core-lib Library
A pure and powerful JavaScript Segwit2X library.
Principles
Segwit2X is a powerful new peer-to-peer platform for the next generation of financial technology. The decentralized nature of the Segwit2X network allows for highly resilient Segwit2X infrastructure, and the developer community needs reliable, open-source tools to implement Segwit2X apps and services.
Get Started
npm install b2x-core-libbower install b2x-core-libDocumentation
The complete docs are hosted here: bitcore documentation. There's also a bitcore API reference available generated from the JSDocs of the project, where you'll find low-level details on each bitcore utility.
To get community assistance and ask for help with implementation questions, please use our community forums.
Examples
- Generate a random address
- Generate a address from a SHA256 hash
- Import an address via WIF
- Create a Transaction
- Sign a Segwit2X message
- Verify a Segwit2X message
- Create an OP RETURN transaction
- Create a 2-of-3 multisig P2SH address
- Spend from a 2-of-2 multisig P2SH address
Development & Tests
git clone https://github.com/SegwitB2X/b2x-core-lib
cd b2x-core-lib
npm installRun all the tests:
gulp test