Manuel Araoz
c0d51916df
add support code for copay's new tx proposal check
11 years ago
Linus Unnebäck
3da6fe899f
cleanup after removal of soop
Removed some unnecessary parenthesise that hung around after the merge
of #417
11 years ago
Manuel Araoz
87b818badf
remove soop exports
11 years ago
Manuel Araoz
6e346d067c
remove soop imports
11 years ago
Petros Angelatos
d2ce401f84
remove dead code
11 years ago
Ryan X. Charles
ca67786a77
ran js-beautify on all bitcore source
js-beautify -s 2 -r *.js
...did not run on bundles, only on source.
11 years ago
Matias Alejo Garcia
e60e389e43
add more strict checking, plus tests
11 years ago
Matias Alejo Garcia
be02d41ac2
fix isMultiSig
11 years ago
Ryan X. Charles
d3a4cfa333
remove eval
eval is unsafe, and the way it was being used in Script and Script interpreter
was not a good enough reason. This commit removes both uses of eval, then
replaces all uses of OP_XXX with Opcode.map.OP_XXX since there's no reason for
those constants to be global.
11 years ago
Ruben de Vries
4860b8f3c7
updated naming for getMultiSigInfo
11 years ago
Ruben de Vries
e301a14657
added Script.getMultiSigInfo as easy helper to return information about a multisig script
11 years ago
Matias Alejo Garcia
a83309eede
rm log
11 years ago
Matias Alejo Garcia
9951b55a4f
signature sorting in .sign and .merge in transaction builder
11 years ago
Matias Alejo Garcia
56d81bc0df
remove unused code from Script. Update it to do not use scriptSig placeholders
11 years ago
Eric Martindale
a2d616da5b
Project reorganization.
11 years ago
Eric Martindale
f3b1c2d292
Cleanup main directory.
11 years ago
olalonde
66428e00bc
Script: removed dead code this.class = Script
11 years ago
Manuel Araoz
406600720e
valid tx tests passing!
11 years ago
Manuel Araoz
1119b6f9e7
fixed SignatureHash tests!!!!!
11 years ago
Matias Alejo Garcia
56bed9b3f2
fix noSorting, add testcase against bitcoind output
11 years ago
Matias Alejo Garcia
921bc2ff17
add sorting of pubkeys for multisig addr generation
11 years ago
Manuel Araoz
5b6c9e2f53
fixed SignatureHash tests!!!!!
11 years ago
Matias Alejo Garcia
f6f7a01efc
add p2sh support and test
11 years ago
Manuel Araoz
72570719d8
random transaction and script generation
11 years ago
Ryan X. Charles
f89dcda0a2
script parsing should be more loose on pushdata
This testnet transaction was being parsed incorrectly:
cc64de74ba7002bbf4e3646824d7bbf0920004fb2ce45aa7270c4116ff11b715
Script was throwing an error when it should not have been. The error was that
PUSHDATA1 was trying to push 117 bytes to the stack, but it was followed by
only 75 bytes. But this transaction is accepted as valid by bitcoin-qt on
testnet. So we are mistaken by throwing an error in this case.
11 years ago
MattFaus
5af02e937a
Work in progress. I have a problem with the verifyInput() callback calling itself whenever the test assertions throw an exception. I looked at the step and async libraries that are already installed via package.json, but I don't think either of these provide the functionality I need.
11 years ago
Manuel Araoz
ddb3e6de70
invalid script test passing!
11 years ago
Manuel Araoz
03d200bad7
some invalid script tests working
11 years ago
Manuel Araoz
9ef8b78182
refactor int conversion, encoding, and utils
11 years ago
Manuel Araoz
512d9d39ee
small fix
11 years ago
Manuel Araoz
1d72154c54
separate getStringContent and getHumanReadable
11 years ago
Manuel Araoz
dc56cb8d45
fixed Script parse tests for all scripts (valid and invalid)
11 years ago
Manuel Araoz
e83590f528
fix Script parsing for some cases, setup ScriptInterpreter tests
11 years ago
Manuel Araoz
05c5538162
script parser code added and tested
11 years ago
Matias Alejo Garcia
c0c325dabd
all classes working with soop and test passing
11 years ago
Manuel Araoz
40ee699453
working on Transaction verification and Script tests
11 years ago
Manuel Araoz
b4642e8924
all tests working in browser :D
11 years ago
Manuel Araoz
e0233f02dd
fix Buffer.concat use
11 years ago
Manuel Araoz
d96181898a
fixed concat references
11 years ago
Manuel Araoz
0096238004
migrating buffertools compare method and test
11 years ago
Matias Alejo Garcia
f35c03544b
replace tabs with 2 spaces using "expand"
11 years ago
Ryan X. Charles
c708d55fd5
import script functions from cosign
11 years ago
Ryan X. Charles
94aaa6d242
must use new operator to make new Put
11 years ago
Ryan X. Charles
f62875efad
negative indexes don't work in javascript
11 years ago
Ryan X. Charles
e8f6cbeac1
correct tabs for Script.TX_ lines
11 years ago
Ryan X. Charles
3c0375d8b0
export TX types ... for cosign
11 years ago
Stephen Pair
f9e86a5e83
rework logging, remove some unused code
11 years ago
Jeff Garzik
b6f05a3111
Script, ScriptInterpreter: Verify P2SH scripts and signatures
12 years ago
Jeff Garzik
82a69d41e7
Script: detect and parse P2SH and multisig scripts
12 years ago
Jeff Garzik
46b84e6398
Script: add multisig, P2SH helpers. Prefer direct Buffer encoding to bufferput
12 years ago