1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//! KEL sink — the write bridge from receipting to the served KEL store.
//!
//! Accepting an event in the witness's `kel` role must also persist it to the
//! per-prefix KEL store the witness serves ("serve what you witness"). The
//! server stays storage-agnostic: it calls this trait after its own wire
//! validation and first-seen check, and the embedding node (auths-witness-node)
//! injects the concrete store. The sink runs the *full* KERI ruleset — SAID,
//! sequence, prior-digest chain, pre-rotation commitment, attachment
//! signatures — so routing through it upgrades validation beyond the wire's
//! inception-only self-signature check.
use Prefix;
/// Outcome of routing an accepted event into the KEL store.
/// A failure routing an accepted event into the KEL store.
/// The write bridge a witness node injects into the server.
///
/// Implementations validate and persist the event under the per-prefix store
/// the node serves. Re-submission of an already-stored event must be a no-op
/// ([`KelSinkOutcome::AlreadyStored`]), never a fork.