bitcore/README.md

57 lines
1.9 KiB
Markdown
Raw Normal View History

2014-01-22 14:12:45 -08:00
Bitcore
2013-07-04 13:02:18 -07:00
=======
2013-07-04 12:55:19 -07:00
2014-01-22 14:12:45 -08:00
A pure, powerful core for your bitcoin project.
2014-01-22 14:12:45 -08:00
Bitcore is a complete, native interface to the Bitcoin network, and provides the core functionality needed to develop apps for bitcoin.
2014-01-22 14:12:45 -08:00
#Principles
2014-02-03 12:54:26 -08:00
Bitcoin is a powerful new peer-to-peer platform for the next generation of financial technology. The decentralized nature of the Bitcoin network allows for highly resilient bitcoin infrastructure, and the developer community needs reliable, open-source tools to implement bitcoin apps and services.
2014-01-22 14:12:45 -08:00
**Bitcore unchains developers from fallible, centralized APIs, and provides the tools to interact with the real Bitcoin network.**
2014-01-22 14:12:45 -08:00
#Get Started
2014-01-22 14:12:45 -08:00
Bitcore runs on [node](http://nodejs.org/), and can be installed via [npm](https://npmjs.org/):
```
npm install bitcore
```
2014-02-03 12:54:26 -08:00
It is a collection of objects useful to bitcoin applications; class-like idioms are enabled via [Classtool](https://github.com/gasteve/classtool). In most cases, a developer will require the object's class directly:
2014-01-23 08:17:43 -08:00
```
var Address = require('bitcore/Address').class();
```
2014-01-23 07:26:27 -08:00
#Examples
Validating a Bitcoin address:
2014-01-22 14:12:45 -08:00
```
2014-01-23 08:17:43 -08:00
var Address = require('bitcore/Address').class();
2014-01-22 14:12:45 -08:00
var addr = new Address("1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa");
2014-01-23 08:28:07 -08:00
2014-01-22 14:12:45 -08:00
try {
addr.validate();
2014-01-23 08:28:07 -08:00
console.log("Address is valid.");
2014-01-22 14:12:45 -08:00
} catch(e) {
2014-01-23 08:28:07 -08:00
console.log(addr.data + " is not a valid address. " + e);
2014-01-22 14:12:45 -08:00
}
```
#Security
2014-01-23 08:17:43 -08:00
Please use at your own risk.
2014-01-22 14:12:45 -08:00
2014-01-23 08:17:43 -08:00
Bitcore is still under heavy development and not quite ready for "drop-in" production use. If you find a security issue, please email security@bitcore.io.
2014-01-22 14:12:45 -08:00
#Contributing
Bitcore needs some developer love. Please send pull requests for bug fixes, code optimization, and ideas for improvement.
To build bitcore for the browser:
```
2014-01-31 08:13:34 -08:00
npm install -g grunt-cli
grunt browserify
```
2014-02-03 12:33:45 -08:00
2014-02-03 12:35:51 -08:00
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/bitpay/bitcore/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
2014-02-03 12:33:45 -08:00