Commit graph

1336 commits

Author SHA1 Message Date
Daniel Cousens
01036ee294 Merge pull request #380 from bitcoinjs/magic
Magic constants
2015-03-17 08:01:49 +11:00
Daniel Cousens
e939aa0576 package: use cb-helloblock 0.4.13 2015-03-16 16:27:25 +11:00
Daniel Cousens
5fadfcc435 package: remove unnecessary dev dependency 2015-03-16 16:27:11 +11:00
Daniel Cousens
889ed9b92a package: update typeforce to 1.0.0, mocha/standard to latest 2015-03-16 16:00:27 +11:00
Daniel Cousens
0e0a12da27 txbuilder: fix #374 null inputs 2015-03-16 13:53:28 +11:00
Daniel Cousens
063b036988 networks: remove magicPrefix double up 2015-03-16 11:34:51 +11:00
Daniel Cousens
fc8dd65c0e networks: name e variable in loop 2015-03-16 11:34:51 +11:00
Daniel Cousens
1079bf95c1 message: use messagePrefix naming over magicPrefix 2015-03-16 11:34:51 +11:00
Daniel Cousens
607b3b7983 networks: use byteLength over toBuffer 2015-03-16 11:34:51 +11:00
Daniel Cousens
9cda36fc76 Transaction: extract byteLength calculation to prototype method 2015-03-16 11:34:51 +11:00
Daniel Cousens
c3a39444e3 networks: extract estimateFee as a bind 2015-03-16 11:34:51 +11:00
Daniel Cousens
6a551d9e1e networks: s/magicPrefix/messagePrefix, adds magic constant 2015-03-16 11:34:51 +11:00
Daniel Cousens
886d38ebee tests: rename network->networks 2015-03-16 11:34:36 +11:00
Daniel Cousens
281ecdc06e networks: remove failing tests, cannot be supported anyway 2015-03-16 11:33:56 +11:00
Daniel Cousens
57856a0a25 tests: test autodetect in networks, fixed networks in HDNode 2015-03-16 11:28:41 +11:00
Daniel Cousens
9e631ceebf Merge pull request #379 from bitcoinjs/373opti
TransactionBuilder.sign signature re-ordering and verification optimization
2015-03-15 17:16:55 +11:00
Daniel Cousens
6c02e1692a txbuilder: re-add verification optimizations 2015-03-13 15:42:13 +11:00
Daniel Cousens
4660b84c2d txbuilder: refactor for clarity 2015-03-13 15:28:26 +11:00
Daniel Cousens
6800518ab6 Merge pull request #378 from bitcoinjs/373clean
#373 clean up
2015-03-12 09:00:54 +11:00
Daniel Cousens
a29761cc8c tests: fix standard styling 2015-03-11 12:42:56 +11:00
Daniel Cousens
69eb58c783 tests: ignore txHexIncomplete, instead check scriptSig after each signature 2015-03-11 12:37:11 +11:00
Daniel Cousens
e80f4803d9 tests: refactor multisig test construction 2015-03-11 12:12:50 +11:00
Daniel Cousens
7cd60aaba3 tests: remove unnecessary script tests from TxBuilder 2015-03-11 11:33:25 +11:00
Daniel Cousens
4d08ae5a8a tests: clean up unused variables 2015-03-10 20:17:11 +11:00
Daniel Cousens
3e44c4131b README: add blocktrail 2015-03-10 20:04:52 +11:00
Daniel Cousens
e06f7f68f8 Merge pull request #373 from blocktrail/fix-msig-sigs-order
TransactionBuilder P2SH Multisig order of signatures
2015-03-10 20:01:23 +11:00
Daniel Cousens
e8a8dfe2fe README: update crypto example line numbers 2015-03-06 09:27:01 +11:00
Ruben de Vries
745eace950 add tests for various PS2H multisig signing scenarios
redid P2SH multisig tests to use fixtures
2015-03-05 10:21:40 +01:00
Ruben de Vries
000625c191 prefill signatures with OP_0s and place signatures in correct order in txb.sign when it's not already prefilled with OP_0s 2015-03-05 10:21:40 +01:00
Daniel Cousens
29b93b8a5c integration: change 2-of-3 to 2-of-4 and update README 2015-03-05 19:16:22 +11:00
Daniel Cousens
87a3803082 Merge pull request #370 from blocktrail/2of3-failing-test
Change 2-of-2 integration test to 2-of-3
2015-03-05 19:09:49 +11:00
Daniel Cousens
7a469f6620 Merge pull request #372 from bitcoinjs/op0fix
TransactionBuilder multisig OP_0 fix
2015-03-05 18:46:16 +11:00
Daniel Cousens
6a86f22e45 Merge pull request #375 from bitcoinjs/pushdatafix
Scripts, fix invalid push data int parsing
2015-03-05 18:45:23 +11:00
Daniel Cousens
837424ed16 tests: add bitcoin core block fixtures
Data from
https://github.com/bitcoin/bitcoin/blob/master/src/test/bloom_tests.cpp
2015-03-05 01:16:58 +11:00
Daniel Cousens
4333217bdd tests: add example non-standard scripthash 2015-03-04 21:30:31 +11:00
Daniel Cousens
b6622b4cff script: return malformed script if returned pushDataOut out of range 2015-03-04 21:28:48 +11:00
Daniel Cousens
d904e4424c tests: add failing scripts by cross-verifying ASM/Hex 2015-03-04 21:26:42 +11:00
Daniel Cousens
d00ec9af29 scripts: fix isScriptHashInput classification 2015-03-04 21:00:07 +11:00
Daniel Cousens
ec66ca9b1a bufferutils/script: allow for invalid pushDatInts, fixes #367 2015-03-04 20:48:28 +11:00
Daniel Cousens
2f100e0eae tests: add failing pushDataInt fixtures 2015-03-04 20:47:52 +11:00
Ruben de Vries
c52420a003 change 2of2 integration test to 2of3 2015-03-03 11:22:42 +01:00
Daniel Cousens
cdcbb2ccb4 tests: fix inconsistent key compression 2015-03-03 10:43:37 +11:00
Daniel Cousens
bcf8d0177d TxBuilder: fix OP_0 in buildComplete 2015-03-03 10:04:24 +11:00
Daniel Cousens
c79fecffa3 tests: add failing test for transaction builder multisig 2015-03-03 09:54:55 +11:00
Daniel Cousens
af3491822e scripts: multisigInput only uses scriptPubKey for validation, OP_0 validation not necessary 2015-03-03 09:53:57 +11:00
Wei Lu
b13271477c Merge pull request #317 from bitcoinjs/2.0.0
pre-2.0.0, deprecations
2015-03-03 01:25:51 +08:00
Daniel Cousens
3a15f0c6ba tests: add scriptHash(pubKeyHash) test fixture 2015-03-02 18:32:24 +11:00
Daniel Cousens
4668cb1f95 TxBuilder: simplify addInput 2015-03-02 18:10:05 +11:00
Daniel Cousens
7f3b4c93ba TxBuilder: move param coercion from Transaction to TxBuilder 2015-03-02 17:51:14 +11:00
Daniel Cousens
5beee20038 bufferutils: add equal 2015-03-02 17:32:20 +11:00