Manuel Araoz
406600720e
valid tx tests passing!
2014-04-04 18:06:34 -03:00
Manuel Araoz
1119b6f9e7
fixed SignatureHash tests!!!!!
2014-04-04 14:39:06 -03:00
Matias Alejo Garcia
56bed9b3f2
fix noSorting, add testcase against bitcoind output
2014-04-04 10:37:32 -03:00
Matias Alejo Garcia
921bc2ff17
add sorting of pubkeys for multisig addr generation
2014-04-03 22:06:57 -03:00
Matias Alejo Garcia
f6f7a01efc
add p2sh support and test
2014-04-02 00:59:26 -03:00
Manuel Araoz
72570719d8
random transaction and script generation
2014-03-25 14:37:23 -03:00
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.
2014-03-24 20:18:08 -04:00
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.
2014-03-21 12:13:23 -07:00
Manuel Araoz
ddb3e6de70
invalid script test passing!
2014-03-19 12:26:36 -03:00
Manuel Araoz
03d200bad7
some invalid script tests working
2014-03-19 12:26:36 -03:00
Manuel Araoz
9ef8b78182
refactor int conversion, encoding, and utils
2014-03-19 12:26:36 -03:00
Ryan X. Charles
cb00efb092
Merge remote-tracking branch 'maraoz/feature/add-bitcoin-core-tests'
...
Conflicts:
Script.js
ScriptInterpreter.js
...fixed conflicts in Script.js and ScriptInterpreter.js. Many tests are broken
right now, but that's because we're now including more test data in the tests.
These need to be fixed.
2014-03-09 12:07:11 -04:00
Ryan X. Charles
c19fb7a3ce
Merge remote-tracking branch 'matiu/feature/support-soop-browser'
...
Conflicts:
Script.js
ScriptInterpreter.js
Transaction.js
test/testdata.js
...conflicts resolved by taking Manuel's changes, and then manually including
Matias's changes on those same files. The conflicts resulted from differences
in indentation, which is because Matias' changes unindendented all the code
that had been but is not now inside a function.
2014-03-08 19:30:21 -05:00
Manuel Araoz
512d9d39ee
small fix
2014-03-07 18:06:54 -03:00
Manuel Araoz
1d72154c54
separate getStringContent and getHumanReadable
2014-03-07 18:04:23 -03:00
Manuel Araoz
dc56cb8d45
fixed Script parse tests for all scripts (valid and invalid)
2014-03-07 15:41:27 -03:00
Manuel Araoz
e83590f528
fix Script parsing for some cases, setup ScriptInterpreter tests
2014-03-07 14:43:29 -03:00
Manuel Araoz
05c5538162
script parser code added and tested
2014-03-06 17:23:00 -03:00
Matias Alejo Garcia
c0c325dabd
all classes working with soop and test passing
2014-03-05 16:11:16 -03:00
Manuel Araoz
40ee699453
working on Transaction verification and Script tests
2014-03-05 09:56:42 -03:00
Manuel Araoz
b4642e8924
all tests working in browser :D
2014-02-24 09:39:42 -03:00
Manuel Araoz
e0233f02dd
fix Buffer.concat use
2014-02-18 16:03:44 -03:00
Manuel Araoz
d96181898a
fixed concat references
2014-02-18 16:03:44 -03:00
Manuel Araoz
0096238004
migrating buffertools compare method and test
2014-02-18 16:03:43 -03:00
Matias Alejo Garcia
f35c03544b
replace tabs with 2 spaces using "expand"
2014-01-16 06:21:35 -03:00
Ryan X. Charles
c708d55fd5
import script functions from cosign
2014-01-15 22:16:45 -05:00
Ryan X. Charles
94aaa6d242
must use new operator to make new Put
2014-01-06 15:25:12 -05:00
Ryan X. Charles
f62875efad
negative indexes don't work in javascript
2014-01-06 14:52:23 -05:00
Ryan X. Charles
e8f6cbeac1
correct tabs for Script.TX_ lines
2013-12-18 18:17:11 -05:00
Ryan X. Charles
3c0375d8b0
export TX types ... for cosign
2013-12-10 12:54:11 -05:00
Stephen Pair
f9e86a5e83
rework logging, remove some unused code
2013-10-31 12:40:06 -04:00
Jeff Garzik
b6f05a3111
Script, ScriptInterpreter: Verify P2SH scripts and signatures
2013-08-21 08:29:06 -04:00
Jeff Garzik
82a69d41e7
Script: detect and parse P2SH and multisig scripts
2013-08-16 16:38:28 -04:00
Jeff Garzik
46b84e6398
Script: add multisig, P2SH helpers. Prefer direct Buffer encoding to bufferput
2013-08-15 22:40:07 -04:00
Jeff Garzik
248ef22326
Block, Script, ScriptInterpreter: capitalize deps for new libcoin names
...
Gets them compiling again.
2013-07-17 23:28:42 -04:00
Stephen Pair
ebddafcaa7
some more stuff...not complete yet
2013-07-09 17:45:21 -04:00
Stephen Pair
56a20ef25d
bunch of interim (broken) stuff
2013-07-09 14:45:52 -04:00