Skip to main content

Module validate

Module validate 

Source
Expand description

Snapshot validation.

A structural port of the reference validate.ts: same invariants, same error codes, same order of checks, so a snapshot rejected here is rejected by the driver and vice versa. Never panics on hostile input.

Constants§

NODE_KEYS
Every field a node may carry, as this client knows them.
STATE_KEYS
Every field a state object may carry, as this client knows them.

Functions§

apply_tree_delta
Compose a delta onto the snapshot it names, then validate the result.
validate_snapshot
Validate an untrusted snapshot against limits.
validate_tree_delta
Validate the SHAPE of a tree-delta message.