Esteban Ordano
9f442e8ec4
Merge pull request #777 from maraoz/add/tx_invalid/tests
...
add tx_invalid.json tests
2014-12-16 23:13:59 -03:00
Manuel Araoz
84deec297a
add tx_invalid tests
2014-12-16 22:40:59 -03:00
Esteban Ordano
f7f7d147c6
Add change features
2014-12-16 22:39:25 -03:00
Esteban Ordano
d4b8c4adc6
Remove globals
2014-12-16 17:30:43 -03:00
Manuel Araoz
4fcc048311
script interpreting working
2014-12-16 13:33:57 -03:00
Manuel Araoz
73874ae873
import Sighash
2014-12-16 13:33:56 -03:00
Manuel Araoz
9aa6152f25
trying to fix OP_CHECKSIG script evaluation
2014-12-16 13:33:56 -03:00
Esteban Ordano
de4d2884c7
Modify Transaction to use Multisig
...
* Allow `Script#add` to add a Script causing concatenation of opcodes
* Add `Script#equals` to compare scripts
* Add `Script#fromAddress`
* Drop `_payTo` methods
* Add `Script.buildP2SHMultisigIn`
Greatly simplifying the internal transaction object
2014-12-15 18:19:54 -03:00
Esteban Ordano
af43228daf
Add `PublicKeyHashInput` and `ScriptHashInput`.
...
Remove `_outpoints`, `_utxos` from Transaction, as that info
can be efficiently retrieved from the inputs
2014-12-15 18:19:39 -03:00
Manuel Aráoz
264a239e5a
Merge pull request #737 from braydonf/bug/to-object
...
Transaction: `toJSON` / `fromJSON` tests
2014-12-15 17:06:08 -03:00
Braydon Fuller
b13c4fb0c9
Added inspect prototype G5
2014-12-14 15:13:01 -05:00
Braydon Fuller
f43c2f9aa3
Fixed bug, toObject should use other object's toObject
2014-12-13 14:54:07 -05:00
Braydon Fuller
002eb3dcf5
Transaction: Added toObject method and changed toJSON to return a string
2014-12-12 19:03:14 -05:00
Esteban Ordano
0c28bc1786
Split buildPKH arguments, add Copy constructor on publickey
2014-12-10 12:46:21 -03:00
Esteban Ordano
5c974a8ef2
Refactor transaction to match new API
...
* Refactor transaction into a different subfolder
* Added a lot of tests for sighash and transaction serialization (from
reddit's and Ryan X. Charles' `fullnode`)
* Drop "only" from sighash tests and consolidate logs
2014-12-10 12:44:30 -03:00