Documentation ¶
Index ¶
Constants ¶
View Source
const RandomSourceLength = crypto.SignatureLenBLSBLS12381
Variables ¶
View Source
var ( // ProtocolConsensusLeaderSelection is the customizer for consensus leader selection ProtocolConsensusLeaderSelection = customizerFromIndices([]uint16{0, 1, 1}) // ProtocolVerificationChunkAssignment is the customizer for verification nodes determines chunk assignment ProtocolVerificationChunkAssignment = customizerFromIndices([]uint16{0, 2, 0}) )
Functions ¶
func ExecutionChunk ¶ added in v0.25.0
ExecutionChunk returns the indices for i-th chunk
func FromParentQCSignature ¶ added in v0.25.0
FromParentQCSignature extracts the source of randomness from the given QC sigData. The sigData is an RLP encoded structure that is part of QuorumCertificate.
func PRGFromRandomSource ¶ added in v0.25.0
PRGFromRandomSource returns a PRG seeded by the source of randomness of the protocol. The customizer is used to generate a task-specific PRG (customizer in this implementation is up to 12-bytes long).
The function hashes the input random source to obtain the PRG seed. Hashing is required to uniformize the entropy over the output.
func ProtocolCollectorClusterLeaderSelection ¶ added in v0.25.0
ProtocolCollectorClusterLeaderSelection returns the indices for the leader selection for the i-th collector cluster
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.