Commit graph

1347 commits

Author SHA1 Message Date
Daniel Cousens
4c8b0f38ea replace ECKey/ECPubKey with ECPair 2015-03-19 13:33:28 +11:00
Daniel Cousens
31832293dd ECPair: lazily calculate Q 2015-03-19 13:33:28 +11:00
Daniel Cousens
7559ee880d add ECPair module 2015-03-19 13:33:28 +11:00
Daniel Cousens
c66b8883f7 Merge pull request #384 from bitcoinjs/buildreduce
crypto: use packages directly
2015-03-19 13:29:06 +11:00
Daniel Cousens
b55874718a integration: use an rng for the example over mocking 2015-03-19 11:15:51 +11:00
Daniel Cousens
689f444bdf tests: fix standard format adherence 2015-03-19 11:08:57 +11:00
Wei Lu
64e206ca7a crypto: fix test randomBytes stub 2015-03-18 23:30:04 +08:00
Daniel Cousens
b5c42303ff crypto: use packages directly 2015-03-17 12:31:53 +11:00
Daniel Cousens
03f3ccf06e Merge pull request #381 from bitcoinjs/networkexhaust
Remove exhaustive network functionality
2015-03-17 08:24:10 +11:00
Daniel Cousens
bd464d7cb5 networks: remove estimateFee entirely 2015-03-17 08:23:14 +11:00
Daniel Cousens
7d2e1cd3ba networks: remove exhaustive non-top 5 networks 2015-03-17 08:23:13 +11:00
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