package
5.2.0
Repository: https://github.com/prysmaticlabs/prysm.git
Documentation: pkg.go.dev

# Packages

# Functions

DefaultParams defines default values for slasher's important parameters, defined based on optimization analysis for best and worst case scenarios for slasher's performance.
EmptyMaxSpanChunksSlice initializes a max span chunk of length C*K for C = chunkSize and K = validatorChunkSize filled with neutral elements.
EmptyMinSpanChunksSlice initializes a min span chunk of length C*K for C = chunkSize and K = validatorChunkSize filled with neutral elements.
GetChunkFromDatabase Utility function aiming at retrieving a chunk from the database.
MaxChunkSpansSliceFrom initializes a max span chunks slice from a slice of uint16 values.
MinChunkSpansSliceFrom initializes a min span chunks slice from a slice of uint16 values.
New instantiates a new slasher from configuration values.

# Structs

MaxSpanChunksSlice represents the same data structure as MinSpanChunksSlice however keeps track of validator max spans for slashing detection instead.
MinSpanChunksSlice represents a slice containing a chunk for K different validator's min spans.
Parameters for slashing detection.
Service defining a slasher implementation as part of the beacon node, able to detect eth2 slashable offenses.
ServiceConfig for the slasher service in the beacon node.

# Interfaces

Chunker defines a struct which represents a slice containing a chunk for K different validator's min/max spans used for surround vote detection in slasher.