Class TransactionInput
java.lang.Object
com.bradyrussell.uiscoin.transaction.TransactionInput
- All Implemented Interfaces:
SerializableAsBinaryData
,VerifiableWithBlockchain
public class TransactionInput extends java.lang.Object implements SerializableAsBinaryData, VerifiableWithBlockchain
-
Field Summary
Fields Modifier and Type Field Description int
IndexNumber
byte[]
InputHash
int
InputSequenceNumber
byte[]
UnlockingScript
-
Constructor Summary
Constructors Constructor Description TransactionInput()
TransactionInput(byte[] inputHash, int indexNumber)
TransactionInput(byte[] inputHash, int indexNumber, int inputSequenceNumber)
-
Method Summary
Modifier and Type Method Description byte[]
getBinaryData()
byte[]
getHash()
int
getSize()
int
setBinaryData(byte[] Data)
boolean
verify(BlockchainStorage blockchain)
-
Field Details
-
InputHash
public byte[] InputHash -
IndexNumber
public int IndexNumber -
UnlockingScript
public byte[] UnlockingScript -
InputSequenceNumber
public int InputSequenceNumber
-
-
Constructor Details
-
TransactionInput
public TransactionInput() -
TransactionInput
public TransactionInput(byte[] inputHash, int indexNumber) -
TransactionInput
public TransactionInput(byte[] inputHash, int indexNumber, int inputSequenceNumber)
-
-
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
-