public class SkipBlock extends Object
| Constructor and Description |
|---|
SkipBlock(byte[] sb) |
SkipBlock(SkipchainProto.SkipBlock skipBlock) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData() |
byte[] |
getHash() |
SkipblockId |
getId() |
int |
getIndex() |
SkipchainProto.SkipBlock |
getProto() |
Roster |
getRoster()
Gets the roster from the skipblock.
|
SkipblockId |
getSkipchainId() |
byte[] |
toByteArray()
Returns the serialized skipblock.
|
public SkipBlock(SkipchainProto.SkipBlock skipBlock)
public SkipBlock(byte[] sb)
throws CothorityException
CothorityExceptionpublic SkipchainProto.SkipBlock getProto()
public byte[] toByteArray()
public byte[] getHash()
public SkipblockId getId() throws CothorityCryptoException
CothorityCryptoExceptionpublic SkipblockId getSkipchainId() throws CothorityCryptoException
CothorityCryptoExceptionpublic byte[] getData()
public int getIndex()
public Roster getRoster() throws CothorityException
CothorityExceptionCopyright © 2018. All rights reserved.