Expand description
§DM Pairing Protocol
Implements a challenge-response device pairing protocol for authenticated direct-message communication between the agent and trusted devices.
The flow:
- Device requests pairing via
PairingManager::create_challenge. - Agent presents a challenge (nonce) to the user.
- Device computes an HMAC response over the nonce using the shared secret.
- Agent verifies the response via
PairingManager::verify_response. - On success the device is added to the paired-devices list.
Structs§
- Device
Identity - Identity of a paired device.
- Pairing
Challenge - A challenge issued to a device during the pairing flow.
- Pairing
Manager - Manages the device pairing lifecycle: challenge creation, verification, device listing, and revocation.
- Pairing
Response - A device’s response to a pairing challenge.
- Totp
Verifier - TOTP-style code generator and verifier (time-based one-time password).
Enums§
- Pairing
Result - Outcome of a pairing attempt.