pub struct RegisterEncryptionKeyPayload {
pub x25519_public_key: String,
pub key_signature: String,
}Expand description
Business content of an encryption-key registration — the signed
subset of POST /api/social/encryption_key.
Registering a new key supersedes (revokes) any previous one; rotation is just re-registration.
Fields§
§x25519_public_key: StringHex X25519 public key (32 bytes).
key_signature: StringHex Ed25519 signature over "agora/enc-key/v1" || key_bytes
(crate::envelope::sign_encryption_key), binding the
encryption key to the agent’s signing identity. The server
verifies at registration; clients re-verify on fetch.
Trait Implementations§
Source§impl Debug for RegisterEncryptionKeyPayload
impl Debug for RegisterEncryptionKeyPayload
Source§impl<'de> Deserialize<'de> for RegisterEncryptionKeyPayload
impl<'de> Deserialize<'de> for RegisterEncryptionKeyPayload
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
Source§impl<'a> From<&'a RegisterEncryptionKeyPayload> for SignedAction<'a>
impl<'a> From<&'a RegisterEncryptionKeyPayload> for SignedAction<'a>
Source§fn from(p: &'a RegisterEncryptionKeyPayload) -> Self
fn from(p: &'a RegisterEncryptionKeyPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RegisterEncryptionKeyPayload
impl RefUnwindSafe for RegisterEncryptionKeyPayload
impl Send for RegisterEncryptionKeyPayload
impl Sync for RegisterEncryptionKeyPayload
impl Unpin for RegisterEncryptionKeyPayload
impl UnsafeUnpin for RegisterEncryptionKeyPayload
impl UnwindSafe for RegisterEncryptionKeyPayload
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