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) |
List<SkipblockId> |
getBackLinks()
Getter for the list of backlinks in the skipblock.
|
int |
getBaseHeight() |
byte[] |
getData() |
List<ForwardLink> |
getForwardLinks() |
byte[] |
getHash() |
int |
getHeight() |
SkipblockId |
getId() |
int |
getIndex() |
int |
getMaximumHeight() |
byte[] |
getPayload() |
SkipchainProto.SkipBlock |
getProto() |
Roster |
getRoster()
Gets the roster from the skipblock.
|
SkipblockId |
getSkipchainId() |
List<byte[]> |
getVerifiers()
Getter for the list of verifiers in the skipblock.
|
byte[] |
toByteArray() |
boolean |
verifyForwardSignatures()
This function checks whether all signatures in the forward-links
are correctly signed by the aggregate public key of the roster
|
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 int getHeight()
public int getMaximumHeight()
public int getBaseHeight()
public List<ForwardLink> getForwardLinks()
public boolean verifyForwardSignatures()
public List<SkipblockId> getBackLinks()
public List<byte[]> getVerifiers()
public Roster getRoster() throws CothorityCryptoException
CothorityCryptoException - if the roster cannot be parsedpublic byte[] toByteArray()
public SkipchainProto.SkipBlock getProto()
Copyright © 2019. All rights reserved.