Emilio Almansi
97cd3913e0
Revert "Merge pull request #160 from matiu/cash"
This reverts commit b5c4f76799
, reversing
changes made to 5feb9e547c
.
7 years ago
matiu
d5f287fc6b
fix uri tests
7 years ago
Matias Alejo Garcia
f3388cdb23
ALL|FORKID new default sighash
7 years ago
Ruben de Vries
b655659812
`Script.classify` should first check output types before checking input types.
9 years ago
adam
b582c2a4fc
correcting test opcode length error
9 years ago
adam
f0640a42f7
fixing incorrect check of signature validity
9 years ago
Braydon Fuller
eb077eb3df
Added support for signing publickey inputs.
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
Braydon Fuller
7e23109f9b
Added more tests around script.isPublicKeyHashIn
10 years ago
Esteban Ordano
4280b993e0
Add CLTV (BIP65) support
10 years ago
Gregg Zigler
b6d44f4622
camelCase variable names
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
bbd48f868d
remove comment
10 years ago
Manuel Araoz
db6234b500
remove duplicate code, increase coverage
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
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
3619c7c9e2
fix problematic cases
10 years ago
Manuel Araoz
a9328d76ff
add extra test
10 years ago
Manuel Araoz
62ea45a524
refactor Address<->Script relation
10 years ago
eordano
1a5780e35e
Script/Address: Add check for valid number of threshold needed
10 years ago
eordano
0bbde0c9de
Script: Update max length for standard opreturn to 80
10 years ago
Esteban Ordano
73a973359b
Fix invocations to binary operations called on numbers
10 years ago
Esteban Ordano
03f794b4a3
Add shorthand method toHex to Script
10 years ago
Braydon Fuller
bce28cd227
Fixed bug in IE11 that would cause MAX_MONEY verification test to fail.
10 years ago
Yemel Jardi
d369154162
Script: remember network when creating from address or pubkey
10 years ago
Yemel Jardi
9deec5e1c2
Use defaultNetwork in Script.toAddress
10 years ago
Esteban Ordano
ffca4cfb6f
Fixes Script test case for coverage and style
10 years ago
Esteban Ordano
d688222769
Add toAddress(network) functionality to scripts
10 years ago
Esteban Ordano
dc92bdd474
Add getData functionality to script
10 years ago
Manuel Araoz
fb57a60666
fix all tests
10 years ago
Manuel Araoz
6c518f1f45
refactoring interpreter
10 years ago
Manuel Araoz
370f69df88
refactor BN and ECDSA
10 years ago
Esteban Ordano
99db72ba90
Add `uncheckedAddInput` function
* For internal usage: for example, testing Script.Interpreter
10 years ago
Esteban Ordano
e5631b1a69
Modify transaction interface
* Add checks when serializing
* Add default _estimateSize to generic inputs
* Fix multisig size estimation
* Change _addOutput to addOutput
* Add addInput and using that internally
* Split `getFee` out from `_updateChangeOutput`
10 years ago
Manuel Araoz
3d7b0c7474
standardize test files
10 years ago
Manuel Araoz
3dd86446e0
add Interpreter docs and refactor a bit
10 years ago