Commit Graph

2958 Commits

Author SHA1 Message Date
Braydon Fuller 2939bc7689 Bump package version to 0.13.4 2015-10-07 11:42:16 -04:00
Esteban Ordano 19f3fe0de3 Using buffer-compare instead of copy&paste 2015-10-01 12:56:01 -07:00
Esteban Ordano 20cc98df57 Fix typo 2015-09-30 18:46:24 -07:00
Esteban Ordano 026f878e51 Add tests for bip69 from bitcoinjs 2015-09-30 11:54:05 -07:00
Esteban Ordano fb65145ba7 Privacy improvement by sorting inputs and outputs
See BIP69 for more details:
https://github.com/bitcoin/bips/blob/master/bip-0069.mediawiki
2015-09-29 21:55:14 -07:00
Patrick Nagurny a419a1b037 Merge pull request #1337 from braydonf/coinbase-fee
Return zero for coinbase transaction fee.
2015-09-29 10:59:52 -04:00
Braydon Fuller 0e24e4c421 Return zero for coinbase transaction fee. 2015-09-22 20:56:03 -04:00
adam f0640a42f7 fixing incorrect check of signature validity 2015-09-17 15:19:05 +01:00
Braydon Fuller 966c88f138 Bump package version to 0.13.3 2015-09-09 10:15:12 -04:00
Braydon Fuller c03498fa27 Merge pull request #1331 from pnagurny/feature/difficulty
add getDifficulty method to BlockHeader
2015-09-08 17:07:07 -04:00
Patrick Nagurny c86f1a9c28 add getDifficulty method 2015-09-08 14:26:42 -04:00
Patrick Nagurny fe9503fad4 Merge pull request #1332 from braydonf/travis-legacy
Use latest travis containers.
2015-09-08 14:25:59 -04:00
Braydon Fuller 8236f9b7ac Use latest travis containers. 2015-09-08 13:18:36 -04:00
Braydon Fuller 1522a33e29 Bump package version to 0.13.2 2015-09-02 10:32:32 -04:00
Braydon Fuller 721f54f965 Merge pull request #1324 from zmanian/SetLockTimeSeqNumber
Fix SequenceNumber for nLockTime transactions
2015-08-28 16:30:26 -04:00
Zaki Manian c9980dc9b2 Ensure that sequence number is preserved on after serialize->deserialize 2015-08-27 15:46:22 -07:00
Zaki Manian c7c1122123 Adjusted test cases as requested.
Test that the SequenceNumber is zero

Remove unncessary expect
2015-08-27 14:54:42 -07:00
Braydon Fuller dc93b6c394 Bump package version to 0.13.1 2015-08-26 10:25:43 -04:00
Zaki Manian aa8e548800 To be effective within the current Bitcoin network, the inputs to a transaction
with an nLocktime must be not the standard max value.

We set the sequence number of 0 if the value is max.

Currently sequence numbers other than MAX_INT32 have no meaning in the Bitcoin protocol
but this may change in future BIPS
2015-08-24 20:07:57 -07:00
Braydon Fuller d7cd12b9d6 Merge pull request #1322 from ryanxcharles/fix-web-workers
fix web worker issues
2015-08-24 16:47:00 -04:00
Ryan X. Charles c1087c2827 fix web worker issues
bitcore should be able to run inside a web worker. There were two minor issues
preventing bitcore from running inside a web worker. The first was that lodash
was outdated, and that version of lodash had a problem with web workers. The
second was that the wrong version of ripemd160 was being called, because
global.window does not exist inside a web worker (global.self does instead). A
better way to check if you are in a browser is with process.browser.
2015-08-20 19:07:21 -07:00
Braydon Fuller aba78f92ba Bump version to 0.13 in documentation. 2015-08-19 11:09:34 -04:00
Braydon Fuller abefde6d83 Bump package version to 0.13.0 2015-08-19 10:53:46 -04:00
Patrick Nagurny 095cf32966 Merge pull request #1317 from braydonf/hdpubkey-hardened-error
Restore error when trying to derive a hardened path with HDPublicKey.
2015-08-18 13:59:38 -04:00
Patrick Nagurny 6d93e002d5 Merge pull request #1319 from braydonf/contrib
Include community website links in CONTRIBUTING.
2015-08-18 13:57:35 -04:00
Braydon Fuller 90a4f6460a Include community website links in CONTRIBUTING. 2015-08-17 14:34:08 -04:00
Braydon Fuller 809ff1461e Restore error when trying to derive a hardened path with HDPublicKey.
- Restores InvalidIndexCantDeriveHardened error in spec
- Passes hardened argument in HDPublicKey (in case the feature is attempted to be used similarly to HDPrivateKey)
- Fixes undefined error with InvalidLength
- Fixes tests to check for the error type
- Various formatting cleanup improvements
2015-08-17 09:21:58 -04:00
Patrick Nagurny 9960c3b31f Merge pull request #1312 from braydonf/standardizetojson
Changes behavior of `toJSON` to work as expected with `JSON.stringify`
2015-08-14 13:29:42 -04:00
Braydon Fuller e64581e4eb Update documentation with API changes for toJSON. 2015-08-13 10:55:37 -04:00
Braydon Fuller a50fccef4d Changes behavior of `toJSON` to work as expected with `JSON.stringify`
- see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON%28%29_behavior
- Updates CONTRIBUTING with changes to Stardard Methods
- Aliases toJSON for toObject
- Removes all `fromJSON` methods, and many cases replaces with `fromObject`
- Constructors expect an object parsed via `JSON.parse` for JSON input
2015-08-13 10:46:08 -04:00
Patrick Nagurny 79db9cc372 Merge pull request #1311 from braydonf/tojsonhashes
Include hash in toObject/toJSON results.
2015-08-13 10:20:37 -04:00
Braydon Fuller 496edf9109 Check for consitency with block header argument hash and calculated hash. 2015-08-12 20:45:57 -04:00
Braydon Fuller e7c7a9ad89 Check for consistency if object argument includes a hash. 2015-08-12 20:26:25 -04:00
Braydon Fuller be8cb7d245 Update json block test data. 2015-08-11 12:53:00 -04:00
Braydon Fuller 74dee1fda7 Include hash in toObject/toJSON results. 2015-08-11 11:42:23 -04:00
Braydon Fuller b7880ea568 Bump package version to 0.12.15 2015-08-05 12:16:08 -04:00
Patrick Nagurny 9c30e96d9c Merge pull request #1302 from braydonf/formatting
Fixes for various formatting issues and typos.
2015-07-30 10:22:38 -04:00
Patrick Nagurny 7c6df33ab7 Merge pull request #1301 from braydonf/pubkey
Added support for signing publickey inputs.
2015-07-30 10:21:44 -04:00
Patrick Nagurny a8b78a2f3f Merge pull request #1295 from braydonf/script-asm
Add script methods `fromASM()` and `toASM()`
2015-07-30 10:17:41 -04:00
Patrick Nagurny 0dec8e7bd8 Merge pull request #1294 from braydonf/tx-unmodified-arguments
Objects passed as arguments are unmodified.
2015-07-30 10:16:00 -04:00
Patrick Nagurny 6ac7ad9da1 Merge pull request #1293 from braydonf/script-data-encoding
Added encoding type for buildDataOut
2015-07-30 10:14:31 -04:00
Braydon Fuller 8ff26bb260 Fixes for various formatting issues and typos. 2015-07-29 10:11:40 -04:00
Braydon Fuller eb077eb3df Added support for signing publickey inputs. 2015-07-27 15:16:58 -04:00
Braydon Fuller f77da04464 Bump package version to 0.12.14 2015-07-22 10:40:16 -04:00
Patrick Nagurny aeac467ed7 Merge pull request #1298 from braydonf/ispublickeyout
Speed up isPublicKeyOut
2015-07-22 08:13:38 -06:00
Braydon Fuller 9a7cdc440e Bump package version to 0.12.13 2015-07-15 10:28:02 -04:00
Braydon Fuller ad9dd2a41f Check that the public key is valid for outputs. 2015-07-14 09:58:05 -04:00
Braydon Fuller 9f4b1a2c26 Speed up isPublicKeyOut 2015-07-13 18:51:52 -04:00
Patrick Nagurny 1a809cbeec Merge pull request #1296 from braydonf/script-optimizations
Optimizations for `script.toAddress()`
2015-07-09 12:25:19 -04:00
Braydon Fuller d9047eebf0 Detect if scriptSig (input) or scriptPubKey (output) is previously known. 2015-07-09 11:30:20 -04:00