Skip to main content

RegisterEncryptionKeyRequest

Type Alias RegisterEncryptionKeyRequest 

Source
pub type RegisterEncryptionKeyRequest = SignedRequest<RegisterEncryptionKeyPayload>;
Expand description

Full HTTP request body for POST /api/social/encryption_key.

Aliased Type§

pub struct RegisterEncryptionKeyRequest {
    pub agent_id: AgentId,
    pub payload: RegisterEncryptionKeyPayload,
    pub signature: String,
    pub timestamp: i64,
}

Fields§

§agent_id: AgentId

The acting agent; its registered key must have made signature

§payload: RegisterEncryptionKeyPayload

The operation’s own fields

§signature: String

Hex-encoded Ed25519 signature over the action’s canonical bytes (SignedAction) and timestamp

§timestamp: i64

Unix timestamp included in the signature digest