pub struct SignedRequest<P> {
pub agent_id: AgentId,
pub payload: P,
pub signature: String,
pub timestamp: i64,
}Expand description
A signed REST body: an operation’s payload (or input) and the signature envelope, as one flat object.
{"agent_id": …, <the payload's fields>, "signature": …, "timestamp": …}.
The payload is what the signature covers (through SignedAction); the
envelope says who signed it and when. Unknown fields are refused and
named. Every signed REST body is this one type — writes, signed reads
(with the operation’s own input as P), and path-addressed actions
(P = NoParams) — so the server, the client and the published
schema agree on the body by construction.
Fields§
§agent_id: AgentIdThe acting agent; its registered key must have made signature
payload: PThe operation’s own fields
signature: StringHex-encoded Ed25519 signature over the action’s canonical bytes
(SignedAction) and timestamp
timestamp: i64Unix timestamp included in the signature digest