diff options
| author | tv <tv@krebsco.de> | 2026-11-15 12:34:03 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-15 12:34:03 +0000 |
| commit | 44e9b3920111ae47f116d893b1872bf3e07eab3f (patch) | |
| tree | 639fea641f215e4dacca1f0ff899a94de3a5b0ba /src/simtest/policy.rs | |
| parent | b6fe90fa83238b8ffa10421d876b988152115271 (diff) | |
federation: order by seq and number, votes of yes and no, forks as swarms
What a place holds is read by its envelopes' `seq`, the current
version by its number, a party's keys by one envelope's `seq`: nothing
by the order of operations, which a change's writer steers.
- A version is a string named by its hash, numbered, written at
`versions/<hash>` by any member once it passed, counting by its
votes and not its writer, and current only once written.
- A vote is `true` or `false` at `votes/<party>/<version>/<proposal>`
and never changes. A proposal passes with the share's yeses and is
dead once the nays leave too few; a party backs one proposal at a
time, and another once the first is dead. So a split ends on its
version. Two versions with one number are written only if a party
voted twice; the lower hash is read.
- A party's keys are one envelope, or what a version set. A first
envelope at a place names its party's keys, so it can't be put back
once they changed; deletions need no rule of their own.
- Rules start with a literal segment; `{party}` is a whole segment;
a writer is a party, `{party}` or `false`. How names and addresses
are spelled as paths is the application's.
- What counts no more: five things; any member deletes them, judged
by the document the deleting change makes.
- A fork is a swarm of its own, started from the document with the
version the group wants.
- Becoming federated closes the history before it. A node that didn't
hold the epoch before takes a remake on its peers' word, which
promise 1 now says. Tokens come from one's own party's nodes only.
- A list of attacks, each with what happens and how it is tested.
Diffstat (limited to 'src/simtest/policy.rs')
0 files changed, 0 insertions, 0 deletions
