Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Groups

A group is a communication context defined by a shared symmetric key. Possession of the group key grants membership and enables two distinct roles in UMSH:

  • Multicast—any node that possesses the group key can send and receive packets addressed to the group.
  • Group unicast—the group key conceals both sender and destination addresses on the wire, while the payload itself is protected end-to-end using combined keys that require both the group key and the pairwise shared secret. The group serves as a metadata-concealment layer; the payload is readable only by the intended recipient, not by all group members. See Group Unicast Packet and Group Unicast Address Encryption for details.

In both cases, the group key is the membership credential—possessing it is both necessary and sufficient to participate.

Group Keys

A group key is a 32-byte symmetric key. It serves as the root secret from which encryption, authentication, and identification keys are derived (see Multicast Packet Keys).

How a node obtains a group key depends on the type of group—see Joining a Group below.

Group ID and Group Hint

Each group has a 32-byte group ID derived from the group key. Packets carry only its first 2 bytes, the group hint, a compact value that allows receivers to quickly identify candidate groups without attempting decryption with every configured key. Like destination hints, it is not cryptographically authoritative—collisions are possible and must be resolved by attempting cryptographic verification. Where a collision cannot be tolerated, the first 16 bytes of the group ID, the short group ID, name a group to a management interface without disclosing the key.

Encrypted and Unencrypted Modes

Group packets (multicast and group unicast) may be sent with or without encryption, controlled by the E flag in the Security Control Field.

  • Encrypted (E=1): The source address is encrypted together with the payload, concealing the sender’s identity from observers who do not possess the group key. Only group members can recover the source address and payload. See Encrypted Multicast for the packet layout.

  • Unencrypted (E=0): The source address and payload appear in cleartext, but the packet is still authenticated with a MIC derived from the group key. This mode is useful for amateur radio operation or other contexts where encryption is not permitted. See Unencrypted Multicast for the packet layout.

Multi-Hop Delivery

Group packets are delivered via flood forwarding, bounded by the optional flood hop count field. Repeaters forward these packets according to the standard forwarding procedure, including duplicate suppression, signal-quality filtering, and region-scoped flooding.

Sender Authentication

Multicast authentication is based on the shared group key, not on individual sender identity. The MIC proves that the sender possesses the group key, but any group member can construct a valid packet with any claimed source address. This is a fundamental property of symmetric-key multicast—see Multicast Sender Authentication for further discussion.

A signed multicast (the SCF’s D bit set) is the exception. Its frame signature attributes the packet to the key that signed it, and is bound to the group through the group ID, so it cannot be moved to another group that shares its group hint. A multicast whose signature does not verify is no more attributable than an unsigned one.

Group unicast payloads are additionally authenticated using pairwise keys derived from the sender and recipient’s key agreement, so only the true sender can produce a valid payload and only the intended recipient can verify it.

Joining a Group

UMSH supports three models for group membership, from simplest to most capable.

Public Groups

A group key may be derived from a human-readable name rather than distributed as a raw key. Such a public group is shared as a umsh:gs: URI (see URI Formats):

umsh:gs:Public

Anyone who knows the name can derive the key and participate. Long, high-entropy names may provide practical obscurity, but this should not be treated as strong secrecy.

The group key is derived from the name using HKDF-Extract:

group_key = HKDF-Extract-SHA256(salt = "UMSH-CHANNEL-V1", ikm = canonical_name)

Where canonical_name is the canonicalized name portion of the umsh:gs: URI (everything after umsh:gs:). Canonicalization is defined as follows:

  1. Percent-decode the name portion of the URI.
  2. The decoded name MUST consist only of ASCII characters (letters, digits, and symbols). Non-ASCII (multi-byte UTF-8) names are not currently supported and MUST be rejected. Any character that is not URI-safe is carried through percent-encoding in the URI and recovered by step 1.
  3. Fold ASCII letters A–Z to lowercase a–z. No other characters are altered.
  4. Encode the result as an ASCII byte string; this is canonical_name.

For example, given umsh:gs:Public, the input to canonicalization is Public, which folds to public, and the key is derived over the bytes of public. Because folding is applied before derivation, umsh:gs:Public, umsh:gs:public, and umsh:gs:PUBLIC all derive the same group key. The output is a 32-byte pseudorandom key that serves as the group key. This key then flows through the standard Multicast Packet Keys derivation to produce K_enc and K_mic.

Note

Case-folding is restricted to ASCII deliberately. Correct case-folding of the full Unicode range is non-trivial (locale-dependent, with characters that fold to multiple code points), so UTF-8 group names are deferred to a future revision. Note that percent-encoding does not provide a workaround: canonicalization operates on the decoded name, so a percent-encoded non-ASCII name still decodes to non-ASCII and is rejected. A group that wants a non-ASCII display name should be a private group (umsh:gk:) with an explicit key and carry the display name as a URI parameter.

HKDF-Extract is appropriate here because a public group’s name is not a secret—it is public input keying material, not a password. Password-based KDFs (PBKDF2, Argon2) would add computational cost without meaningful security benefit, since the name is assumed to be known to all participants.

Private Groups

For groups that require real secrecy, the group key is distributed out-of-band—via QR codes, umsh:gk: URIs (see URI Formats), or any other secure means (including in-band exchange over an existing authenticated unicast session). Anyone who possesses the key is a member; there is no central authority and no mechanism to revoke membership without changing the key for everyone.

Managed Groups

A managed group is administered by a designated managing node that controls membership. Unlike public and private groups, a managed group supports adding and removing individual members without requiring all remaining members to re-join manually.

Note: The specific wire formats and MAC commands for managed group operations (join requests, key distribution, rotation signaling) are not yet defined. The MAC layer itself is unaffected—managed groups use the same multicast packet format and cryptographic processing as any other group.

To join a managed group, a node provides its public key to the managing node—either out-of-band or via an in-band join request that the manager can accept or deny. Once accepted, the new member receives the current group key and group metadata from the managing node.

The managing node periodically rotates the group key. When a key rotation occurs, each current member receives the new key along with the time at which it becomes active, allowing a coordinated switchover. Because the group ID and group hint are derived from the group key, a key rotation also changes both; the application layer masks this from the user so the group appears to be the same.

To remove a member, the managing node distributes a new key to all members except the excluded node. The excluded node still holds the old key but cannot decrypt traffic encrypted under the new one.

Members that are offline during a key rotation can request the current key from the managing node when they reconnect.

Default Groups

Implementations should recognize two well-known public groups with specific behavior requirements.

The Public Group

The Public group (derived from umsh:gs:public) carries the default flooded Group Chat. It provides a shared communication space analogous to an open town square—any node that knows the name can participate.

  • Maximum flood hops: 10.
  • Traffic may be encrypted (E=1), but the key is known so this doesn’t really offer privacy.
  • Group unicast in this group carries only Group Chat repair: a sender MUST NOT send any group unicast in it other than a resend request carrying the Group Resend flag. The group key conceals nothing, so one-to-one traffic uses unicast.
  • A member that holds only a sender’s source hint can learn the sender’s key, to message it directly or to request repair, with an Identity Request multicast to the group. A key learned this way belongs to a node that answers to the hint, which need not be the node that sent the message.
  • A node that sends chat messages in this group with its source hint SHOULD answer an Identity Request multicast to this group whose only hint filter is one 3-byte FILTER_NODE_HINT naming it, including one from an unknown source, subject to the rate bound on unauthenticated requests in Identity Request.

EMERGENCY

The emergency group (written EMERGENCY here for emphasis, but derived from umsh:gs:emergency after the ASCII case-folding described in Public Groups, so umsh:gs:EMERGENCY and umsh:gs:emergency derive the same key) is reserved for emergency communications. Repeaters should prioritize forwarding packets in this group.

  • Maximum flood hops: 10.
  • Chat messages must not be encrypted—all emergency traffic must be readable by any node in range, including nodes that have not explicitly joined the group.
  • Chat messages must include the full source key (S=1).
  • Every multicast carrying text-message traffic in this group must be signed (the SCF’s D bit, see Frame Signatures). This includes resend responses to the group and Message Unavailable responses. Resend requests and one-to-one repairs travel by group unicast, which already authenticates the sender pairwise, and are not signed.
  • Messages that do not meet all three requirements (unencrypted, full source key, signed) must not be accepted or displayed by the user interface. A multicast whose signature does not verify does not meet them.
  • A node MUST NOT participate in this group unless its user has agreed to the emergency-use dialog—an explicit prompt affirming that the traffic concerns an emergency—and has taken part in the conversation. Every transmission a user initiates in the group, including reactions, edits, deletions, resends, and repair requests, waits on that agreement. Traffic a node sends without a user action comes only from a node that has itself sent in the conversation: automatic repair requires a recent message of its own, and a resend request is answered only for an ID the node assigned.

These requirements ensure that emergency traffic is universally readable, attributable to a specific node, and cryptographically authenticated against impersonation.

Text messages beginning with TEST: are test messages, which raise no alert by default.

Payload Reuse

Application-layer group communication reuses the same payload types as unicast. For example, Group Chat uses the same text message and chat room payload formats as direct messaging. However, not all application types are valid over multicast—see Payload Types for compatibility.