Browse Source

Merge pull request #1302 from braydonf/formatting

Fixes for various formatting issues and typos.
patch-2
Patrick Nagurny 10 years ago
parent
commit
9c30e96d9c
  1. 2
      README.md
  2. 2
      docs/index.md
  3. 2
      docs/transaction.md
  4. 4
      lib/block/block.js
  5. 2
      lib/block/blockheader.js
  6. 2
      lib/errors/spec.js
  7. 2
      lib/hdpublickey.js

2
README.md

@ -104,7 +104,7 @@ Run all the tests:
gulp test
```
You can also run just the NodeJS tests with `gulp test:node`, just the browser tests with `gulp test:browser`
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`.
## License

2
docs/index.md

@ -2,7 +2,7 @@
## Principles
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. Bitcore provides a reliable API for javascript apps that need to interface with Bitcoin.
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. Bitcore provides a reliable API for JavaScript apps that need to interface with Bitcoin.
To get started, just `npm install bitcore` or `bower install bitcore`.

2
docs/transaction.md

@ -143,7 +143,7 @@ To remove all outputs, you can use `clearOutputs()`, which preserves change outp
There are a series of methods used for serialization:
* `toObject`: Returns a plain javascript object with no methods and enough information to fully restore the state of this transaction. Using other serialization methods (except for `toJSON`) will cause a some information to be lost.
* `toObject`: Returns a plain JavaScript object with no methods and enough information to fully restore the state of this transaction. Using other serialization methods (except for `toJSON`) will cause a some information to be lost.
* `toJSON`: Returns a string with a JSON-encoded version of the output for `toObject`.
* `toString` or `uncheckedSerialize`: Returns an hexadecimal serialization of the transaction, in the [serialization format for bitcoin](https://bitcoin.org/en/developer-reference#raw-transaction-format).
* `serialize`: Does a series of checks before serializing the transaction

4
lib/block/block.js

@ -62,7 +62,7 @@ Block._fromJSON = function _fromJSON(data) {
};
/**
* @param {Object} - A plain javascript object
* @param {Object} - A plain JavaScript object
* @returns {Object} - An object representing block data
* @private
*/
@ -92,7 +92,7 @@ Block.fromJSON = function fromJSON(json) {
};
/**
* @param {Object} - A plain javascript object
* @param {Object} - A plain JavaScript object
* @returns {Block} - An instance of block
*/
Block.fromObject = function fromObject(obj) {

2
lib/block/blockheader.js

@ -93,7 +93,7 @@ BlockHeader.fromJSON = function fromJSON(json) {
};
/**
* @param {Object} - A plain javascript object
* @param {Object} - A plain JavaScript object
* @returns {BlockHeader} - An instance of block header
*/
BlockHeader.fromObject = function fromObject(obj) {

2
lib/errors/spec.js

@ -28,7 +28,7 @@ module.exports = [{
}
}, {
name: 'AbstractMethodInvoked',
message: 'Abstract Method Invokation: {0}'
message: 'Abstract Method Invocation: {0}'
}, {
name: 'InvalidArgumentType',
message: function() {

2
lib/hdpublickey.js

@ -391,7 +391,7 @@ HDPublicKey.prototype.inspect = function() {
};
/**
* Returns a plain javascript object with information to reconstruct a key.
* Returns a plain JavaScript object with information to reconstruct a key.
*
* Fields are: <ul>
* <li> network: 'livenet' or 'testnet'

Loading…
Cancel
Save