Rename the binary to allmende, add a Makefile with Bonn as default region

- cmd/node -> cmd/allmende; usage, messages and docs use the new name
- Makefile: build, init, run (REGION defaults to u1j, Bonn), vet, test,
  web, web-test, check, clean

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 20:49:55 +01:00
co-authored by Claude Sonnet 5.5
parent d021989f09
commit 19fea7f524
8 changed files with 60 additions and 25 deletions
+6 -6
View File
@@ -44,7 +44,7 @@ revoked. There are no accounts.
because on a new machine the owner has only the phrase and does not know
the old device's key. The replacement device is enrolled at the same
instant (`issued_at == revoked_at`), which stays valid.
- **Recovery** (`node recover`): phrase in, all-devices revocation out, fresh
- **Recovery** (`allmende recover`): phrase in, all-devices revocation out, fresh
device enrolled, the node's own listings re-signed (`seq + 1`) from the new
device. The same command renews the yearly certificate.
- **Peer IDs change on recovery** because the device key is the libp2p
@@ -321,7 +321,7 @@ text rules below are enforced by endpoints.
carry `last_dir`, `needs_reply`, a text `preview` (empty for hidden messages),
`effort` (proof-of-work bits of the first message) and `grant_until`.
- **Owner login.** The page itself never contains the admin token (every node
serves the same page, including public gateways). `node run` prints a link
serves the same page, including public gateways). `allmende run` prints a link
`http://127.0.0.1:8080/#/login/<token>` to the terminal, not to its log. The
token is in the URL fragment, which a browser never sends to a server; the
page moves it into `sessionStorage` (so closing the tab signs out), removes it
@@ -404,12 +404,12 @@ needed to change the UI (`cd web && npm ci && npm run build`).
- The node mines the proof-of-work while the request is open, so the form
shows a "publishing" state for a few seconds.
## Running a node (`cmd/node`)
## Running a node (`cmd/allmende`)
```
node init # create identity, show the 12-word phrase (once)
node run --region u1x [--bootstrap <addr>] # replicate a region, serve the API on 127.0.0.1:8080
node recover # restore from the phrase; also yearly cert renewal
allmende init # create identity, show the 12-word phrase (once)
allmende run --region u1x [--bootstrap <addr>] # replicate a region, serve the API on 127.0.0.1:8080
allmende recover # restore from the phrase; also yearly cert renewal
```
## Spam