security
Package security is the network security model for Lux L1/L2 networks (LP-018 §'Network security modes').
import "github.com/luxfi/node/vms/platformvm/security"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.
Types
Admission
Admission governs how a network's own validator set admits members.
Manager
Manager is the authority that governs a network's own validator set.
Mode
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).
func (m Mode) Sovereign() boolfunc (m Mode) Valid() error