From 0aa00a855bd8d93f4ac2c04ef0fe23b846831bbc Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 21:51:45 +0000 Subject: 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. --- Cargo.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index ed08f98..e4ba66c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] -- cgit v1.3.1