@runonflux/bitcore-lib
v0.16.2
Published
A pure and powerful JavaScript Flux library.
Readme
Bitcore Flux Library
A pure and powerful JavaScript Flux library.
Principles
Flux is a powerful new peer-to-peer platform for the next generation of financial technology. The decentralized nature of the Flux network allows for highly resilient Flux infrastructure, and the developer community needs reliable, open-source tools to implement Flux apps and services.
Get Started
Requires Node.js 24 or newer.
npm install @runonflux/bitcore-libconst bitcore = require('@runonflux/bitcore-lib');To work on the library itself:
git clone https://github.com/runonflux/bitcore-lib.git
cd bitcore-lib
npm install
npm testDocumentation
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 Flux message
- Verify a Flux message
- Create an OP RETURN transaction
- Create a 2-of-3 multisig P2SH address
- Spend from a 2-of-2 multisig P2SH address
Security
We're using Bitcore in production, as are many others, but please use common sense when doing anything related to finances! We take no responsibility for your implementation decisions.
If you find a security issue, please email [email protected].
Development & Tests
git clone https://github.com/runonflux/bitcore-lib
cd bitcore-lib
npm installRequires Node.js 24 or later. Run all the tests:
npm testnpm test runs every file under test/ in its own mocha process and checks
each outcome against test/inherited-failures.json, the inherited upstream
tests that fail at runonflux/bitcore-lib 8f5453f. test/differential.js
checks this library against bitcore-lib 8f5453f, installed as the
devDependency bitcore-lib-8f5453f, on Flux mainnet blocks and transactions
(test/data/flux-mainnet/corpus.json, written by
scripts/fetch-mainnet-corpus.js), keys, addresses, HD keys and signatures.
A single file runs with npx mocha test/<file>.js.
License
Code released under the MIT license.
Copyright 2013-2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.
