diff options
| author | tv <tv@krebsco.de> | 2026-11-16 21:51:45 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-16 23:07:40 +0100 |
| commit | 0aa00a855bd8d93f4ac2c04ef0fe23b846831bbc (patch) | |
| tree | 29f9e2300f144e2209ca609674dfda657db72b89 /Cargo.toml | |
| parent | 9d9292ae5570cc4be6b68cd3eda92e80893bc679 (diff) | |
continuum-party: a party's client of a federation
A second binary, behind the `federation` feature: a party's client, which signs its
party's events with one of its keys (`--key`, an OpenSSH private key file), puts them
through a node's API (`--node`, its user and password in the URL, or `--token`), and
keeps its party's record (`--record`), by which it votes, written before a vote is
sent (`federation::party`, run by `continuum::party`):
* `init PARTY` begins a record of `PARTY` on the version current now;
* `write PATH VALUE`, `keys KEY...`, `nodes NODE...` and `propose FILE` sign events on
the node's heads, recorded, and put;
* `vote PROPOSAL yes|no` votes on the proposal of that hash on the current version, by
the record: with a `true`, the votes on its party's earlier proposal, from the node,
checked, kept as the nays that freed it;
* `again` signs again, of the latest event it signed at each place, its key set and its
node list, what the node refuses as not above its checkpoint's heads, or as built on
one it refuses;
* `twice RECORD...` names, from the records of parties' clients, a party that voted
twice.
The feature brings reqwest along, the client's HTTP.
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -6,17 +6,22 @@ edition = "2024" # The transports are features, none of them default: a build has those it names, at # least one (`--features mycelium`, `--features libp2p,tor`, ...). # The node is a library (`src/lib.rs`), which the binaries use: the node itself -# (`src/main.rs`). Its doc comments are prose, not examples to test. +# (`src/main.rs`), and a party's client of a federation (`src/bin/continuum-party.rs`). +# Its doc comments are prose, not examples to test. [lib] doctest = false +[[bin]] +name = "continuum-party" +required-features = ["federation"] + [features] tokio-console = ["dep:console-subscriber"] # A dashboard of the node and a map of the swarm in the HTTP API (`/admin/dashboard`). dashboard = [] # The federation (`docs/federation.md`) and the store it is built on (`docs/store.md`), # stage by stage: without it, continuum builds and behaves as it does. -federation = [] +federation = ["dep:reqwest", "dep:rustls"] # The Mycelium transport (`--mycelium-enable`): through a Mycelium daemon's API, one it # supervises or one running elsewhere. mycelium = ["dep:reqwest", "dep:rustls", "dep:libc"] |
