Skip to main content

Module validate

Module validate 

Source
Expand description

E08.1 — admit topology records only after origin/scope/sequence/expiry checks.

Structs§

TopologyRecord
Untrusted topology advertisement. Digest is checked only when bytes are supplied.
ValidatedEdge
Edge that passed validation. Never a candidate while withdrawn.

Constants§

MIN_COMPACT_NODE
Compact node id 0 is reserved (not a topology origin or endpoint).
PROFILE_P0
Handling profile P0..P3. Higher is stricter.
PROFILE_P3

Functions§

insert
Validate then insert. Never writes the index on failure.
validate_record
Validate rec against expected_scope, clock, per-origin sequence, and optional bytes.