Bitcore JavaScript Library for Reddcoin
A pure and powerful JavaScript library for Reddcoin.
Principles
Reddcoin is a peer-to-peer cryptocurrency built around social tipping and engagement, with a hybrid Proof-of-Work / Proof-of-Stake protocol. The decentralized nature of the Reddcoin network allows for highly resilient infrastructure, and the developer community needs reliable, open-source tools to implement Reddcoin apps and services. The Bitcore JavaScript Library (this Reddcoin fork) provides a reliable API for JavaScript apps that need to interface with Reddcoin.
Get Started
Clone the Reddcore monorepo and npm install:
git clone https://github.com/reddcoin-project/reddcore.git
npm install
cd into bitcore-lib-redd:
cd packages/bitcore-lib-redd
Building the Browser Bundle
To build a bitcore-lib-redd full bundle for the browser:
gulp browser
This will generate files named bitcore-lib-redd.js and bitcore-lib-redd.min.js.
Running Tests
npm test
You can also run just the Node.js tests with gulp test:node, just the browser tests with gulp test:browser or create a test coverage report (you can open coverage/lcov-report/index.html to visualize it) with gulp coverage.
Documentation
Addresses and Key Management
- Addresses
- Using Different Networks
- Private Keys and Public Keys
- Hierarchically-derived Private and Public Keys
Payment Handling
- Using Different Units
- Acknowledging and Requesting Payments: Reddcoin URIs
- The Transaction Class
- Unspent Transaction Output Class
Reddcoin Internals
Extra
Module Development
Modules
Some functionality is implemented as a module that can be installed separately:
- Peer to Peer Networking
- Reddcoin Core JSON-RPC
- Payment Channels
- Mnemonics
- Elliptical Curve Integrated Encryption Scheme
- Blockchain Explorers
- Signed Messages
Examples
- Generate a random address
- Generate a address from a SHA256 hash
- Import an address via WIF
- Create a Transaction
- Sign a Reddcoin message
- Verify a Reddcoin 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 the Bitcore JavaScript Library 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 open a private security advisory on the Reddcore repo.
Contributing
See Contributing.md on the main Reddcore repo for information about how to contribute.
License
Code released under the MIT license.
Original work copyright 2013-2025 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc. Reddcoin-specific changes copyright the Reddcoin Project contributors.