Add nickname support to envelope protocol and update version to 0.1.1

This commit is contained in:
kc1awv
2025-12-30 09:43:18 -05:00
parent 3ad4010eae
commit f111cf545f
9 changed files with 126 additions and 6 deletions

View File

@@ -74,6 +74,21 @@ use a hub-local convention: if a client sends a `MSG`/`NOTICE` whose body is a
string beginning with `/`, and the command is recognized, the hub treats it as a
command and does not forward it.
Wire-level extensions (backwards-compatible):
- **Optional envelope nickname**: the hub may include an additional envelope key
`K_NICK = 7` (string) when forwarding `MSG`/`NOTICE`. This is an optional
hint associated with `K_SRC` so clients can display a human-friendly
nickname instead of only the sender identity hash.
The hub learns this value from the client's `HELLO` body key
`B_HELLO_NICK = 0` and treats it as the authoritative nickname for that
link. Clients should treat `K_NICK` as optional and fall back to `K_SRC`
when it is missing.
Nickname policy (current implementation): trimmed Unicode string, UTF-8
encodable on the wire, maximum 32 characters.
Configure trusted operators and banned identities in the TOML config:
- `trusted_identities`: list of Reticulum Identity hashes (hex) allowed to run