Ryan X. Charles
895bb6bab9
use correct constant & share between Transaction and ScriptInterpreter
Closes https://github.com/bitpay/bitcore/issues/424
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
Ryan X. Charles
c75de967fd
further simplify use of bignum in Transaction and ScriptInterpreter
11 years ago
Ryan X. Charles
d035b54418
simplify use of bignum in ScriptInterpreter
11 years ago
Ryan X. Charles
c8fe404402
replace bignumber.js with bn.js
11 years ago
Manuel Araoz
87b818badf
remove soop exports
11 years ago
Manuel Araoz
6e346d067c
remove soop imports
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
olalonde
78ae388553
Replace process.versions tests by browserify's package.json browser field. Fixes #329
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
Matias Alejo Garcia
00c639d350
fix firefox test
11 years ago
Ryan X. Charles
7f348ca0bd
Move BigNumber to internal
...no longer relies on Manuel's repo hostig a version of "bignum" that actually
contained bignumber.js. This moves bignumber.js internally and removes bignum
from the browser build process. Also adds a bitcore.Bignum that links to the
right thing. In node, browser.Bignum is require('bignum'). And in the browser,
bitcore.Bignum is is now Bignumber.js (same as before ... except bignumber.js
is now inside bitcore).
11 years ago
Eric Martindale
a2d616da5b
Project reorganization.
11 years ago
Eric Martindale
f3b1c2d292
Cleanup main directory.
11 years ago
Manuel Araoz
0b2dae43c5
remove console.logs and std::couts
11 years ago
Manuel Araoz
406600720e
valid tx tests passing!
11 years ago
Manuel Araoz
34ed503830
fixed 23 Transaction tests!!! :D
11 years ago
Manuel Araoz
dbfbc26adc
tracking down Transaction test problems
11 years ago
Manuel Araoz
499b171947
tracking Transaction test problems
11 years ago
Manuel Araoz
230420fb00
fix test code for Transaction. Test skipped because they still fail
11 years ago
Manuel Araoz
ba92a6b1df
refactor and fixes for Transaction, ScriptInterpreter, and Key
11 years ago
Manuel Araoz
b227341c12
some Transaction tests fixed (canonical signatures)
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
5505491e8d
fix negative number arithmetic!
11 years ago
Manuel Araoz
19e15f91ca
size tests working!!! :D
11 years ago
Matias Alejo Garcia
5a1b513b24
add isCanonicalSignature check to script interpreter and tests
11 years ago
Manuel Araoz
3284bfcb2f
remove console.logs
11 years ago
Manuel Araoz
9a64cb0ea1
fix format in ScriptInterpreter
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
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
1c9b89f4f3
reverted some unwanted changes
11 years ago
Manuel Araoz
e0233f02dd
fix Buffer.concat use
11 years ago
Manuel Araoz
4da3285930
fix toHex use
11 years ago
Manuel Araoz
966b8988e1
fix reverse buffertools 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
Stephen Pair
f9e86a5e83
rework logging, remove some unused code
11 years ago
Jeff Garzik
3a29b6e0dd
ScriptInterpreter: convert verifyFull() to use callbacks
12 years ago
Jeff Garzik
b6f05a3111
Script, ScriptInterpreter: Verify P2SH scripts and signatures
12 years ago
Jeff Garzik
248ef22326
Block, Script, ScriptInterpreter: capitalize deps for new libcoin names
Gets them compiling again.
12 years ago
Stephen Pair
ebddafcaa7
some more stuff...not complete yet
12 years ago