indices

package
v0.24.10-one-receipt Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2022 License: AGPL-3.0 Imports: 0 Imported by: 0

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

func ExecutionChunk(chunkIndex uint32) []uint32

ExecutionChunk returns the indices for i-th chunk

func ProtocolCollectorClusterLeaderSelection

func ProtocolCollectorClusterLeaderSelection(clusterIndex uint) []uint32

ProtocolCollectorClusterLeaderSelection returns the indices for the leader selection for the i-th collector cluster

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL