lssa/key_protocol
ygd58 67c8cae5ca
feat: add KeyTree::from_nodes() with consistency check
Implements the TODO at key_tree/mod.rs:62.

Creates a KeyTree from a list of (ChainIndex, N) pairs with
consistency checks:
- List must not be empty
- Root node must be present
- Every non-root node must have its parent present

3 new tests:
- from_nodes_empty_fails
- from_nodes_missing_root_fails
- from_nodes_roundtrip

Refs #209
2026-04-01 13:48:01 +02:00
..