public class SkipchainRPC extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Roster |
roster |
protected SkipblockId |
scID |
| Constructor and Description |
|---|
SkipchainRPC(Roster roster,
SkipblockId scID)
If the skipchain is already initialised, this constructor will only
initialise the class.
|
| Modifier and Type | Method and Description |
|---|---|
SkipblockId |
getID() |
SkipBlock |
getLatestSkipblock() |
Roster |
getRoster() |
SkipBlock |
getSkipblock(SkipblockId id)
Returns the skipblock from the skipchain, given its id.
|
boolean |
verify()
Contacts all nodes in the cothority and returns true only if _all_
nodes returned OK.
|
protected SkipblockId scID
protected Roster roster
public SkipchainRPC(Roster roster, SkipblockId scID) throws CothorityCommunicationException
roster - list of all cothority servers with public keysscID - the getId of the used skipchainCothorityCommunicationException - in case of communication difficultiespublic boolean verify()
public SkipBlock getSkipblock(SkipblockId id) throws CothorityCommunicationException
id - the id of the skipblockCothorityCommunicationException - in case of communication difficultiespublic SkipBlock getLatestSkipblock() throws CothorityCommunicationException
CothorityCommunicationExceptionpublic SkipblockId getID()
public Roster getRoster()
Copyright © 2018. All rights reserved.