2011-05-06 01:08:46 +02:00
|
|
|
|
# bitcoinjs-lib
|
|
|
|
|
|
2014-03-01 14:03:37 +01:00
|
|
|
|
Bitcoin library for node.js and browsers.
|
2011-05-06 01:08:46 +02:00
|
|
|
|
|
2014-03-03 05:07:30 +01:00
|
|
|
|
[![browser support](https://ci.testling.com/bitcoinjs/bitcoinjs-lib.png)](https://ci.testling.com/bitcoinjs/bitcoinjs-lib)
|
2013-04-21 11:04:23 +02:00
|
|
|
|
|
2014-03-01 14:03:37 +01:00
|
|
|
|
# Features
|
2011-05-06 01:08:46 +02:00
|
|
|
|
|
2014-03-01 14:03:37 +01:00
|
|
|
|
- [HD Wallets](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki)
|
|
|
|
|
- Transaction creation and signing
|
|
|
|
|
- ECDSA signing and verification
|
2011-05-06 01:08:46 +02:00
|
|
|
|
|
2014-03-01 14:03:37 +01:00
|
|
|
|
# Installation
|
2011-12-20 12:47:50 +01:00
|
|
|
|
|
2014-03-01 14:03:37 +01:00
|
|
|
|
`npm install bitcoinjs-lib`
|
2013-10-07 14:21:00 +02:00
|
|
|
|
|
2014-03-01 14:03:37 +01:00
|
|
|
|
## Building (for browsers)
|
|
|
|
|
|
|
|
|
|
`npm run-script compile`
|
|
|
|
|
|
|
|
|
|
# Usage
|
|
|
|
|
|
|
|
|
|
## node.js
|
|
|
|
|
|
|
|
|
|
`var Bitcoin = require('bitcoinjs-lib')`
|
|
|
|
|
|
|
|
|
|
## Browser
|
|
|
|
|
|
|
|
|
|
Use the global `Bitcoin` object.
|
2013-10-07 14:21:00 +02:00
|
|
|
|
|
2011-12-20 12:47:50 +01:00
|
|
|
|
# License
|
|
|
|
|
|
|
|
|
|
This library is free and open-source software released under the MIT
|
|
|
|
|
license.
|
2012-07-30 19:09:21 +02:00
|
|
|
|
|
|
|
|
|
# Copyright
|
|
|
|
|
|
2014-03-01 14:03:37 +01:00
|
|
|
|
BitcoinJS (c) 2011-2012 Stefan Thomas
|
|
|
|
|
Released under MIT license
|
2012-07-30 19:09:21 +02:00
|
|
|
|
http://bitcoinjs.org/
|
|
|
|
|
|
2014-03-01 14:03:37 +01:00
|
|
|
|
JSBN (c) 2003-2005 Tom Wu
|
|
|
|
|
Released under BSD license
|
2012-07-30 19:09:21 +02:00
|
|
|
|
http://www-cs-students.stanford.edu/~tjw/jsbn/
|
|
|
|
|
|
2014-03-01 14:03:37 +01:00
|
|
|
|
CryptoJS (c) 2009–2012 by Jeff Mott
|
|
|
|
|
Released under New BSD license
|
2012-07-30 19:09:21 +02:00
|
|
|
|
http://code.google.com/p/crypto-js/
|