aboutsummaryrefslogtreecommitdiffstats
path: root/docs/guides
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-19 19:00:05 +0000
committertv <tv@krebsco.de>2026-11-19 20:13:16 +0100
commitc66f0f8f7297484e095e02d259c84469b6c42367 (patch)
treebb12683c006ef734689deb0fbe7bad40edc04dc8 /docs/guides
parent2a8575ce6562e1579f9c9bd9c9964e3ef36d08f1 (diff)
continuum node-id: a node key's ID, without starting the node
The founders name each node by its ID in the first version, before the federation starts; getting it meant starting a node once with --node-key-create and reading its log. `continuum node-id FILE` prints the node ID of the key FILE holds and exits, `--create` making the key there first where there is none (saying so on standard error). Logs are off for it, as for --print-config: the ID goes to standard output alone.
Diffstat (limited to 'docs/guides')
-rw-r--r--docs/guides/federation/getting-started.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/guides/federation/getting-started.md b/docs/guides/federation/getting-started.md
index fb4c791..d148672 100644
--- a/docs/guides/federation/getting-started.md
+++ b/docs/guides/federation/getting-started.md
@@ -32,14 +32,14 @@ Here one key does everything a party signs.
## A node for each party
Each node needs its node key, a user of its API, and its node ID, which the first
-version names before the federation starts. A node makes its key with
-`--node-key-create` and logs its ID before anything else (`Node identity`): start it so
-once, with nothing of a swarm, and stop it.
+version names before the federation starts. `continuum node-id` makes the key and says
+the ID, without starting the node:
```sh
+continuum node-id --create node.key
+# a new node key in node.key: a new node
+# continuum:5be1…
printf '%s' 'secret' | argon2 "$(openssl rand -hex 16)" -id -e | sed 's/^/tv:/' > htpasswd
-continuum --node-key-file node.key --node-key-create --htpasswd htpasswd --mycelium-enable
-# INFO Created a new node key: this is a new node node_id=continuum:5be1…
```
## The first version