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
stateobject 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-deltamessage.