Commit graph

202 commits

Author SHA1 Message Date
Daniel Cousens
33c72e49c4 package/*: use bitcoin-ops, pushdata-bitcoin packages 2016-12-18 10:38:43 +00:00
Daniel Cousens
c81f561f3e transaction: no i variable shadow 2016-12-14 09:05:58 +11:00
Thomas Kerin
bec7f690ce Rename __hasWitnesses -> hasWitnesses, and add tests 2016-12-08 09:11:13 +11:00
Daniel Cousens
72fbd00762 Transaction: Witness serialization support default only for some functions (fixed) 2016-11-14 15:05:30 +11:00
Daniel Cousens
29422b584d Transaction: fix setWitness to accept array of Buffers (fixed) 2016-11-14 15:05:30 +11:00
Thomas Kerin
a9f124423f Test that parsing a transaction with superfluous witness data leads to an error 2016-11-14 11:22:22 +11:00
Daniel Cousens
905f5ba1a5 transaction: hashForWitnessV0 s/amount/value 2016-11-14 11:22:22 +11:00
Daniel Cousens
768f7e314c Transaction: initialize to ZERO earlier 2016-11-14 11:22:22 +11:00
Thomas Kerin
3f731d090a Test that parsing a transaction with superfluous witness data leads to an error 2016-11-14 11:22:22 +11:00
Daniel Cousens
5c2fdb6043 Transaction: add Witness serialization and hashForWitnessV0 2016-11-14 11:22:22 +11:00
Thomas Kerin
7b1167708a Transaction and block versions are signed integers 2016-10-13 09:29:03 +11:00
Daniel Cousens
3bff2c63af transaction: simplify toBuffer offset management 2016-10-10 07:56:18 +11:00
Daniel Cousens
45b0e35264 transaction/types: use Satoshi over UInt53 2016-10-07 14:25:44 +11:00
Daniel Cousens
cc1af7d6a3 Transaction: return a slice, not the original Buffer 2016-08-10 11:44:09 +10:00
Daniel Cousens
6eae0241aa Transaction: allow parameterizable buffer 2016-08-10 11:44:09 +10:00
Daniel Cousens
697f2da1bc Transaction: re-work hashForSignature for readability 2016-06-22 14:46:05 +10:00
JP Richardson
ac8ae8f0ed opcodes: add json extension to fix Webpack JSON loader 2016-06-08 17:00:37 -05:00
Kirill Fomichev
8ddcf737f9 Update Transaction.isCoinbaseHash
- add argument type-checking
- replace Array.every on for-loop
2016-05-03 15:47:15 +03:00
Karel Bilek
f958dd1e86 Adding Transaction.prototype.isCoinbase 2016-05-03 21:46:35 +10:00
Kirill Fomichev
bc9a95e0ae Use buffer-reverse instead [].reverse.call 2016-03-10 07:57:30 +03:00
Daniel Cousens
0b4c67406f use [].reverse over prototype 2015-09-27 23:49:29 +10:00
Daniel Cousens
5c1c4589c0 remove use of buffer-reverse 2015-09-27 23:30:06 +10:00
Daniel Cousens
731a31ecba use buffer-reverse 2015-09-25 17:49:05 +10:00
Daniel Cousens
05cfdf6a6a docs: remove inline endian-ness notes, no endianness 2015-09-14 15:03:36 +10:00
Daniel Cousens
e8cb7c16da Transaction: coinBaseHash no longer relevant 2015-09-05 14:28:28 +10:00
Daniel Cousens
2d75b7e7ff standard: remove padded Blocks 2015-09-05 14:10:32 +10:00
Daniel Cousens
8934de591c use baddress/bcrypto/bscript for ambuigities 2015-08-20 13:55:13 +10:00
Daniel Cousens
6ec687deba rename scripts to script 2015-08-20 13:55:13 +10:00
Daniel Cousens
20fd3cee8c rename EMPTY to EMPTY_SCRIPT, extract VALUE_UINT64_MAX constant 2015-08-18 14:44:30 +10:00
Daniel Cousens
e2abe2b3af merge Script/scripts 2015-08-18 14:44:30 +10:00
Daniel Cousens
e05f8a542d remove Script object 2015-08-18 14:44:29 +10:00
Daniel Cousens
e743c58ed6 remove usage of instanced Scripts 2015-08-18 14:44:29 +10:00
Daniel Cousens
94e16fbe37 rename __disableExcess to __noStrict 2015-08-14 10:56:31 +10:00
Daniel Cousens
f2f0747187 Transaction: remove use of assert 2015-08-14 10:56:31 +10:00
Daniel Cousens
254b670427 add types 2015-08-14 10:56:30 +10:00
Daniel Cousens
9d1c610c08 Transaction: capitalize Buffer constants 2015-08-11 16:42:45 +10:00
Daniel Cousens
5d36135c91 transaction: s/txout/txOut/ 2015-04-28 11:08:23 +10:00
Daniel Cousens
833bf9fa86 transaction: add SIGHASH_* implementations 2015-04-28 11:04:06 +10:00
Daniel Cousens
9cda36fc76 Transaction: extract byteLength calculation to prototype method 2015-03-16 11:34:51 +11:00
Daniel Cousens
7f3b4c93ba TxBuilder: move param coercion from Transaction to TxBuilder 2015-03-02 17:51:14 +11:00
Daniel Cousens
8d3686d046 remove deprecated functionality 2015-03-02 17:27:16 +11:00
Daniel Cousens
0bba21546f various: more standard-format artifact fixes 2015-03-02 13:50:49 +11:00
Daniel Cousens
399803affa use standardjs formatting 2015-02-24 12:45:38 +11:00
Daniel Cousens
23bae5748e Transaction: fix coinbase script handling 2015-02-19 12:51:25 +11:00
Daniel Cousens
dc253bb77c Transaction: extract Script size calculations 2015-02-19 12:32:05 +11:00
Daniel Cousens
49345748bb Transaction: add isCoinbaseHash static method 2015-02-19 12:15:27 +11:00
Daniel Cousens
f13650544b Transaction: add internal flag to disable size assertion 2015-02-19 12:03:43 +11:00
Daniel Cousens
a788214921 TxBuilder: fix undefined scriptSig
Fixed and typeForce used to enforce this wont happen again in future.
2015-02-13 13:18:28 +11:00
Daniel Cousens
e42c497a3c package: use typeforce 2014-12-23 15:08:20 +11:00
Bez Reyhan
044c53bcad transaction.addInput checks if sequence is NULL 2014-12-15 18:58:08 -08:00