Class TransactionOutput
java.lang.Object
com.bradyrussell.uiscoin.transaction.TransactionOutput
- All Implemented Interfaces:
SerializableAsBinaryData
,VerifiableWithBlockchain
public class TransactionOutput extends java.lang.Object implements SerializableAsBinaryData, VerifiableWithBlockchain
-
Field Summary
Fields Modifier and Type Field Description long
Amount
byte[]
LockingScript
-
Constructor Summary
Constructors Constructor Description TransactionOutput()
TransactionOutput(long amount, byte[] lockingScript)
-
Method Summary
Modifier and Type Method Description byte[]
getBinaryData()
byte[]
getHash()
int
getSize()
int
setBinaryData(byte[] Data)
boolean
verify(BlockchainStorage blockchain)
-
Field Details
-
Amount
public long Amount -
LockingScript
public byte[] LockingScript
-
-
Constructor Details
-
TransactionOutput
public TransactionOutput() -
TransactionOutput
public TransactionOutput(long amount, byte[] lockingScript)
-
-
Method Details
-
getBinaryData
public byte[] getBinaryData()- Specified by:
getBinaryData
in interfaceSerializableAsBinaryData
-
setBinaryData
public int setBinaryData(byte[] Data)- Specified by:
setBinaryData
in interfaceSerializableAsBinaryData
-
getSize
public int getSize()- Specified by:
getSize
in interfaceSerializableAsBinaryData
-
getHash
public byte[] getHash()- Specified by:
getHash
in interfaceSerializableAsBinaryData
-
verify
- Specified by:
verify
in interfaceVerifiableWithBlockchain
-