public class CalypsoRPC extends ByzCoinRPC
currentVersion| Constructor and Description |
|---|
CalypsoRPC(ByzCoinRPC byzcoin,
DarcId darcBaseID,
Roster ltsRoster,
List<Signer> signers,
List<Long> signerCtrs)
Creates a new Long Term Secret on an existing ByzCoin ledger.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
authorize(ServerIdentity si,
SkipblockId byzcoinId)
Connect to a server to an Authorized ByzCoin ID.
|
CreateLTSReply |
createLTS(Proof proof)
Create a long-term-secret (LTS) and retrieve its configuration.
|
static CalypsoRPC |
fromCalypso(ByzCoinRPC bc,
LTSId ltsId)
Connects to an existing Long Term Secret using a ByzCoinRPC.
|
static CalypsoRPC |
fromCalypso(Roster roster,
SkipblockId byzcoinId,
LTSId ltsId)
Connects to an existing byzcoin and an existing Long Term Secret.
|
CreateLTSReply |
getLTS() |
LTSId |
getLTSId() |
CreateLTSReply |
getLTSReply(LTSId ltsId)
returns the shared symmetricKey of the DKG that must be used to encrypt the
symmetric encryption symmetricKey.
|
Point |
getLTSX() |
void |
reshareLTS(Proof proof)
Start a request to reshare the LTS.
|
DecryptKeyReply |
tryDecrypt(Proof writeProof,
Proof readProof)
Ask the secret-management cothority for the decryption shares.
|
checkAuthorization, checkLiveness, checkStateChangeValidity, fromByzCoin, getAllInstanceVersion, getBlock, getConfig, getGenesisBlock, getGenesisDarc, getGenesisDarcInstance, getInstanceVersion, getLastInstanceVersion, getLatestBlock, getProof, getRoster, getSignerCounters, getSkipchain, getSubscription, makeGenesisDarc, sendTransaction, sendTransactionAndWait, setBlockInterval, setMaxBlockSize, setRoster, subscribeSkipBlock, subscribeSkipBlock, toBytes, unsubscribeBlock, updatepublic CalypsoRPC(ByzCoinRPC byzcoin, DarcId darcBaseID, Roster ltsRoster, List<Signer> signers, List<Long> signerCtrs) throws CothorityException
byzcoin - the existing byzcoin ledger.CothorityException - if something goes wrongpublic CreateLTSReply getLTSReply(LTSId ltsId) throws CothorityCommunicationException
ltsId - the long term secret IDCothorityCommunicationException - in case of communication difficultiespublic CreateLTSReply createLTS(Proof proof) throws CothorityCommunicationException
CothorityCommunicationException - if something went wrongpublic void reshareLTS(Proof proof) throws CothorityCommunicationException
proof - the proof that contains the new roster, typically created using LTSInstance.CothorityCommunicationException - if something goes wrongpublic DecryptKeyReply tryDecrypt(Proof writeProof, Proof readProof) throws CothorityCommunicationException
writeProof - The proof of the write request.readProof - The proof of the read request.CothorityCommunicationException - if something went wrongpublic LTSId getLTSId()
public Point getLTSX()
public CreateLTSReply getLTS()
public static CalypsoRPC fromCalypso(Roster roster, SkipblockId byzcoinId, LTSId ltsId) throws CothorityException
roster - the nodes handling the byzcoin ledgerbyzcoinId - the id of the byzcoin ledger to connect toltsId - the id of the Long Term Secret to useCothorityException - if something goes wrongpublic static CalypsoRPC fromCalypso(ByzCoinRPC bc, LTSId ltsId) throws CothorityException
bc - the ByzCoinRPC to use to talk to the ledgerltsId - the id of the Long Term Secret to useCothorityException - if something goes wrongpublic static void authorize(ServerIdentity si, SkipblockId byzcoinId) throws CothorityCommunicationException
si - the server identitybyzcoinId - the ByzCoin IDCothorityCommunicationException - if something goes wrong.Copyright © 2019. All rights reserved.