Documentation
¶
Overview ¶
Package fpc implements Fast Probabilistic Consensus thresholds.
For round "phase" and committee size k, it picks a θ ∈ [θ_min, θ_max] and returns α = ⌈θ·k⌉ for both preference and confidence. The PRF makes θ stable for a given phase, testable, and deterministic in simulations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Selector ¶
type Selector struct {
// contains filtered or unexported fields
}
Selector provides phase-dependent threshold selection for FPC
func DefaultSelector ¶
func DefaultSelector() *Selector
DefaultSelector returns a selector with default parameters
func NewSelector ¶
NewSelector creates a new FPC threshold selector
func (*Selector) SelectThreshold ¶
SelectThreshold picks θ ∈ [θ_min, θ_max] using PRF for phase Returns α = ⌈θ·k⌉ for both preference and confidence
Click to show internal directories.
Click to hide internal directories.