aboutsummaryrefslogtreecommitdiffstats
path: root/src/simtest/signatures.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-16 21:48:27 +0000
committertv <tv@krebsco.de>2026-11-16 23:07:39 +0100
commit9d9292ae5570cc4be6b68cd3eda92e80893bc679 (patch)
tree4ff203cebbf6d723af678f5b60e6cfb39a0143aa /src/simtest/signatures.rs
parent491751e51a554d991d5066dbe968aa44f3d66f30 (diff)
federation: what a party's client decides by
A party's client signs its party's events with one of its keys, read from an OpenSSH private key file, unencrypted (`client::signing_key`), and keeps its party's record (`client::Record`): the votes it cast, each as signed, with the versions they are on; with each `true`, the votes that made its party's earlier proposal on that version dead, as signed; and the events it signed besides. The record begins on the version current then, and casts nothing on it; it is written whole or not at all. It votes by its record, never by what a node shows (`docs/federation.md`, Changing the policy): never `true` and `false` on one proposal, nor the same twice; a `true` only for a version changing the current one, and one at a time, its earlier `true` on a proposal the votes given make dead, each checked from itself and its version, which it keeps. It signs again, of the latest event it signed at each place, its key set and its node list, what a move refused (`Record::again`). And over the records parties' clients keep, it names a party that voted twice (`client::voted_twice`): its `true` and `false` on one proposal, or its `true` on two of one version, neither dead by all the votes. JSON is taken as the federation takes it (`client::json`).
Diffstat (limited to 'src/simtest/signatures.rs')
0 files changed, 0 insertions, 0 deletions