Documentation
¶
Overview ¶
Package security is the network security model for Lux L1/L2 networks (LP-018 §"Network security modes"). It is one small, orthogonal definition — pure values, no wire or state dependencies — composed by the three consumers that need it: the P-Chain tx wire, the executor, and state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Admission ¶
type Admission uint8
Admission governs how a network's own validator set admits members.
type Manager ¶
type Manager uint8
Manager is the authority that governs a network's own validator set.
type Mode ¶
type Mode struct {
RestakeParent bool
Admission Admission
Threshold uint64 // minimum stake for Open admission; 0 otherwise
Manager Manager
}
Mode is a network's complete security configuration.
The two axes are orthogonal:
- RestakeParent — the network leans on its parent's validator set.
- own set — whether it runs its OWN set, described by (Admission, Manager).
Their product spans every operating mode: a restaked L2 (RestakeParent, NoOwnSet), a sovereign L1 (¬RestakeParent, Open|Gated), and a hybrid L2 that restakes its parent AND runs an additive own set (RestakeParent, Open|Gated).