0.1.20 • Published 3 years ago

bitcoinsource v0.1.20

Weekly downloads
101
License
MIT
Repository
github
Last release
3 years ago

BitcoinSource: A Bitcoin Cash implementation written in modern Javascript

About BitcoinSource

BitcoinSource is a community driven effort to produce a readable, reliable and modern Javascript implementation of Bitcoin. Most current Javascript Bitcoin implementations do not adhere to modern coding standards and are very hard to read as a consequence. We want to create a Bitcoin implementation that every JavaScript programmer can read and understand.

In step one, we want to get the entire codebase to comply with the Airbnb JavaScript Style Guide. Step two will be to port the code base to ES6. Step three will be to statically typecheck the entire codebase with Facebook’s Flow. We suspect we will uncover bugs in the process.

We are looking for contributors. You do not have to be a Bitcoin protocol expert to contribute. All you need to be is a good Javascript programmer. If you want to help, check out CONTRIBUTING.md or email clemens@bitcoincomputer.io.

Installation

Using NPM

$ npm install --save bitcoin-source

Manually

You can also download a pre-compiled and minified version here: dist

Examples

You can find many useful, up-to-date examples to get you started right away by following the provided examples:

Security

BitcoinSource is a fork of bitcore-lib, which is used in production at Bitpay Inc. and many other projects. If you find a security issue, please email clemens@bitcointoken.com.

Contributing

This is an open-source project, and any form of contribution is welcome. Feel free to create an issue in case you would like to share ideas for improvement, or would like to report a bug. Also, please send pull requests for bug fixes or code optimization. For more information on how to contribute, please refer to our CONTRIBUTING file.

Development

To get started with development, you should first clone the repository and install any dependencies:

$ git clone https://github.com/bitcoin-computer/bitcoin-source
$ cd BitcoinSource
$ npm install

Next, you can check everything is installed correctly by running the full test-suite and verifying that all tests are completed successfully.

$ npm test

Progress

FileAirbnb Style GuideES6Flow
address.jsdonedonenot done
block/block.jsdonedonenot done
block/blockheader.jsdonedonenot done
block/index.jsdonedonenot done
block/merkleblock.jsdonedonenot done
crypto/bn.jsdonenot donenot done
crypto/ecdsa.jsdonenot donenot done
crypto/hash.jsdonenot donenot done
crypto/point.jsdonenot donenot done
crypto/random.jsdonenot donenot done
crypto/signature.jsdonenot donenot done
encoding/base58.jsdonenot donenot done
encoding/base58check.jsdonenot donenot done
encoding/bufferreader.jsdonenot donenot done
encoding/bufferwriter.jsdonenot donenot done
encoding/varint.jsdonenot donenot done
errors/index.jsdonenot donenot done
errors/spec.jsdonenot donenot done
hdprivatekey.jsdonenot donenot done
hdpublickey.jsdonenot donenot done
message.jsdonedonenot done
mnemonic/index.jsdonenot donenot done
mnemonic/mnemonic.jsdonenot donenot done
mnemonic/pbkdf2.jsdonenot donenot done
mnemonic/words/chinese.jsdonenot donenot done
mnemonic/words/english.jsdonenot donenot done
mnemonic/words/french.jsdonenot donenot done
mnemonic/words/index.jsdonenot donenot done
mnemonic/words/italian.jsdonenot donenot done
mnemonic/words/japanese.jsdonenot donenot done
mnemonic/words/spanish.jsdonenot donenot done
networks.jsdonenot donenot done
opcode.jsdonenot donenot done
privatekey.jsdonenot donenot done
publickey.jsdonenot donenot done
script/index.jsdonenot donenot done
script/interpreter.jsdonenot donenot done
script/script.jsdonenot donenot done
transaction/index.jsdonedonenot done
transaction/input/index.jsdonenot donenot done
transaction/input/input.jsdonenot donenot done
transaction/input/multisig.jsdonenot donenot done
transaction/input/multisigscripthash.jsdonenot donenot done
transaction/input/publickey.jsdonenot donenot done
transaction/input/publickeyhash.jsdonenot donenot done
transaction/input/scripthash.jsdonenot donenot done
transaction/output.jsdonedonenot done
transaction/sighash.jsdonedonenot done
transaction/signature.jsdonedonenot done
transaction/transaction.jsdonedonenot done
transaction/unspentoutput.jsdonedonenot done
unit.jsdonenot donenot done
uri.jsdonenot donenot done
util/buffer.jsdonenot donenot done
util/js.jsdonenot donenot done
util/preconditions.jsdonenot donenot done

License

Code released under the MIT license.