Manuel Araoz
100e370295
fix regressions after changes
10 years ago
William Wolf
c558c4e34a
hasTransaction(tx) + tests
10 years ago
William Wolf
611dae5b55
validMerkleTree() method plus more test blocks
10 years ago
William Wolf
29c18e22f0
Add lib/block/merkleblock.js
10 years ago
Braydon Fuller
6aa0d14bb9
Removed magicnumber and size as properties of a block.
10 years ago
Esteban Ordano
b416655222
block serialization: Add option skip magic numbers
10 years ago
Braydon Fuller
b6ba5dbc5a
Added test data for blocks from bitcoin core.
10 years ago
Ryan X. Charles
97b6e8b989
add deterministicK test vectors
These vectors were produced by @bip32JP and tested against a similar
implementation of the "badrs" approach to RFC 6979 in python-ecdsa as described
in this related bitcoinjs-lib PR:
https://github.com/bitcoinjs/bitcoinjs-lib/pull/337
10 years ago
Esteban Ordano
9a73338c91
Add tests for changes to Transaction interface
10 years ago
Esteban Ordano
3f1ddd68f2
Update transaction test data
10 years ago
Manuel Araoz
3d7b0c7474
standardize test files
10 years ago
Braydon Fuller
d86e718743
Block: Updated documentation, and changed to use consistent naming.
10 years ago
Manuel Araoz
9e3d13a8ff
add sig_*canonical.json bitcoind fixtures
10 years ago
Braydon Fuller
b0555108a8
Add tx_valid and tx_invalid bitcoind tests
10 years ago
Braydon Fuller
920f25b58e
Tests: Added bitcoind base58 key data and tests
10 years ago
Manuel Araoz
7ee9601d8a
starting with script_interpreter
10 years ago
Yemel Jardi
3e775bd0f9
Move messages data to a separate file
10 years ago
Braydon Fuller
5d1da9802c
Block: Added validation of proof of work, merkle tree and other interface changes. Closes #601
10 years ago
Eric Martindale
9e95e7bf34
Remove ephemeral content.
10 years ago
Matias Alejo Garcia
f7e3c037e7
add test for uxtos containing dust
10 years ago
Christopher Jeffrey
2e422c001e
paypro: fix payment protocol for DER certs.
11 years ago
Christopher Jeffrey
13553a42d1
x509: try different certs/keys/pems.
11 years ago
Christopher Jeffrey
c209e3172d
paypro: x509 nonsense.
11 years ago
Christopher Jeffrey
1d0f01c133
paypro: first pass at implementing payment protocol for x509.
11 years ago
Ryan X. Charles
572035fdd5
add some test vectors for secp256k1
11 years ago
Matias Alejo Garcia
56d81bc0df
remove unused code from Script. Update it to do not use scriptSig placeholders
11 years ago
Manuel Araoz
34ed503830
fixed 23 Transaction tests!!! :D
11 years ago
Manuel Araoz
cc8010f17f
adding new data file from bitcoin core
11 years ago
Matias Alejo Garcia
921bc2ff17
add sorting of pubkeys for multisig addr generation
11 years ago
Manuel Araoz
2d71aa40e9
adding new data file from bitcoin core
11 years ago
Matias Alejo Garcia
f6f7a01efc
add p2sh support and test
11 years ago
Matias Alejo Garcia
2af6ab7650
TX_MULTISIG support
11 years ago
Matias Alejo Garcia
5b95b0f0fd
Block.js tests WIP
11 years ago
MattFaus
7257526de3
Reverting modifications of testdata
11 years ago
MattFaus
a2a923fa99
Get Transaction test cases running
I removed the skip over the tx_valid.json file and made some tweaks to get most of the test cases passing. There are still two test cases that fail, as pointed out by the TODO comment I added above them. Oddly, running the test suite reports 3 failing test cases, but if I delete the two marked with the TODO there are 0 reported failures. So, there may be some kind of interaction with these test cases and the others. More investigation is needed.
I updated the two test cases that were testing transaction `23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63` with the input script I found on blockchain.info https://blockchain.info/tx/23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63 . A quick search found one other person who was using this same script (23b397edcc
cc4483eb271ecad09a94dd63.json) and the test passes now, so I'm not sure why the old script was being used.
All of the other changes are simply re-formatting decimal numbers as hex (i.e. `1` => `0x01`).
Furthermore, I added some code in the test fixture itself to verify each of the inputs.
Test Plan:
`mocha -R spec test/test.Transaction.js`
11 years ago
Matias Alejo Garcia
041f06aae1
dynamic fee
11 years ago
Matias Alejo Garcia
a2041d5790
add TX signing. Support to p2pubkeyhash
11 years ago
Matias Alejo Garcia
b6e6ad28eb
fix variable names
11 years ago
Matias Alejo Garcia
706162e2ba
#create for Transaction and tests
11 years ago
Matias Alejo Garcia
ada92746b7
selectUnspent function and tests
11 years ago
Manuel Araoz
e83590f528
fix Script parsing for some cases, setup ScriptInterpreter tests
11 years ago
Manuel Araoz
40ee699453
working on Transaction verification and Script tests
11 years ago
Manuel Araoz
a2bd68f456
add bitcoin/bitcoin test data
11 years ago
Manuel Araoz
6a24e7fbe0
load test data from files
11 years ago