Braydon Fuller
|
2bc76b1570
|
Unit test coverage for script interpreter verifyWitnessProgram
|
9 years ago |
Braydon Fuller
|
d40752ca94
|
Add more tests from bitcoin core
From commit bitcoin core 0.13.0 commit: a402396dce64c42ea73535b7dde4a9164d430438
In the file: src/test/transaction_tests.cpp
- pay-to-compressed publickey (v0)
- p2sh witness pay-to-compressed pubkey (v0)
- witness 2-of-2 multisig
- p2sh witness 2-of-2 multisig
|
9 years ago |
Braydon Fuller
|
cf5a760919
|
Add test for "Witness pay-to-compressed-pubkey (v0)"
Using this code in the test to get test data:
```
string TxHexStr(CTransaction tx)
{
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << tx;
std::string ssTxStr = ssTx.str();
return HexStr(ssTxStr);
}
std::cout << "scriptPubkey1: " + HexStr(scriptPubkey1) + "\n";
std::cout << "output1: " + TxHexStr(output1) + "\n";
```
From commit bitcoin core 0.13.0 commit: a402396dce64c42ea73535b7dde4a9164d430438
In the file: src/test/transaction_tests.cpp#L493
|
9 years ago |
Braydon Fuller
|
c6079e9556
|
script: interpreter witness program fixes
|
9 years ago |
Thomas Kerin
|
b48bb42953
|
Add support for verifying segwit scripts
|
9 years ago |
Esteban Ordano
|
5bd5a5b937
|
CLTV: More tests and improved docs
|
10 years ago |
Esteban Ordano
|
5882f9116e
|
CLTV: Minor style fix
|
10 years ago |
Esteban Ordano
|
4280b993e0
|
Add CLTV (BIP65) support
|
10 years ago |
eordano
|
575993967c
|
Standardize optional parameters to Closure syntax
|
10 years ago |
Esteban Ordano
|
73a973359b
|
Fix invocations to binary operations called on numbers
|
10 years ago |
Esteban Ordano
|
6b05f20397
|
Add the new operator when BN was used without it
|
10 years ago |
Manuel Araoz
|
6c518f1f45
|
refactoring interpreter
|
11 years ago |
Esteban Ordano
|
490279acb0
|
Lint script/interpreter
|
11 years ago |
Manuel Araoz
|
3dd86446e0
|
add Interpreter docs and refactor a bit
|
11 years ago |
Manuel Araoz
|
84deec297a
|
add tx_invalid tests
|
11 years ago |
Esteban Ordano
|
ce94626908
|
Move: Script and Interpreter into subfolder
|
11 years ago |
Manuel Araoz
|
cd00b3ebe5
|
tx_valid tests passing!
|
11 years ago |
Manuel Araoz
|
b3be9461cf
|
tx_valid tests passing!
|
11 years ago |
Manuel Araoz
|
d56fb04575
|
add ScriptInterpreter#verify docs
|
11 years ago |
Manuel Araoz
|
c272412df2
|
add sig_noncanonical.json tests
|
11 years ago |
Manuel Araoz
|
50dd4e8e66
|
fix all script validation tests, yay!
|
11 years ago |
Manuel Araoz
|
4b68c3725d
|
generalize script tests
|
11 years ago |
Manuel Araoz
|
ddd11e908c
|
all script_valid tests passing!
|
11 years ago |
Manuel Araoz
|
0ddec23c02
|
fix some more tests
|
11 years ago |
Manuel Araoz
|
a761ac91c2
|
some more passing tests
|
11 years ago |
Manuel Araoz
|
9aa6152f25
|
trying to fix OP_CHECKSIG script evaluation
|
11 years ago |
Manuel Araoz
|
6a0512e1bf
|
pass some more tests
|
11 years ago |
Manuel Araoz
|
401b5b1b4a
|
Pubkey -> PublicKey
|
11 years ago |
Manuel Araoz
|
c888c3baa7
|
adding some signature methods for script interpreting
|
11 years ago |
Manuel Araoz
|
3de71f8558
|
refactors and fixes for script interpreter
|
11 years ago |
Manuel Araoz
|
c64a38a54a
|
trying to fix ScriptInterpreter
|
11 years ago |
Manuel Araoz
|
bb8373ead7
|
remove script_interpreter for partial commit
|
11 years ago |
Manuel Araoz
|
898bdac05f
|
working towards script interpreting
|
11 years ago |
Manuel Araoz
|
7ee9601d8a
|
starting with script_interpreter
|
11 years ago |