Documentation
¶
Overview ¶
Package agentauth defines the byte-exact wire format used by the gRPC agent authentication handshake. Both the agent (signer) and the agent server (verifier) depend on this package to guarantee they agree on the payload structure — touch one side without the other and the handshake stops working.
Index ¶
Constants ¶
const SignPayloadSize = 56
SignPayloadSize is the fixed length of the agent auth signing payload. nonce(32) || agent_uuid_bytes(16) || timestamp_be64(8) = 56 bytes.
Variables ¶
var ErrInvalidUUID = errors.New("invalid uuid: expected 32 hex chars after stripping dashes")
ErrInvalidUUID is returned when a UUID-like string cannot be decoded to 16 bytes.
Functions ¶
func BuildSignPayload ¶
BuildSignPayload constructs the byte-exact payload that the agent signs and the server verifies during the Push stream auth handshake. Layout: nonce(32) || uuid_bytes(16) || timestamp_be64(8).
func UUIDToBytes ¶
UUIDToBytes decodes a UUID-like hex string (with or without dashes) into 16 raw bytes.
Types ¶
This section is empty.