Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ProtocolConsensusLeaderSelection is the indices for consensus leader selection ProtocolConsensusLeaderSelection = []uint32{0, 1, 1} // ProtocolVerificationChunkAssignment is the indices for verification nodes determines chunk assignment ProtocolVerificationChunkAssignment = []uint32{0, 2, 0} )
View Source
var ( ConsensusLeaderSelectionCustomizer = []byte("leader_selec") ChunkAssignmentCustomizer = []byte("chunk_assign") )
list of customizers used for different sub-protocol PRNGs. These customizers help instanciate different PRNGs from the same source of randomness.
TODO: the seed input is already diversified using the indices above. The customizers below are enough to diversify the PRNGs and we can remove the indices.
Functions ¶
func ExecutionChunk ¶
ExecutionChunk returns the indices for i-th chunk
func ProtocolCollectorClusterLeaderSelection ¶
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.