public class LTSInstance extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ContractId |
static String |
InvokeCommand |
| Constructor and Description |
|---|
LTSInstance(CalypsoRPC calypso,
DarcId darcBaseID,
Roster roster,
List<Signer> signers,
List<Long> signerCtrs) |
| Modifier and Type | Method and Description |
|---|---|
static LTSInstance |
fromByzCoin(CalypsoRPC calypso,
InstanceId id)
Constructor used to connect to an existing instance.
|
Instance |
getInstance()
Get the instance object.
|
Proof |
getProofAndVerify()
Retrieves and verifies the proof for this instance.
|
void |
reshareLTS(Roster roster,
List<Signer> signers,
List<Long> signerCtrs)
Start the resharing process that re-distributes the LTS shares to a different roster.
|
public static String ContractId
public static String InvokeCommand
public LTSInstance(CalypsoRPC calypso, DarcId darcBaseID, Roster roster, List<Signer> signers, List<Long> signerCtrs) throws CothorityException
calypso - darcBaseID - roster - signers - signerCtrs - CothorityExceptionpublic Instance getInstance()
public static LTSInstance fromByzCoin(CalypsoRPC calypso, InstanceId id) throws CothorityException
calypso - the calypso RPCid - the instance ID to connectCothorityException - if something goes wrongpublic void reshareLTS(Roster roster, List<Signer> signers, List<Long> signerCtrs) throws CothorityException
roster - the new rostersigners - the list of signers that are authorized to run the reshare contractsignerCtrs - the monotonically increasing counter for every signerCothorityException - if something goes wrongpublic Proof getProofAndVerify() throws CothorityCommunicationException, CothorityCryptoException
CothorityCommunicationException - when the communication failsCothorityCryptoException - when the proof cannot be verified or the instance is not in the proofCopyright © 2019. All rights reserved.