Commit graph

2339 commits

Author SHA1 Message Date
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
b629a03c98 TxBuilder: rename prevOutMap to prevTxMap 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
Daniel Cousens
c29b233744 TxBuilder: build convenience functions don't need extra line breaks 2015-02-13 13:01:30 +11:00
Daniel Cousens
ba97b5ee34 TxBuilder: re-order to avoid mutation in case of failure 2015-02-13 13:01:01 +11:00
Daniel Cousens
ebe34db8df TxBuilder: avoid var redeclaration due to hoisting 2015-02-13 13:01:01 +11:00
Daniel Cousens
46db11e04a TxBuilder: extract isCoinbaseHash function 2015-02-13 13:01:01 +11:00
Daniel Cousens
906accdc0f TxBuilder: extract extractSignatures to free function 2015-02-13 13:00:57 +11:00
Daniel Cousens
75ca355d48 README: fix example URLs 2015-02-13 12:23:50 +11:00
Daniel Cousens
437b25e3be Merge pull request #358 from bitcoinjs/nouglify
package: remove uglify-js
2015-02-13 12:02:07 +11:00
Daniel Cousens
f8b9a5f2c3 Merge pull request #356 from bitcoinjs/htenforce
ECSignature: enforce valid hashType in toScriptSignature
2015-02-13 12:00:21 +11:00
Daniel Cousens
3ef2d6f6ec Merge pull request #315 from bitcoinjs/browserdocs
README: improve browser setup advice
2015-02-13 11:53:03 +11:00
Daniel Cousens
18fb33d433 Merge pull request #354 from bitcoinjs/wipscript
scripts: add allowIncomplete for multisig scripts
2015-02-13 11:48:56 +11:00
Daniel Cousens
c35d4b46c5 scripts: add allowIncomplete for multisig scripts 2015-02-12 19:50:00 +11:00
Daniel Cousens
fa96764dad package: remove uglify-js 2015-02-12 14:39:38 +11:00
Daniel Cousens
7ad3ac5353 Merge pull request #357 from bitcoinjs/nodocs
doc: no section headers
2015-02-12 14:38:07 +11:00
Daniel Cousens
642315eabc README: remove dist/ and clarify installation of other packages 2015-02-08 16:11:28 +11:00
Daniel Cousens
75ca385e42 README: no need to provide 'from the repo' require
Alternatively, they could also just do the standard `require('./')` if
they really wanted to do this.
2015-02-08 12:00:00 +11:00
Daniel Cousens
c11f50542e README: don't use a bitcoin namespace for other deps 2015-02-06 19:44:54 +11:00
Daniel Cousens
2047567703 README: add note about browserify version 2015-02-05 16:30:53 +11:00
Daniel Cousens
7ee8a85eb0 README: improve browserify instructions 2015-02-05 16:30:53 +11:00
Daniel Cousens
c9db90dc4d ECSignature: enforce valid hashType in toScriptSignature 2015-02-05 16:30:00 +11:00
Daniel Cousens
c13f1df9bf doc: no section headers 2015-02-05 16:29:37 +11:00
Wei Lu
abf870fb37 Merge pull request #346 from bitcoinjs/rmbro
package: remove crypto-browserify specific version
2015-02-02 17:54:45 +08:00
Daniel Cousens
51b23c658e package: remove crypto-browserify specific version 2015-02-02 19:04:16 +11:00
Daniel Cousens
b93903e00e Merge pull request #343 from bitcoinjs/testfix
integration: avoid excessive blockchain requests
2015-01-28 16:49:38 +11:00
Daniel Cousens
234ae84b86 integration: use 'bitcoinjs-lib' as OP_RETURN constant 2015-01-27 17:36:35 +11:00
Daniel Cousens
5e1cd6e995 integration: avoid looking up all address transactions each time 2015-01-27 17:36:35 +11:00
Daniel Cousens
64678e71e0 1.4.4 2015-01-27 13:42:17 +11:00
Wei Lu
93714a2c96 Merge pull request #342 from bitcoinjs/txbfix
TransactionBuilder to copy version/locktime in fromTransaction
2015-01-24 13:50:04 +08:00
Daniel Cousens
cbf8c6f932 tests: format JSON consistently 2015-01-23 16:37:10 +11:00
Daniel Cousens
a529b3fa0b TxBuilder: copy version/locktime in fromTransaction 2015-01-23 16:35:09 +11:00
Wei Lu
510212a3bd Merge pull request #340 from bitcoinjs/npmignore
adds .npmignore
2015-01-14 00:21:30 +08:00
Daniel Cousens
912e94479c adds .npmignore 2015-01-13 22:24:19 +11:00
Daniel Cousens
62ebacc6d5 1.4.3 2015-01-09 14:25:48 +11:00
Daniel Cousens
c264941d74 package: bigi 1.4.0 and crypto-browserify 3.9.0 2015-01-09 14:19:32 +11:00
Daniel Cousens
2223b9922b package: latest devDependencies 2015-01-09 14:18:06 +11:00
Wei Lu
6f373899f2 Merge pull request #337 from bitcoinjs/rfc6979fix
RF6979 compliance in regards to invalid ECDSA signatures
2015-01-09 09:17:48 +08:00
Daniel Cousens
59143a9c85 ecdsa: clarify why typeForce call is disabled until 2.0.0 2015-01-09 09:10:18 +11:00
Daniel Cousens
6938c8f8cc ecdsa: add default checkSig, to be removed in 2.0.0 2015-01-06 15:12:34 +11:00
Daniel Cousens
a492969ab2 tests: ecdsa test cleanup 2015-01-05 12:42:09 +11:00