public class SkipBlock extends Object
| Constructor and Description |
|---|
SkipBlock(byte[] sb) |
SkipBlock(SkipchainProto.SkipBlock skipBlock) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
byte[] |
getData() |
List<ForwardLink> |
getForwardLinks() |
byte[] |
getHash() |
SkipblockId |
getId() |
int |
getIndex() |
byte[] |
getPayload() |
SkipchainProto.SkipBlock |
getProto() |
Roster |
getRoster()
Gets the roster from the skipblock.
|
SkipblockId |
getSkipchainId() |
byte[] |
toByteArray() |
public SkipBlock(SkipchainProto.SkipBlock skipBlock)
skipBlock - the protobuf definition of the skipblock.public SkipBlock(byte[] sb)
throws CothorityException
sb - the binary representation of the protobuf of the skipblock.CothorityException - if something goes wrongpublic byte[] getHash()
public SkipblockId getId()
public SkipblockId getSkipchainId() throws CothorityCryptoException
CothorityCryptoException - if there's a problem with the cryptographypublic byte[] getData()
public byte[] getPayload()
public int getIndex()
public List<ForwardLink> getForwardLinks()
public Roster getRoster() throws CothorityException
CothorityException - if something went wrongpublic byte[] toByteArray()
public SkipchainProto.SkipBlock getProto()
Copyright © 2018. All rights reserved.