Braydon Fuller
|
2bc76b1570
|
Unit test coverage for script interpreter verifyWitnessProgram
|
9 years ago |
Braydon Fuller
|
09346a5dd2
|
Remove currently unused function witnessSignatureOperationsCount
|
9 years ago |
Braydon Fuller
|
0007ffb8ed
|
Add unit tests for isWitnessProgram
|
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 |
Thomas Kerin
|
ad7785d3dd
|
Start of verification support
|
9 years ago |
Braydon Fuller
|
93002249da
|
transaction: start to use new sighash for nested witness
|
9 years ago |
Braydon Fuller
|
317d249758
|
input: added nested p2sh witness
|
9 years ago |
Braydon Fuller
|
88aed87f91
|
script: added p2wsh and p2wpkh script identification methods
|
9 years ago |
Federico Bond
|
6dd38c160e
|
Fix typo in Script.getPublicKey
|
9 years ago |
Ruben de Vries
|
b655659812
|
`Script.classify` should first check output types before checking input types.
|
9 years ago |
Ruben de Vries
|
4f99bf0882
|
add bare multisig support
|
10 years ago |
Rob Riddle
|
5b08d72876
|
Fix typos in documentation
|
10 years ago |
adam
|
f0640a42f7
|
fixing incorrect check of signature validity
|
10 years ago |
Braydon Fuller
|
eb077eb3df
|
Added support for signing publickey inputs.
|
10 years ago |
Braydon Fuller
|
ad9dd2a41f
|
Check that the public key is valid for outputs.
|
10 years ago |
Braydon Fuller
|
9f4b1a2c26
|
Speed up isPublicKeyOut
|
10 years ago |
Braydon Fuller
|
d9047eebf0
|
Detect if scriptSig (input) or scriptPubKey (output) is previously known.
|
10 years ago |
Braydon Fuller
|
6d86c99314
|
Seperate getAddressInfo for input or output only use.
|
10 years ago |
Braydon Fuller
|
e8446d4537
|
Removed double network call
|
10 years ago |
Braydon Fuller
|
ef26931645
|
Use late definition to resolve circular dependency.
|
10 years ago |
Braydon Fuller
|
55d8c4156a
|
Add tests for script.toASM() and new method script.fromASM()
|
10 years ago |
Braydon Fuller
|
b81a64e8cf
|
Added script.toASM method
|
10 years ago |
Braydon Fuller
|
3ad484fff0
|
Added encoding type for buildDataOut
|
10 years ago |
Esteban Ordano
|
5bd5a5b937
|
CLTV: More tests and improved docs
|
10 years ago |
Braydon Fuller
|
7e23109f9b
|
Added more tests around script.isPublicKeyHashIn
|
10 years ago |
Braydon Fuller
|
770e0e3a7f
|
Full public key validation isn't necessary.
|
10 years ago |
Braydon Fuller
|
febbcc6a6e
|
Check pubkeyBuf before pubkeyBuf.length
|
10 years ago |
Braydon Fuller
|
e5e783fbf9
|
Optimized performance of script.isPublicKeyHashIn()
|
10 years ago |
Esteban Ordano
|
5882f9116e
|
CLTV: Minor style fix
|
10 years ago |
Esteban Ordano
|
4280b993e0
|
Add CLTV (BIP65) support
|
10 years ago |
Gregg Zigler
|
77645c7f03
|
remove skipped tests since equalivant boolean tests already exist
|
10 years ago |
Gregg Zigler
|
183ffab02b
|
match bitcore style standards, rename arg, set default to true
|
10 years ago |
Gregg Zigler
|
a4b8c06a2d
|
get-signature-count needed to measure txs with many inputs or outputs
|
10 years ago |
Braydon Fuller
|
7723dd302a
|
Added test case for an empty OP_RETURN for script.getData() Fixes #1237
|
10 years ago |
Braydon Fuller
|
d8e90685f4
|
Fixed script.isPublicKeyHashIn bug with variable length signatures.
- DER encoded signatures have a max length of 72 bytes, however a minimum size isn't defined.
- R and S values can have arbitrary lengths
- For more information: https://github.com/bitcoin/bips/blob/master/bip-0062.mediawiki#der-encoding
|
10 years ago |
Manuel Araoz
|
a018a23b6b
|
fix bug in recognizing p2sh input scripts
|
10 years ago |
Manuel Araoz
|
db6234b500
|
remove duplicate code, increase coverage
|
10 years ago |
Manuel Araoz
|
fe17f20a97
|
remove console.log
|
10 years ago |
Manuel Araoz
|
d556a0c33d
|
fix regressions
|
10 years ago |
Manuel Araoz
|
dfc075e5d1
|
fix block parsing problem
|
10 years ago |
Manuel Araoz
|
270413a655
|
add simpler test that fails
|
10 years ago |
Manuel Araoz
|
2cccf20c9d
|
improve docs to show signatures type
|
10 years ago |
Manuel Araoz
|
ee6f8d35ef
|
increase script test coverage
|
10 years ago |
Kirill Fomichev
|
116024a7cb
|
fix Script.isPublicKeyHashOut
|
10 years ago |
Manuel Araoz
|
ef7eafbb0c
|
increase test coverage and fix some bugs
|
10 years ago |
Manuel Araoz
|
e0b1ca0e10
|
move some script logic from Address to Script
|
10 years ago |
Manuel Araoz
|
3619c7c9e2
|
fix problematic cases
|
10 years ago |