public class CalypsoRPC extends ByzCoinRPC
currentVersion| Constructor and Description |
|---|
CalypsoRPC(ByzCoinRPC byzcoin)
Creates a new Long Term Secret on an existing ByzCoin ledger.
|
CalypsoRPC(Roster roster,
Darc genesis,
java.time.Duration blockInterval)
Creates a new ByzCoin ledger and a new Long Term Secret.
|
| Modifier and Type | Method and Description |
|---|---|
LTS |
createLTS()
Create a long-term-secret (LTS) and retrieve its configuration.
|
static CalypsoRPC |
fromCalypso(Roster roster,
SkipblockId byzcoinId,
LTSId ltsId)
Connects to an existing byzcoin and an existing Long Term Secret.
|
LTS |
getLTS() |
LTSId |
getLTSId() |
Point |
getLTSX() |
Point |
getSharedPublicKey(LTSId ltsId)
returns the shared symmetricKey of the DKG that must be used to encrypt the
symmetric encryption symmetricKey.
|
DecryptKeyReply |
tryDecrypt(Proof writeProof,
Proof readProof)
Ask the secret-manageemnt cothority for the decryption shares.
|
checkAuthorization, checkLiveness, fromByzCoin, getBlock, getConfig, getGenesisBlock, getGenesisDarc, getGenesisDarcInstance, getLatestBlock, getProof, getRoster, getSkipchain, getSubscription, makeGenesisDarc, sendTransaction, sendTransactionAndWait, setBlockInterval, setMaxBlockSize, setRoster, subscribeSkipBlock, subscribeSkipBlock, toBytes, unsubscribeBlock, updatepublic CalypsoRPC(ByzCoinRPC byzcoin) throws CothorityException
byzcoin - the existing byzcoin ledger.CothorityException - if something goes wrongpublic CalypsoRPC(Roster roster, Darc genesis, java.time.Duration blockInterval) throws CothorityException
roster - the nodes participating in the ledgergenesis - the first darcblockInterval - how often a new block is createdCothorityException - if something goes wrongpublic Point getSharedPublicKey(LTSId ltsId) throws CothorityCommunicationException
ltsId - the long term secret IDCothorityCommunicationException - in case of communication difficultiespublic LTS createLTS() throws CothorityCommunicationException
CothorityCommunicationException - if something went 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 LTS 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 wrongCopyright © 2018. All rights reserved.