# Functions
GetBAThreshold return threshold for BA votes.
GetConfigWithPanic is a helper to access configs, and panic when config for that round is not ready yet.
GetCRSWithPanic is a helper to access CRS, and panic when CRS for that round is not ready yet.
GetDKGNackThreshold return expected threshold for given nacking DKG set.
GetDKGThreshold return expected threshold for given DKG set size.
GetDKGValidThreshold return threshold for DKG set to considered valid.
GetNextRoundValidationHeight returns the block height to check if the next round is ready.
GetRoundHeight wraps the workaround for the round height logic in fullnode.
HashBlock generates hash of a types.Block.
HashPosition generates hash of a types.Position.
HashVote generates hash of a types.Vote.
IsDKGValid check if DKG is correctly prepared.
LaunchDummyReceiver launches a go routine to receive from the receive channel of a network module.
NeedPenaltyDKGPrivateShare checks if the proposer of dkg private share should be penalized.
NeedPenaltyForkBlock checks if two blocks are fork block.
NeedPenaltyForkVote checks if two votes are fork vote.
NewNodeSetCache constructs an NodeSetCache instance.
NewRoundEvent creates an RoundEvent instance.
NewSigner constructs an Signer instance.
NewVoteFilter creates a new vote filter instance.
Rehash hashes the hash again and again and again...
RoundEventRetryHandlerGenerator generates a handler to common.Event, which would register itself to retry next round validation if round event is not triggered.
SetDKGDelayRound sets the variable.
VerifyBlockSignature verifies the signature of types.Block.
VerifyBlockSignatureWithoutPayload verifies the signature of types.Block but does not check if PayloadHash is correct.
VerifyCRSSignature verifies the CRS signature of types.Block.
VerifyDKGComplaint verifies if its a valid DKGCompliant.
VerifyDKGComplaintSignature verifies DKGCompliant signature.
VerifyDKGFinalizeSignature verifies DKGFinalize signature.
VerifyDKGMasterPublicKeySignature verifies DKGMasterPublicKey signature.
VerifyDKGMPKReadySignature verifies DKGMPKReady signature.
VerifyDKGPartialSignatureSignature verifies the signature of typesDKG.PartialSignature.
VerifyDKGPrivateShareSignature verifies the signature of typesDKG.PrivateShare.
VerifyDKGSuccessSignature verifies DKGSuccess signature.
VerifyVoteSignature verifies the signature of types.Vote.
# Variables
ErrConfigurationNotReady means we go nil configuration.
ErrCRSNotReady means we got empty CRS.
Errors for signer.
Errors for signer.
ErrInvalidDKGMasterPublicKey means the DKG MasterPublicKey is invalid.
Errors for signer.
Errors for signer.
ErrNodeSetNotReady means we got nil empty node set.
ErrPayloadNotEmpty means the payload of block is not empty.
# Structs
ErrUnmatchedBlockHeightWithConfig is for invalid parameters for NewRoundEvent.
NodeSetCache caches node set information.
RoundBasedConfig is based config for rounds and provide boundary checking for rounds.
RoundEvent would be triggered when either: - the next DKG set setup is ready.
RoundEventParam defines the parameters passed to event handlers of RoundEvent.
Signer signs a segment of data.
VoteFilter filters votes that are useless for now.
# Interfaces
NodeSetCacheInterface interface specifies interface used by NodeSetCache.