Daniel Cousens
35c3693849
integration: use an rng for the example over mocking
2015-03-26 10:49:24 +11:00
Daniel Cousens
9fddacd448
tests: fix standard format adherence
2015-03-26 10:49:24 +11:00
Wei Lu
6775e1a9af
crypto: fix test randomBytes stub
2015-03-26 10:49:24 +11:00
Daniel Cousens
2fc4cc31c9
tests: rename network->networks
2015-03-16 13:57:44 +11:00
Daniel Cousens
d9b083f66e
networks: remove failing tests, cannot be supported anyway
2015-03-16 13:57:44 +11:00
Daniel Cousens
e31b5de3b1
tests: test autodetect in networks, fixed networks in HDNode
2015-03-16 13:57:44 +11:00
Daniel Cousens
c6fc8672f1
tests: fix standard styling
2015-03-15 17:25:42 +11:00
Daniel Cousens
c0d9424e1c
tests: ignore txHexIncomplete, instead check scriptSig after each signature
2015-03-15 17:25:42 +11:00
Daniel Cousens
9dc58c4c4c
tests: refactor multisig test construction
2015-03-15 17:25:34 +11:00
Daniel Cousens
6ebb9b3079
tests: remove unnecessary script tests from TxBuilder
2015-03-15 17:25:05 +11:00
Daniel Cousens
15cc165b05
tests: clean up unused variables
2015-03-15 17:25:05 +11:00
Ruben de Vries
74d627854f
add tests for various PS2H multisig signing scenarios
...
redid P2SH multisig tests to use fixtures
2015-03-15 17:24:42 +11:00
Daniel Cousens
1dcad184ba
integration: change 2-of-3 to 2-of-4 and update README
2015-03-15 17:24:10 +11:00
Ruben de Vries
74886c52c3
change 2of2 integration test to 2of3
2015-03-15 17:23:43 +11:00
Daniel Cousens
a82ebe8dbd
tests: fix inconsistent key compression
2015-03-05 18:51:31 +11:00
Daniel Cousens
67b4747e1f
tests: add failing test for transaction builder multisig
2015-03-05 18:51:29 +11:00
Daniel Cousens
5c6a91d7d6
scripts: multisigInput only uses scriptPubKey for validation, OP_0 validation not necessary
2015-03-05 18:51:28 +11:00
Daniel Cousens
c18672e01a
tests: add example non-standard scripthash
2015-03-05 18:51:28 +11:00
Daniel Cousens
a2c9a487d1
tests: add failing scripts by cross-verifying ASM/Hex
2015-03-05 18:51:26 +11:00
Daniel Cousens
1c2d138980
scripts: fix isScriptHashInput classification
2015-03-05 18:51:26 +11:00
Daniel Cousens
1a338ac053
tests: add failing pushDataInt fixtures
2015-03-05 18:51:23 +11:00
Daniel Cousens
20c773ab67
tests: add bitcoin core block fixtures
...
Data from
https://github.com/bitcoin/bitcoin/blob/master/src/test/bloom_tests.cpp
2015-03-05 18:49:19 +11:00
Daniel Cousens
3a15f0c6ba
tests: add scriptHash(pubKeyHash) test fixture
2015-03-02 18:32:24 +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
9daf937e93
tests: add API consistency and tests for #366
2015-02-24 12:23:31 +11:00
Daniel Cousens
f87ac58df0
tests: add reverse order multisig 2-of-2
2015-02-23 11:37:33 +11:00
Daniel Cousens
376c6533f1
tests: bitcoin/core check WIF exports correctly
2015-02-23 10:26:01 +11:00
Daniel Cousens
1da8297f3c
Merge pull request #363 from bitcoinjs/coinbase
...
Coinbase Transaction parsing
2015-02-23 09:10:48 +11:00
Daniel Cousens
e0b1aa843e
Merge pull request #360 from bitcoinjs/scriptfix
...
isScriptHashInput logic fix
2015-02-19 19:02:35 +11:00
Daniel Cousens
445eb260c0
tests: add failing Coinbase transaction fixture
2015-02-19 12:51:24 +11:00
Daniel Cousens
db17e35013
tests: transaction.add* better tested by raw functions
2015-02-19 12:32:05 +11:00
Daniel Cousens
7a515a14ee
tests: use beforeEach for initialization
2015-02-19 08:59:10 +11:00
Daniel Cousens
c9826221fb
scripts: catch error in Script.fromBuffer
2015-02-16 02:39:57 +11:00
Daniel Cousens
4bcd169f6d
tests: actually run invalid tests
2015-02-15 21:21:01 +11:00
Daniel Cousens
d68eb496a9
tests: use fffff... unless txHash is actually useful
2015-02-15 21:12:24 +11:00
Daniel Cousens
3a371fccec
TxBuilder: remove initialized field from signature inputs
2015-02-13 13:18:28 +11:00
Daniel Cousens
d3af28e37e
tests: fix TxBuilder fixtures to be consistent w/ compression
2015-02-13 13:18:28 +11:00
Daniel Cousens
5f761113cc
tests: if description undefined, use exception
2015-02-13 13:18:28 +11:00
Daniel Cousens
1fde0a401d
tests: move inconsistent hashType/redeemScript test
2015-02-13 13:18:28 +11:00
Daniel Cousens
ebbe1278a0
tests: add non-standard input fixture
2015-02-13 13:18:28 +11:00
Daniel Cousens
f0c4a76325
tests: add scriptHash(pubKey) test fixture
2015-02-13 13:18:28 +11:00
Daniel Cousens
3f53b528a8
tests: reduce setup-code duplication
2015-02-13 13:18:28 +11:00
Daniel Cousens
95911c5dde
tests: consistent test data names
2015-02-13 13:18:28 +11:00
Daniel Cousens
23a37fb771
TxBuilder: fix out-of-order multisignature signing
2015-02-13 13:18:28 +11:00
Daniel Cousens
4c9fd6010e
TxBuilder: fix failing test for non-standard/multisig inputs
...
Instead of failing in `fromTransaction`, TxBuilder will now only fail in
`sign` if you attempt to sign a non-standard input.
Transactions with non-standard inputs can only be built with
buildIncomplete() (for now).
2015-02-13 13:18:26 +11:00
Daniel Cousens
b048627a59
tests: move TxBuilder.sign tests to fixtures
2015-02-13 13:18:00 +11:00
Daniel Cousens
396e4d4235
tests: add [failing] test for nulldata signing
2015-02-13 13:18:00 +11:00
Daniel Cousens
35fa86c1f9
tests: add [failing] raw multisig fixture for TxBuilder
2015-02-13 13:18:00 +11:00
Daniel Cousens
dfe74fa0d2
TxBuilder: sign now signs inputs in known publicKey order
2015-02-13 13:17:57 +11:00