cryptocoin
cryptocoin copied to clipboard
transactions
Define how transactions will be built and signed.
Note that this may include several objects. First pass at an architecture:
TransactionInput - a Key, plus an amount to send
TransactionOutput - a Key, plus an amount to receive
Transaction - a collection of inputs and outputs. Includes validation that inputs are equal to outputs and that the transaction is syntactically valid.
For complex transactions, a TransactionScriptNode abstract object would have a number of subclasses, each of which represented a single script operation to be included.