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
ae63ae1131
tests: change error thrown for consistency with multisig
2016-09-28 00:20:49 +10:00
Daniel Cousens
d5eec5df70
tests: fix invalid test description
2016-09-28 00:20:49 +10:00
Daniel Cousens
fdb0ceeeb5
testing: rename cltvCheckSigInput to cltvCheckSigOutput
2016-09-27 23:45:25 +10:00
Daniel Cousens
fd0be5e5b8
tests: add missing parenthesis
2016-09-26 16:32:16 +10:00
Daniel Cousens
87f0d33a01
tests: script-number, not script
2016-09-15 00:19:14 +10:00
Daniel Cousens
4cfe950403
tests: adhere to camelCase
2016-09-14 22:37:21 +10:00
Daniel Cousens
17c6ff62a0
bufferutils: fix pushDataInt output
2016-08-31 16:01:36 +10:00
Daniel Cousens
1f62235c38
tests: add failing script decode
2016-08-31 16:01:36 +10:00
Daniel Cousens
d96b7036fb
tests: add BIP62 compliance tests
2016-08-31 16:01:36 +10:00
Daniel Cousens
e74b882e54
tests: improved readability for stealth address code
2016-08-17 13:11:01 +10:00
Daniel Cousens
da6aea4039
Merge pull request #615 from bitcoinjs/hltc
...
Add another CLTV test, isolate tests and cleanup
2016-08-17 11:07:40 +10:00
Daniel Cousens
f2ecbeb90f
tests/integration: separate crypto tests
2016-08-13 11:42:53 +10:00
Daniel Cousens
ddea2d2296
tests/integration: separate CLTV tests, add failing expiry (in future)
2016-08-13 11:42:16 +10:00
Daniel Cousens
fa54ba4f82
tests/transaction: add test for target Buffer
2016-08-10 11:44:09 +10:00
Daniel Cousens
fcb6ac9de6
tests: avoid superfluous ECPair creation
2016-07-22 13:34:23 +10:00
Daniel Cousens
817e10513c
tests: cleanup
2016-07-22 13:31:34 +10:00
Daniel Cousens
20a026aefe
scripts/tests: add witness* scripts
2016-07-12 12:32:29 +10:00
Daniel Cousens
39fd34a947
tests/types: avoid unnecessary join
2016-07-12 12:32:29 +10:00
Daniel Cousens
148e9fc7a8
Merge branch 'master' into codesep
2016-06-30 16:13:08 +10:00
Daniel Cousens
6faeae397f
TxBuilder: add setVersion
2016-06-22 14:57:33 +10:00
Daniel Cousens
4898cc7b67
tests: add tests for Transaction.hashForSignature
2016-06-22 14:45:49 +10:00
Daniel Cousens
07628ff034
tests: avoid deepEqual, hex is easier to debug
2016-06-22 13:58:53 +10:00
Daniel Cousens
d58e09a3a7
Block: add checkMerkleRoot
2016-05-05 16:51:33 +10:00
Daniel Cousens
ea2a7449ad
tests: add isCoinbase tests and flags to fixtures
2016-05-03 21:51:30 +10:00
Daniel Cousens
31923197ea
tests: add more complex integration transaction
2016-04-22 17:08:45 +10:00
Daniel Cousens
9db67bb3b1
Cleanup for #540 ( #551 )
...
* Txbuilder: early exit as soon as possible
* Txbuilder: prefer function declaration over variable
* TxBuilder: extract extractFromOutputScript
* TxBuilder: extract buildFromInputData
2016-04-08 12:23:32 +10:00
Daniel Cousens
aae5db6a59
ECPair/HDNode: missing version from list is Unknown, not Invalid
2016-02-25 13:48:29 +11:00
Daniel Cousens
bdb0dd4a17
HDNode/tests: add testing for invalid network version from networks list
2016-02-25 13:41:35 +11:00
Daniel Cousens
9e32c892ef
ECPair/tests: always use WIF for error throwing
2016-02-25 13:26:05 +11:00
Karel Bilek
6a74eb6993
Renaming Path to Bip32Path, invalid to fixtures
...
Only thing I haven't been able to do is to add "undefined" to fixtures. So I could not properly test
that node.derivePath() properly fails as it should. However, I added "null" there, and "null" and "undefined"
behave in similar way in JavaScript, so that should catch that.
2016-02-14 16:12:16 +01:00
Karel Bilek
d2b43f1dfe
Validating path
...
Again through typeforce
2016-02-13 23:25:30 +01:00
Karel Bilek
755eac5bbd
Doubling down on the path testing
...
Maybe overdoing it a bit :)
2016-02-12 12:37:30 +01:00
Karel Bilek
7a61526705
Testing path derivation
...
I am taking description field for the path.
2016-02-12 12:37:29 +01:00
Karel Bilek
4a72001335
Typechecking indexes
...
As a consequence, it will not allow accidentally double-hardened indexes.
It also won't allow strings or forgotten parameters.
2016-02-06 17:57:11 +01:00
Karel Bilek
bfd294c31e
Adding tests for isNeutered
2016-02-05 20:29:52 +01:00
Karel Bilek
3df2976e2c
Using private key for testing neuterization
...
To test removing private information, it's probably better to start with them :)
2016-02-05 20:26:23 +01:00
Daniel Cousens
1771067dfc
tests: fix standard error, reword descriptions
2016-02-05 14:16:56 +11:00
Ruben de Vries
7c7537fc57
use typeforce >= 1.6.2 which allows us to use typeforce.TfTypeError
with a custom error message.
2016-02-02 14:04:37 +01:00
Ruben de Vries
ce21c99b43
add failing test case for hash160/256 typeforce check
2016-02-02 13:31:54 +01:00
Ruben de Vries
0e1424c2cb
fixed issues with integration tests that use the faucet
2016-01-28 11:27:34 +01:00
Ruben de Vries
b601f50c70
fixed another test where TX was signed before locktime was set
2016-01-28 16:11:49 +11:00
JP Richardson
682ba7e549
Merge pull request #530 from bitcoinjs/lesscomp
...
address: fix compiled assumption for fromOutputScript
2016-01-27 22:50:05 -06:00
Daniel Cousens
67da1b30e3
address: fix compiled assumption for fromOutputScript
2016-01-28 15:35:57 +11:00
JP Richardson
4ee194e840
Merge pull request #507 from bitcoinjs/locktime
...
txbuilder: add setLockTime
2016-01-27 08:29:00 -06:00
Daniel Cousens
f3913516ca
Merge pull request #509 from bitcoinjs/pow
...
Add Block proof-of-work validation function
2016-01-28 01:00:17 +11:00
Daniel Cousens
9a62ab600f
tests: update integration tests to use setLockTime
2016-01-28 00:56:58 +11: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