public class ClientTransaction extends Object
| Constructor and Description |
|---|
ClientTransaction(ByzCoinProto.ClientTransaction proto)
Deprecated.
This function instantiates a deprecated list of instructions for latest
versions of the byzcoin protocol.
|
ClientTransaction(ByzCoinProto.ClientTransaction proto,
int version)
Constructor for the client transaction from a received message.
|
ClientTransaction(List<Instruction> instructions)
Deprecated.
This function instantiates a deprecated list of instructions for latest
versions of the byzcoin protocol.
|
ClientTransaction(List<Instruction> instructions,
int version)
Constructor for the client transaction.
|
| Modifier and Type | Method and Description |
|---|---|
ClientTransactionId |
getId() |
List<Instruction> |
getInstructions()
Getter for the instructions.
|
void |
signWith(List<Signer> signers)
This function signs all the instructions in the transaction using the same set of
signers.
|
ByzCoinProto.ClientTransaction |
toProto()
Converts this object to the protobuf representation.
|
public ClientTransaction(List<Instruction> instructions)
instructions - The list of instructions that should be executed atomically.public ClientTransaction(List<Instruction> instructions, int version)
instructions - The list of instructions that should be executed atomically.version - Version of the ByzCoin protocol usually stored in the block header.public ClientTransaction(ByzCoinProto.ClientTransaction proto)
proto - Protobuf objectpublic ClientTransaction(ByzCoinProto.ClientTransaction proto, int version)
proto - Protobuf objectversion - Version of the ByzCoin protocol usually stored in the block header.public List<Instruction> getInstructions()
public ByzCoinProto.ClientTransaction toProto()
public void signWith(List<Signer> signers) throws CothorityCryptoException
signers - is the list of signers who signs all instructionsCothorityCryptoExceptionpublic ClientTransactionId getId()
Copyright © 2019. All rights reserved.