Daniel Cousens
4faa0ce679
_blockchain: a social experiment
2016-10-18 17:45:37 +11:00
Thomas Kerin
ddedb574a3
hdnode: add test cases exercising fromBuffer
2016-10-18 15:59:47 +11:00
Daniel Cousens
b65e47bbae
integration: break up into more re-usable unspents
2016-10-13 18:05:02 +11:00
Daniel Cousens
52bcfe72be
integration: return funds to our faucet
2016-10-13 18:05:02 +11:00
Daniel Cousens
e10a23fb3e
integration: avoid multiple faucet calls
2016-10-13 18:05:02 +11:00
Daniel Cousens
ebaf1496e1
tests/integration: use our own faucet keyPair
2016-10-13 18:05:02 +11:00
Thomas Kerin
7b1167708a
Transaction and block versions are signed integers
2016-10-13 09:29:03 +11:00
Daniel Cousens
3de754a9a2
TransactionBuilder: remove hashTypes inconsistency issues, resolves #642
2016-10-13 00:55:19 +11:00
Daniel Cousens
30ba4d620b
tests: add failing TransactionBuilder multiple hash types test
2016-10-13 00:55:19 +11:00
Daniel Cousens
f07ccabe6e
tests: flatten construct function
2016-10-13 00:55:19 +11:00
Daniel Cousens
5dcf38c0c5
HDNode: clearer error for bad path type
2016-10-12 13:15:54 +11:00
Daniel Cousens
3504ccfa3c
tests: test what was removed in #460
2016-10-10 13:01:51 +11:00
Daniel Cousens
17377381c4
TransactionBuilder: if prevOutScript is defined, but not signable, try 1 last time
2016-10-09 22:04:32 +11:00
Daniel Cousens
ecc6d45a7e
types: add Satoshi
2016-10-07 14:25:44 +11:00
Daniel Cousens
9b473ca57b
tests/integration: bump timeouts to 30s each
2016-10-07 11:37:44 +11:00
Daniel Cousens
29a865788d
use varuint-bitcoin
2016-10-07 10:55:34 +11:00
Daniel Cousens
de6671ecaa
rm integration tests
2016-10-06 21:41:10 +11:00
Daniel Cousens
7cdabef954
ecdsa: remove unused functions
2016-10-06 21:40:42 +11:00
Daniel Cousens
87cb018466
rm message module
2016-10-06 21:40:42 +11:00
Daniel Cousens
fd40232147
package: remove buffer-compare/buffer-equals
2016-10-06 21:31:10 +11:00
Daniel Cousens
ed093aec69
stealth: more explicit inner variable names
2016-10-06 14:07:08 +11:00
Daniel Cousens
b91cfcf196
package: update to typeforce 1.8.7
2016-10-06 12:34:11 +11:00
Daniel Cousens
4ae06003c4
Merge pull request #638 from bitcoinjs/minpush
...
script: always compile in a minimaldata compliant way
2016-10-05 19:31:52 +11:00
Daniel Cousens
c1570f8056
script: always compile in a minimaldata compliant way
2016-09-29 13:51:17 +10:00
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
Ruben de Vries
ccec864785
locktime and version were set too late in test scenario and not included when signing (the test scenario).
2016-01-26 17:13:07 +01:00
Daniel Cousens
35a2a6ba1e
tests/integration: increase multisig timeout
2016-01-06 13:14:36 +11:00
Daniel Cousens
a5f1994f86
tests/integration: remove redundant check
2016-01-06 13:10:57 +11:00
Daniel Cousens
f9f41addda
tests/integration: throw if no unspent is given
2016-01-06 13:01:43 +11:00
Daniel Cousens
755c344e16
tests/integration: re-broadcast input tx to avoid missing inputs error
2016-01-06 12:46:02 +11:00
Daniel Cousens
382409c575
tests: rm unused fixtures
2016-01-06 10:00:10 +11:00
Daniel Cousens
b6d986dd10
tests/integration: amend lockTime example to allow redemption, add redepemtion examples
2016-01-05 14:52:56 +11:00
Daniel Cousens
059f48b0c4
script_number: add impl/tests
2016-01-05 01:59:58 +11:00
Daniel Cousens
e4ba88e54f
block: rename verifyPow to checkProofOfWork
2016-01-04 12:49:33 +11:00
Daniel Cousens
bac700f52c
block: use buffer, faster, verified
2016-01-04 12:49:33 +11:00
Daniel Cousens
86b51b2d62
add Block.calculateTarget, use Buffer comparison rather than bigi
2016-01-04 12:49:33 +11:00
Daniel Cousens
26ccb43047
block: add Block.prototype.verifyPow
2016-01-04 12:49:33 +11:00
Daniel Cousens
15227d39bf
tests: add more test fixtures for blocks
2016-01-04 12:49:33 +11:00
Daniel Cousens
b077d7089d
tests/integration: change hodlDate to T+2 hours
2015-12-22 14:17:41 +11:00
Daniel Cousens
b5d1b4a0da
tests/integration: s/message/transaction
2015-12-22 14:13:45 +11:00
Daniel Cousens
cab3022719
add OP_CHECKLOCKTIMEVERIFY and integration tests
2015-12-22 14:13:45 +11:00
Daniel Cousens
07cf0bd057
tests/integration: use actual=expected consistently for asserts
2015-12-22 14:03:58 +11:00
Daniel Cousens
50f381fb5c
tests: add non-BIP62 compliant is*Output fixtures
2015-11-25 19:19:21 +11:00
Daniel Cousens
dca7a38362
tests: remove unnecessary branch, fix bscript.fromHex undefined
2015-11-25 19:19:21 +11:00
Kirill Fomichev
5de6818fcb
Fix TransactionBuilder.addOutput
2015-11-24 08:18:16 +03:00
Daniel Cousens
74fd5ae71d
tests: loop faucet until an unspent is given
2015-11-06 11:01:28 +11:00
Daniel Cousens
a686817f3c
tests: add m/n is data failing tests
2015-10-02 12:36:51 +10:00
Kirill Fomichev
eae8bcf676
fix isMultisigOutput
2015-10-01 23:12:38 +03:00
Daniel Cousens
0b4c67406f
use [].reverse over prototype
2015-09-27 23:49:29 +10:00
Daniel Cousens
5c1c4589c0
remove use of buffer-reverse
2015-09-27 23:30:06 +10:00
Daniel Cousens
731a31ecba
use buffer-reverse
2015-09-25 17:49:05 +10:00
Daniel Cousens
daafb9794e
ECPair/HDNode: adds getNetwork
2015-09-21 17:37:21 +10:00
Daniel Cousens
57d0ea84a2
HDNode: adds getPublicKeyBuffer
2015-09-21 17:37:09 +10:00
Daniel Cousens
923266672b
HDNode: add sign/verify
2015-09-21 16:42:22 +10:00
Daniel Cousens
888393fa8f
tests: add HDNode fromSeed throwing tests
2015-09-14 17:50:38 +10:00
Daniel Cousens
36fce53408
integration: check all unspents, not just this one
2015-09-14 17:28:17 +10:00
Daniel Cousens
05cfdf6a6a
docs: remove inline endian-ness notes, no endianness
2015-09-14 15:03:36 +10:00
Daniel Cousens
945276fbef
ECPair: move throwing constructor tests to fixtures
2015-09-12 15:17:45 +10:00
Daniel Cousens
322ade58e4
revert 4b825bf
2015-09-09 12:32:12 +10:00
Daniel Cousens
f11cce0710
tests: verify ECPair loops until within interval
2015-09-09 00:48:06 +10:00
Daniel Cousens
610f342707
tests: fix ECPair wrapper tests
2015-09-09 00:48:06 +10:00
Daniel Cousens
74e7d1edbc
tests: add further tests for #404
2015-09-08 22:48:54 +10:00
Daniel Cousens
0f9af83aa0
tests: add 2-of-3 multisig fixture
2015-09-08 21:45:43 +10:00
Daniel Cousens
18c8261cef
integration: fix HDNode search space
2015-09-08 16:29:41 +10:00
Daniel Cousens
262be17976
tests: simplify crypto fixtures
2015-09-08 16:03:49 +10:00
Daniel Cousens
b252924517
types: remove ECCurve
2015-09-05 15:42:25 +10:00
Daniel Cousens
4b825bf2a8
HDNode: stop exposing constants
2015-09-05 14:27:53 +10:00
Daniel Cousens
ccfaaf0b6f
ecdsa: remove curve parameter
2015-09-05 14:27:53 +10:00
Daniel Cousens
2d75b7e7ff
standard: remove padded Blocks
2015-09-05 14:10:32 +10:00
Daniel Cousens
ec1195bcee
Merge pull request #448 from bitcoinjs/bip66
...
Extract BIP66 module
2015-08-25 14:17:44 +10:00
Daniel Cousens
3be5dc88a1
integration: throw meaningful errors if no unspent is found
2015-08-25 14:11:49 +10:00
Daniel Cousens
845c1dc199
integration: fix stealth tests
2015-08-25 13:59:19 +10:00
Daniel Cousens
97ecb313c2
tests: add type tests
2015-08-25 13:52:24 +10:00
Daniel Cousens
e9762b14c7
integration: return sharedQ too
2015-08-25 13:45:35 +10:00
Daniel Cousens
86b2cf75ce
tests: add failing test for undefined hashType
2015-08-22 12:32:03 +10:00
Daniel Cousens
4be502a1bd
tests: add non-canonical pubkey fixtures
2015-08-22 12:32:01 +10:00
Daniel Cousens
e1cb5e6152
amend ECSignature tests to reflect BIP66 module
2015-08-21 21:22:33 +10:00
Daniel Cousens
efacd387be
ECPair: extract WIF to 3rd party module
2015-08-20 20:16:57 +10:00
Daniel Cousens
e5e24256fd
integration: mimic HDNode speedup
2015-08-20 18:25:54 +10:00
Daniel Cousens
8934de591c
use baddress/bcrypto/bscript for ambuigities
2015-08-20 13:55:13 +10:00
Daniel Cousens
6ec687deba
rename scripts to script
2015-08-20 13:55:13 +10:00
Daniel Cousens
18e9cdcc02
rename Address to address
2015-08-20 13:55:13 +10:00
Daniel Cousens
8f9d59fb18
ECPair: stop exposing ECDSA curve
2015-08-20 13:55:13 +10:00
Daniel Cousens
b95223adcd
tests: clean up core test imports
2015-08-20 13:32:00 +10:00
Daniel Cousens
b62dd19f0d
tests: clean up TxBuilder beforeEach constants
2015-08-20 13:32:00 +10:00
Daniel Cousens
bfb7289cf2
Merge pull request #438 from bitcoinjs/noscript
...
No Script
2015-08-19 15:03:40 +10:00
Daniel Cousens
00dad84880
integration: annotate the shared secret
2015-08-19 15:00:06 +10:00
Daniel Cousens
b56bbce472
integration: nonce is not shared
2015-08-18 16:13:12 +10:00
Daniel Cousens
2ccf00f4be
integration: clean up single-key stealth derivation
2015-08-18 15:40:53 +10:00
Daniel Cousens
706f5d7a9c
scripts: adds tests for *HashOutput
2015-08-18 14:44:30 +10:00
Daniel Cousens
1c92cfb373
integration: fix script usage in integration tests
2015-08-18 14:44:30 +10:00
Daniel Cousens
e2abe2b3af
merge Script/scripts
2015-08-18 14:44:30 +10:00
Daniel Cousens
151386c46d
scripts: remove coercion, fromASM returns Buffer
2015-08-18 14:44:30 +10:00
Daniel Cousens
2aff7bd899
tests: add more tests for Script compile/decompile
2015-08-18 14:44:29 +10:00
Daniel Cousens
e05f8a542d
remove Script object
2015-08-18 14:44:29 +10:00
Daniel Cousens
e743c58ed6
remove usage of instanced Scripts
2015-08-18 14:44:29 +10:00
Daniel Cousens
5d2abb523e
HDNode: use typeforce.tuple for arguments
2015-08-18 14:21:38 +10:00
Daniel Cousens
eb752f8316
tests: fix bitcoin core address tests
2015-08-18 10:20:51 +10:00
Daniel Cousens
fd7f0b0ef8
address: use input first errors, easier detection
2015-08-18 09:27:55 +10:00
Daniel Cousens
d85df4a6d6
TransactionBuilder: remove use of assert
2015-08-14 10:56:31 +10:00
Daniel Cousens
254b670427
add types
2015-08-14 10:56:30 +10:00
Daniel Cousens
6b484f481b
tests: remove unnecessary toString
2015-08-14 10:09:12 +10:00
Daniel Cousens
e97389ed08
tests: scriptSigFiltered shouldn't be reassigned
2015-08-13 14:17:25 +10:00
Daniel Cousens
aa3e5faad2
use cb-http-client with BlockTrail
2015-08-07 21:12:31 +10:00
Daniel Cousens
b6fa347214
integration: wait for duplicate R value recovery to finish
2015-08-07 20:52:07 +10:00
Daniel Cousens
006c798faf
integration: pass network through to TxBuilder
2015-08-07 20:40:16 +10:00
Daniel Cousens
7a6936674e
tests: add explicit test for inconsistent network exception
2015-08-07 17:01:31 +10:00
Daniel Cousens
a4eb58f103
TxBuilder: pass network through fromTransaction, fixes failing tests
2015-08-07 16:56:27 +10:00
Daniel Cousens
2971816588
TxBuilder: pass network through to fromTransaction
2015-08-07 16:41:24 +10:00
Wei Lu
cdce4b6189
test: pass network to integtest TransactionBuilder init
2015-08-07 16:37:09 +10:00
Daniel Cousens
649c4d79f9
rm network auto-detection
2015-08-07 16:36:10 +10:00
Daniel Cousens
f47decaa2f
HDNode: adopt new strict network list parameters
2015-08-07 16:36:10 +10:00
Daniel Cousens
307b7f036a
integration: pass network through to fromWIF
2015-08-07 16:36:10 +10:00
Daniel Cousens
9513b26e8c
tests: supply TransactionBuilder with network from fixtures
2015-08-07 16:36:10 +10:00
Daniel Cousens
6443e4c2b6
ECPair: support strict network syntax
2015-08-07 16:36:10 +10:00
Daniel Cousens
f5d99d8f8a
address: remove network detection
2015-08-07 16:36:10 +10:00
Daniel Cousens
b67a3dcf9e
TxBuilder: specify missing network information for TxBuilder
2015-08-07 16:36:10 +10:00
Daniel Cousens
bdf92f73b4
HDNode: use throw over assert
2015-07-28 17:42:10 +10:00
Daniel Cousens
430cdde766
utils: extract BLOCKTRAIL_API_KEY to be configurable
2015-07-28 10:49:23 +10:00
Daniel Cousens
64f7fa097c
Merge pull request #401 from bitcoinjs/noaddr
...
Remove instantiable Address
2015-07-28 10:46:14 +10:00
Daniel Cousens
c3a3f17ef0
use BlockTrail for testnet faucet
2015-07-24 13:54:43 +10:00
Daniel Cousens
1a4000cc98
address: throw Invalid address instead of hash/version for fromBase58Check
2015-07-24 12:18:00 +10:00
Daniel Cousens
20a17cc915
tests: invert core test to use toBase58Check instead
2015-07-24 12:18:00 +10:00
Daniel Cousens
13f414c122
remove Address constructor
2015-07-24 12:18:00 +10:00
Daniel Cousens
340e7fb917
tests: fix spelling error
2015-07-24 12:18:00 +10:00
Daniel Cousens
abd27dd2be
TxBuilder: disable Address object as valid input
2015-07-24 12:18:00 +10:00
Daniel Cousens
e9193df290
message: cease accepting an Address object
2015-07-24 12:18:00 +10:00
Daniel Cousens
588b346f5d
ECPair: cease using Address for address encoding
2015-07-24 12:18:00 +10:00
Daniel Cousens
a8f36ba515
Merge pull request #423 from bitcoinjs/bip66adherance
...
adhere more closely to BIP66
2015-07-20 09:20:40 +10:00
Daniel Cousens
1209d5960a
tests: better test descriptions
2015-07-08 12:36:27 +10:00
Daniel Cousens
df2bd19033
tests: simplify OP_* regex
2015-07-08 12:33:36 +10:00
Daniel Cousens
2392ce0a49
tests: verify bitcoin core ASM
2015-07-07 18:39:22 +10:00
Daniel Cousens
e42bd133fe
tests: clearer length bytes
2015-07-07 17:59:46 +10:00
Daniel Cousens
e8fd3887da
ECSignature: account for SIGHASH being ignored
2015-07-07 17:47:29 +10:00
Daniel Cousens
92f9342c69
adhere more closely to BIP66
2015-07-07 17:42:01 +10:00
Daniel Cousens
2ffa041afa
fixtures: ECDSA, fix r=s=-n to be accurate
2015-06-23 16:11:34 +10:00
Daniel Cousens
b5ff9db8fd
fixtures: ECDSA signatures should be DER encoded if possible
2015-06-23 16:11:34 +10:00
Daniel Cousens
5b95fd6ae3
fixtures: ECDSA, fixtures were mixed decimal/hex
2015-06-23 16:11:34 +10:00
Daniel Cousens
e43d1764de
tests: fix standard issues, s/"/'/ for non-escaping strings
2015-06-23 16:09:16 +10:00
Daniel Cousens
eb5508565a
Merge pull request #411 from blocktrail/sign-incorrect-op0s-master
...
fix txb.sign having issues when an incomplete TX contains OP_0s, but not enough
2015-06-01 12:01:36 +10:00
Wei Lu
4028bd50f2
comply with project coding style
2015-05-30 21:30:37 +08:00
Wei Lu
9a921ad181
poll address summary until balance non-zero or timeout
2015-05-30 21:19:57 +08:00
Wei Lu
70d423f596
update faucet url
2015-05-30 20:20:04 +08:00
Wei Lu
713f038583
poll address unspent until non-empty or timeout
2015-05-30 19:17:42 +08:00
Wei Lu
a2b4558a0b
replace helloblock with insight and blockr
2015-05-30 18:58:07 +08:00
Ruben de Vries
d2bee4d67f
fix txb.sign having issues when an incomplete TX contains OP_0s, but not enough
2015-05-28 22:47:01 +02:00
Daniel Cousens
f64df79555
*: adhere to standard 3
2015-05-21 00:46:36 +10:00
Daniel Cousens
ec9cea0cf1
tests: use strictEqual always
2015-05-07 11:29:20 +10:00
Daniel Cousens
ab66c983af
tests: check HDNode stores keyPair/chainCode
2015-05-07 11:24:53 +10:00
Daniel Cousens
7b0060d4a5
Merge pull request #400 from bitcoinjs/hashfor
...
Add non SIGHASH_ALL flag support
2015-05-03 19:24:46 +10:00
Daniel Cousens
4c030be343
ecdsa: remove unused verifyRaw
2015-04-28 16:51:20 +10:00
Daniel Cousens
7ce286654c
tests: enable all core SIGHASH_* tests
2015-04-28 11:04:05 +10:00
Daniel Cousens
ab83f8ffe4
tests: no need to specify 'correctly'
2015-04-28 11:03:31 +10:00
Daniel Cousens
6d224f6910
tests: core tests to use bufferutils.reverse
2015-04-28 11:03:26 +10:00
Daniel Cousens
225cee8522
Merge pull request #395 from jprichardson/master
...
Add Example on Generating a Random Address and WIF for Alternative Network
2015-04-27 12:16:09 +10:00
Daniel Cousens
11bba2a8e7
tests: remove bufferutils.equal tests
2015-04-27 12:06:01 +10:00
JP Richardson
b0e1d0d9c3
test/integration/basic: added litecoin example
2015-04-15 23:22:35 -05:00
Daniel Cousens
e106d02731
standard formatting fixes
2015-03-19 14:06:36 +11:00
Daniel Cousens
4c8b0f38ea
replace ECKey/ECPubKey with ECPair
2015-03-19 13:33:28 +11:00
Daniel Cousens
7559ee880d
add ECPair module
2015-03-19 13:33:28 +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
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
607b3b7983
networks: use byteLength over toBuffer
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
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
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
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
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
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
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
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
Daniel Cousens
8d3686d046
remove deprecated functionality
2015-03-02 17:27:16 +11:00
Daniel Cousens
08cc8f8621
crypto: remove Hmac* exposure in API
2015-03-02 15:33:39 +11:00
Daniel Cousens
bdb372da7d
rename Message to message
2015-03-02 14:09:19 +11:00
Daniel Cousens
5f8484645d
remove base58check
...
Use bs58check package solely from here on.
2015-03-02 14:02:47 +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
Daniel Cousens
ba97b5ee34
TxBuilder: re-order to avoid mutation in case of failure
2015-02-13 13:01:01 +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
c35d4b46c5
scripts: add allowIncomplete for multisig scripts
2015-02-12 19:50:00 +11:00
Daniel Cousens
c9db90dc4d
ECSignature: enforce valid hashType in toScriptSignature
2015-02-05 16:30:00 +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
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
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
Daniel Cousens
0e5c7b2a5a
tests: add bip32JPs RFC6979 test vectors and tests
2015-01-05 12:31:28 +11:00
Daniel Cousens
1e7f537f38
tests: adds ecdsa test enforcing valid signature callback
2015-01-05 11:15:11 +11:00
Daniel Cousens
e9778ae358
ecdsa: fixes edge case presented in #336
2015-01-04 12:46:37 +11:00
Daniel Cousens
0524ced984
scripts: enforce pubKeys as type ECPubKey
2014-12-23 15:30:16 +11:00
Daniel Cousens
e42c497a3c
package: use typeforce
2014-12-23 15:08:20 +11:00
Daniel Cousens
c716367f77
tests: add test for null sequence number
2014-12-16 15:15:39 +11:00
Bez Reyhan
85979a062e
remove fixture
2014-12-15 20:10:32 -08:00
Bez Reyhan
1c6d5a28a9
update fixtures and tests for merge
2014-12-15 19:21:34 -08:00
Daniel Cousens
fc690d418b
tests: rename txid to id in Transaction context
2014-12-13 09:48:31 +11:00
Daniel Cousens
ca4e64d071
tests: use ASM for fixtures, avoid JSON comparison
2014-12-13 09:41:52 +11:00
Daniel Cousens
fc7c7ce2a8
tests: remove extraneous anonymous function
2014-12-12 16:41:36 +11:00
Daniel Cousens
3a17e232ad
tests: remove unused variable
2014-12-12 16:38:33 +11:00
Daniel Cousens
50a32328ba
tests: remove unused variables
2014-12-12 16:31:47 +11:00
Daniel Cousens
3710105eef
tests/integration: add k-value derivation and private key recovery example
2014-12-09 12:23:43 +11:00
Daniel Cousens
837e0a3564
package: use cb-helloblock for integration tests
2014-12-09 12:23:43 +11:00
Daniel Cousens
de914ff8fa
tests/integration: move crypto-like tests to test/integration/crypto.js
2014-12-08 12:02:58 +11:00
Daniel Cousens
a66773b5f5
tests/integration: add HDNode private key recovery example
2014-12-08 12:02:58 +11:00
Daniel Cousens
b6017b0fae
HDNode: move isPrivate logic
2014-12-01 10:46:49 +11:00