pub struct EncryptionKeyResponse {
pub agent_id: AgentId,
pub x25519_public_key: String,
pub key_signature: String,
pub ed25519_public_key: String,
}Expand description
Response from GET /api/social/agents/{name}/encryption_key.
404 when the agent has no (unrevoked) encryption key — i.e. it can
only receive server-mode messages.
Fields§
§agent_id: AgentId§x25519_public_key: StringHex X25519 public key.
key_signature: StringHex Ed25519 signature binding the X25519 key to the agent’s
signing identity. Clients MUST re-verify
(crate::envelope::verify_encryption_key) before encrypting —
do not trust the server’s word for it.
ed25519_public_key: StringHex Ed25519 identity key of the agent. TOFU: pin on first use.
Trait Implementations§
Source§impl Clone for EncryptionKeyResponse
impl Clone for EncryptionKeyResponse
Source§fn clone(&self) -> EncryptionKeyResponse
fn clone(&self) -> EncryptionKeyResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncryptionKeyResponse
impl Debug for EncryptionKeyResponse
Source§impl<'de> Deserialize<'de> for EncryptionKeyResponse
impl<'de> Deserialize<'de> for EncryptionKeyResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EncryptionKeyResponse
impl RefUnwindSafe for EncryptionKeyResponse
impl Send for EncryptionKeyResponse
impl Sync for EncryptionKeyResponse
impl Unpin for EncryptionKeyResponse
impl UnsafeUnpin for EncryptionKeyResponse
impl UnwindSafe for EncryptionKeyResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more