Module identity_responder

Module identity_responder 

Source
Expand description

Built-in responder for the Identity Request MAC command.

When enabled on a LocalNode, the node answers a matching Identity Request with a targeted authenticated unicast carrying its own NodeIdentityPayload, echoing any request NONCE into identity option 5. Responses are never signed and never fall back to broadcast: the pairwise MIC, frame counter, and echoed nonce already make the reply authentic and fresh, and a request whose source cannot be resolved to a key is simply dropped by the MAC before the responder ever runs.

The application supplies a NodeIdentityProfile (its role, capabilities, and descriptive fields) and, optionally, a respond policy — a registerable discriminator that inspects the IdentityRequestContext and decides whether, and how, to answer (e.g. “known peers only”, “only on a given channel”, “repeater → always”). No signing key is required.

Structs§

IdentityRequestContext
Reception context for an incoming Identity Request, handed to the respond policy so it can decide whether — and how — to answer.
NodeIdentityProfile
This node’s own identity, used to answer Identity Requests.

Enums§

RespondDecision
A respond policy’s verdict for one Identity Request.

Functions§

default_respond_policy
The default respond policy: answer every request that reached the policy.
never_respond_policy
A respond policy that answers nothing.

Type Aliases§

RespondPolicy
A registerable respond policy: given the request context, decide the verdict.