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
9 years ago
Patrick Nagurny
a419a1b037
Merge pull request #1337 from braydonf/coinbase-fee
Return zero for coinbase transaction fee.
9 years ago
Braydon Fuller
0e24e4c421
Return zero for coinbase transaction fee.
9 years ago
Braydon Fuller
966c88f138
Bump package version to 0.13.3
9 years ago
Braydon Fuller
c03498fa27
Merge pull request #1331 from pnagurny/feature/difficulty
add getDifficulty method to BlockHeader
9 years ago
Patrick Nagurny
c86f1a9c28
add getDifficulty method
9 years ago
Patrick Nagurny
fe9503fad4
Merge pull request #1332 from braydonf/travis-legacy
Use latest travis containers.
9 years ago
Braydon Fuller
8236f9b7ac
Use latest travis containers.
9 years ago
Braydon Fuller
1522a33e29
Bump package version to 0.13.2
9 years ago
Braydon Fuller
721f54f965
Merge pull request #1324 from zmanian/SetLockTimeSeqNumber
Fix SequenceNumber for nLockTime transactions
9 years ago
Zaki Manian
c9980dc9b2
Ensure that sequence number is preserved on after serialize->deserialize
9 years ago
Zaki Manian
c7c1122123
Adjusted test cases as requested.
Test that the SequenceNumber is zero
Remove unncessary expect
9 years ago
Braydon Fuller
dc93b6c394
Bump package version to 0.13.1
9 years ago
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
9 years ago
Braydon Fuller
d7cd12b9d6
Merge pull request #1322 from ryanxcharles/fix-web-workers
fix web worker issues
9 years ago
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.
9 years ago
Braydon Fuller
aba78f92ba
Bump version to 0.13 in documentation.
9 years ago
Braydon Fuller
abefde6d83
Bump package version to 0.13.0
9 years ago
Patrick Nagurny
095cf32966
Merge pull request #1317 from braydonf/hdpubkey-hardened-error
Restore error when trying to derive a hardened path with HDPublicKey.
9 years ago
Patrick Nagurny
6d93e002d5
Merge pull request #1319 from braydonf/contrib
Include community website links in CONTRIBUTING.
9 years ago
Braydon Fuller
90a4f6460a
Include community website links in CONTRIBUTING.
9 years ago
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
9 years ago
Patrick Nagurny
9960c3b31f
Merge pull request #1312 from braydonf/standardizetojson
Changes behavior of `toJSON` to work as expected with `JSON.stringify`
9 years ago
Braydon Fuller
e64581e4eb
Update documentation with API changes for toJSON.
9 years ago
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
9 years ago
Patrick Nagurny
79db9cc372
Merge pull request #1311 from braydonf/tojsonhashes
Include hash in toObject/toJSON results.
9 years ago
Braydon Fuller
496edf9109
Check for consitency with block header argument hash and calculated hash.
9 years ago
Braydon Fuller
e7c7a9ad89
Check for consistency if object argument includes a hash.
9 years ago
Braydon Fuller
be8cb7d245
Update json block test data.
9 years ago
Braydon Fuller
74dee1fda7
Include hash in toObject/toJSON results.
9 years ago
Braydon Fuller
b7880ea568
Bump package version to 0.12.15
9 years ago
Patrick Nagurny
9c30e96d9c
Merge pull request #1302 from braydonf/formatting
Fixes for various formatting issues and typos.
9 years ago
Patrick Nagurny
7c6df33ab7
Merge pull request #1301 from braydonf/pubkey
Added support for signing publickey inputs.
9 years ago
Patrick Nagurny
a8b78a2f3f
Merge pull request #1295 from braydonf/script-asm
Add script methods `fromASM()` and `toASM()`
9 years ago
Patrick Nagurny
0dec8e7bd8
Merge pull request #1294 from braydonf/tx-unmodified-arguments
Objects passed as arguments are unmodified.
9 years ago
Patrick Nagurny
6ac7ad9da1
Merge pull request #1293 from braydonf/script-data-encoding
Added encoding type for buildDataOut
9 years ago
Braydon Fuller
8ff26bb260
Fixes for various formatting issues and typos.
9 years ago
Braydon Fuller
eb077eb3df
Added support for signing publickey inputs.
9 years ago
Braydon Fuller
f77da04464
Bump package version to 0.12.14
9 years ago
Patrick Nagurny
aeac467ed7
Merge pull request #1298 from braydonf/ispublickeyout
Speed up isPublicKeyOut
9 years ago
Braydon Fuller
9a7cdc440e
Bump package version to 0.12.13
9 years ago
Braydon Fuller
ad9dd2a41f
Check that the public key is valid for outputs.
9 years ago
Braydon Fuller
9f4b1a2c26
Speed up isPublicKeyOut
9 years ago
Patrick Nagurny
1a809cbeec
Merge pull request #1296 from braydonf/script-optimizations
Optimizations for `script.toAddress()`
9 years ago
Braydon Fuller
d9047eebf0
Detect if scriptSig (input) or scriptPubKey (output) is previously known.
9 years ago
Braydon Fuller
55afeb3eaf
Use Node.js crypto ripemd160 hash if available.
9 years ago
Braydon Fuller
6d86c99314
Seperate getAddressInfo for input or output only use.
9 years ago
Braydon Fuller
e8446d4537
Removed double network call
9 years ago
Braydon Fuller
ef26931645
Use late definition to resolve circular dependency.
9 years ago
Braydon Fuller
4e212e846d
Bump package version to 0.12.12
9 years ago