pub struct GroupContext {
pub fabric_index: FabricIndex,
pub group: GroupId,
pub source: NodeId,
pub from: PeerAddr,
pub session_id: u16,
pub key_set: KeySetId,
}rustcrypto only.Expand description
§4.16.1’s Groupcast Session Context: what a group message carries in place of a session.
Together, Fabric Index, Group ID and Source Node ID comprise a unique identifier that upper layers may use to understand the source and destination of groupcast messages.
Built fresh on every message — “on ingress of each groupcast message, the following ephemeral context SHALL be constructed” — because a group session is not a thing that is established, only a membership that happens to still hold.
Fields§
§fabric_index: FabricIndex“the local Fabric Index for the Fabric to which an incoming message’s group is scoped”.
group: GroupId“the Group ID to which a groupcast message was sent”.
source: NodeId“The Source Node ID enclosed by the sender of a groupcast message.”
from: PeerAddrThe unicast address the datagram came from, which is where an mcsp request goes —
“as are required for the Message Counter Synchronization Protocol”.
session_id: u16§4.17.3.6’s Group Session ID the message named.
key_set: KeySetIdWhich key set the key that authenticated it belongs to.