diff options
| author | tv <tv@krebsco.de> | 2026-11-07 22:35:21 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-07 22:35:21 +0100 |
| commit | 8523e9c67e375747147a0b05ec191ad81ce2e318 (patch) | |
| tree | 5263ee759296f08a38091890b743f8d64b557c30 /src/simtest | |
| parent | 8f3f7b24f5a4e7cce4a006ec45b8061fe5cdd87c (diff) | |
signatures: changes signed by their node
Every node signs the changes it commits with its node key, an Ed25519
signature over the change's hash, kept beside the document. One
signature on an actor's latest change vouches for its earlier ones.
Protocol data and paths listed in _continuum/access/signed are signed,
and writes with ?signed=true.
Auth plan M5.
Diffstat (limited to 'src/simtest')
| -rw-r--r-- | src/simtest/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/simtest/mod.rs b/src/simtest/mod.rs index a3001c8..5128d11 100644 --- a/src/simtest/mod.rs +++ b/src/simtest/mod.rs @@ -212,7 +212,8 @@ impl Sim { swarm_key: None, protocol_writers: HashSet::new(), first_users: Vec::new(), - node_key: None, + // Under the identity layer, its key signs as a node's does. + node_key: self.identity.then(|| Arc::new(sim_key(id))), token_lifetime: Duration::from_secs(3600), session_lifetime: Duration::from_secs(86400), cors_origins: Vec::new(), |
