Commit graph

85 commits

Author SHA1 Message Date
Daniel Cousens
1d6b978aff txb: do not classify blank input scripts as nonstandard 2017-07-14 14:16:52 +10:00
Daniel Cousens
f1ab151c31 tests: use safe-buffers throughout 2017-05-23 18:39:53 +10:00
Daniel Cousens
4d6928a68b tests: fix shadowed/unused variable warnings 2017-04-18 14:34:54 +10:00
Thomas Kerin
793939dc8c scriptHash return true for chunks.length=1 so long as its witness 2017-02-07 12:40:49 +11:00
Thomas Kerin
c2dfc03869 Add test vectors, and transaction_builder input stores signScript 2017-02-07 12:40:49 +11:00
Thomas Kerin
fff9319fa4 scriptHash.input.check - should tolerate 1 field in scriptSig if it's P2WSH or P2WPKH 2017-02-07 12:40:49 +11:00
Thomas Kerin
f8a94f3496 messy commits, clean later, just one test left 2017-02-07 12:40:49 +11:00
Thomas Kerin
a213435135 Commit work to date 2017-02-07 12:40:49 +11:00
Daniel Cousens
a793166eb8 wip 2017-02-07 12:40:49 +11:00
Daniel Cousens
14f9218389 package: bump bs58check, drop node 0.12 2016-12-22 08:21:18 +11:00
Daniel Cousens
33c72e49c4 package/*: use bitcoin-ops, pushdata-bitcoin packages 2016-12-18 10:38:43 +00:00
Daniel Cousens
913f21c34d tests: s/sign/dontSign, less mistakes 2016-12-15 11:45:59 +11:00
Daniel Cousens
62389ed247 TransactionBuilder: change to ABSURD_FEERATE, not ABSURD_FEE 2016-11-12 12:53:53 +01:00
Daniel Cousens
e835f1fe95 TransactionBuilder: add fee safety 2016-11-12 12:53:53 +01:00
Daniel Cousens
d9fa39a2cc scripts: extract all scripts to encode/decode/check style 2016-11-04 07:23:02 +11:00
Daniel Cousens
f07ccabe6e tests: flatten construct function 2016-10-13 00:55:19 +11:00
Daniel Cousens
17377381c4 TransactionBuilder: if prevOutScript is defined, but not signable, try 1 last time 2016-10-09 22:04:32 +11:00
Daniel Cousens
76c7c77311 tests: add failing test for #633 2016-09-28 01:23:37 +10:00
Daniel Cousens
418c315c78 tests: clarify multisig edge case for easier debugging 2016-09-28 00:46:14 +10:00
Daniel Cousens
d5eec5df70 tests: fix invalid test description 2016-09-28 00:20:49 +10:00
Daniel Cousens
6faeae397f TxBuilder: add setVersion 2016-06-22 14:57:33 +10:00
Daniel Cousens
8a37c1193a tests: add signature invalidation test for setLockTime 2016-01-28 00:55:45 +11:00
Daniel Cousens
6c0745adce TxBuilder: add setLockTime 2016-01-28 00:55:44 +11:00
Ruben de Vries
ccec864785 locktime and version were set too late in test scenario and not included when signing (the test scenario). 2016-01-26 17:13:07 +01:00
Kirill Fomichev
5de6818fcb Fix TransactionBuilder.addOutput 2015-11-24 08:18:16 +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
74e7d1edbc tests: add further tests for #404 2015-09-08 22:48:54 +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
18e9cdcc02 rename Address to address 2015-08-20 13:55:13 +10:00
Daniel Cousens
b62dd19f0d tests: clean up TxBuilder beforeEach constants 2015-08-20 13:32:00 +10:00
Daniel Cousens
e2abe2b3af merge Script/scripts 2015-08-18 14:44:30 +10:00
Daniel Cousens
151386c46d scripts: remove coercion, fromASM returns Buffer 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
e97389ed08 tests: scriptSigFiltered shouldn't be reassigned 2015-08-13 14:17:25 +10:00
Daniel Cousens
7a6936674e tests: add explicit test for inconsistent network exception 2015-08-07 17:01:31 +10:00
Daniel Cousens
a4eb58f103 TxBuilder: pass network through fromTransaction, fixes failing tests 2015-08-07 16:56:27 +10:00
Daniel Cousens
2971816588 TxBuilder: pass network through to fromTransaction 2015-08-07 16:41:24 +10:00
Daniel Cousens
9513b26e8c tests: supply TransactionBuilder with network from fixtures 2015-08-07 16:36:10 +10:00
Daniel Cousens
6443e4c2b6 ECPair: support strict network syntax 2015-08-07 16:36:10 +10:00
Daniel Cousens
b67a3dcf9e TxBuilder: specify missing network information for TxBuilder 2015-08-07 16:36:10 +10:00
Daniel Cousens
13f414c122 remove Address constructor 2015-07-24 12:18:00 +10:00
Daniel Cousens
abd27dd2be TxBuilder: disable Address object as valid input 2015-07-24 12:18:00 +10:00
Daniel Cousens
588b346f5d ECPair: cease using Address for address encoding 2015-07-24 12:18:00 +10:00
Daniel Cousens
e43d1764de tests: fix standard issues, s/"/'/ for non-escaping strings 2015-06-23 16:09:16 +10:00
Ruben de Vries
d2bee4d67f fix txb.sign having issues when an incomplete TX contains OP_0s, but not enough 2015-05-28 22:47:01 +02:00