Browse Source

Update index for the documentation

patch-2
Esteban Ordano 10 years ago
parent
commit
6be0c047b7
  1. 2
      docs/helpers/PaymentProtocol.md
  2. 212
      docs/index.html
  3. 63
      docs/index.md
  4. 4
      docs/models/PublicKey.md
  5. 12
      docs/navigation.md
  6. 0
      docs/networking/Peer.md
  7. 4
      docs/networking/Pool.md
  8. 7
      lib/transaction/transaction.js

2
docs/PaymentProtocol.md → docs/helpers/PaymentProtocol.md

@ -1,3 +1,5 @@
# > `bitcore.PaymentProtocol`
# Payment Protocol
`PaymentProtocol` and associated functions and methods will serialize, deserialize, sign and verify payment protocol messages both in Node.js and web browsers. Both X.509 and [bitcoin identity protocol](https://en.bitcoin.it/wiki/Identity_protocol_v1) are supported. For detailed technical information, please view [BIP70](https://github.com/bitcoin/bips/blob/master/bip-0070.mediawiki).

212
docs/index.html

File diff suppressed because one or more lines are too long

63
docs/index.md

@ -1,39 +1,28 @@
# Bitcore v0.8
## Description
A pure, powerful core for your bitcoin project.
Bitcore is a complete, native interface to the bitcoin network, and provides the core functionality needed to develop apps for bitcoin.
## Main Features
* Cross platform
* All core bitcoin functionality
* Open-source
* Payment protocol support
* Private and public key management
## Get Started
Use it on `Node.js`:
```
npm install bitcore
```
Use it client side on the browser:
```
bower install bitcore
```
## Projects using Bitcore
* Copay
* Insight
* enBitcoins
* BitBox
* Multi-signature Paper Wallet
## Addresses and Key Management
* [Addresses](models/Address.md)
* [Using different networks](helpers/Networks.md)
* [Private Keys](models/PrivateKey.md) and [Public Keys](models/PublicKey.md)
* [Hierarchically-derived Private and Public Keys](models/Hierarchical.md)
## Payment handling
* [Using different Units](helpers/Unit.md)
* [Acknowledging and Requesting payments: Bitcoin URIs](helpers/URI.md)
* [Payment Protocol Support](helpers/PaymentProtocol.md)
* [The Transaction Class](models/Transaction.md)
## Bitcoin internals
* [Scripts](models/Script.md)
* [Block](models/Block.md)
## Networking
* [Interface to the Bitcoin P2P network](networking/Peer.md)
* [Managing a pool of peers](networking/Pool.md)
* [Connecting to a bitcoind instance through JSON-RPC](networking/JSONRPC.md)
## Extra
* [Crypto](helpers/Crypto.md)
* [Encoding](helpers/Encoding.md)
* [ECIES](helpers/ECIES.md)

4
docs/PublicKey.md → docs/models/PublicKey.md

@ -1,4 +1,6 @@
# Public Key
# > `bitcore.PublicKey`
## Description
Represents a bitcoin public key and is needed to be able to receive bitcoin, as is usually represented as a bitcoin [Address](Address.md), see the official [Bitcoin Wiki](https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses). A PublicKey in Bitcore is an immutable object and can be instantiated from a [Point](Crypto.md), string, [PrivateKey](PrivateKey.md), Buffer and a [BN](Crypto.md).

12
docs/navigation.md

@ -1,13 +1,14 @@
# Bitcore
[About](index.md)
[Index](index.md)
[Models]()
* [Address](models/Address.md)
* [Block](models/Block.md)
* [Hierarchical](models/Hierarchical.md)
* [Peer](models/Peer.md)
* [Private Key](models/Privatekey.md)
* [Public Key](models/Publickey.md)
* [Script](models/Script.md)
* [Transaction](models/Transaction.md)
@ -15,8 +16,15 @@
* [Crypto](helpers/Crypto.md)
* [Encoding](helpers/Encoding.md)
* [Payment Protocol](helpers/PaymentProtocol.md)
* [Networks](helpers/Networks.md)
* [Unit](helpers/Unit.md)
* [URI](helpers/URI.md)
[Networking]()
* [Peer](networking/Peer.md)
* [Pool](networking/Pool.md)
* [JSON-RPC](networking/JSONRPC.md)
[Examples](examples.md)

0
docs/models/Peer.md → docs/networking/Peer.md

4
docs/Pool.md → docs/networking/Pool.md

@ -1,4 +1,6 @@
# Pool
# > `bitcore.transport.Pool`
## Pool
A pool maintains a connection of [Peers](Peer.md). A pool will discover peers via DNS seeds, as well as when peer addresses are announced through the network.

7
lib/transaction/transaction.js

@ -520,7 +520,7 @@ Transaction.prototype.sign = function(privateKey, sigtype) {
return this;
};
Transaction.prototype._getPrivateKeySignatures = function(privKey, sigtype) {
Transaction.prototype.getSignatures = function(privKey, sigtype) {
privKey = new PrivateKey(privKey);
sigtype = sigtype || Signature.SIGHASH_ALL;
var transaction = this;
@ -549,10 +549,6 @@ Transaction.prototype.applySignature = function(signature) {
return this;
};
Transaction.prototype.getSignatures = function(privKey, sigtype) {
return this._getPrivateKeySignatures(privKey, sigtype);
};
Transaction.prototype.isFullySigned = function() {
return _.all(_.map(this.inputs, function(input) {
return input.isFullySigned();
@ -571,7 +567,6 @@ Transaction.prototype.verifySignature = function(sig, pubkey, nin, subscript) {
return Sighash.verify(this, sig, pubkey, nin, subscript);
};
/**
* Check that a transaction passes basic sanity tests. If not, return a string
* describing the error. This function contains the same logic as

Loading…
Cancel
Save