pub struct DekEnvelope {
pub schema: String,
pub team_id: String,
pub recipient_pubkey: String,
pub age_ciphertext_b64: String,
pub delivered_at: DateTime<Utc>,
}Expand description
An age-encrypted DEK envelope. The server stores and returns this blob opaquely — it cannot decrypt it because it holds no private key material.
JSON schema: tsafe/collab-dek/v1
{
"schema": "tsafe/collab-dek/v1",
"team_id": "<uuid>",
"recipient_pubkey": "<age X25519 bech32 pubkey>",
"age_ciphertext_b64": "<base64(age-armored ciphertext of 32-byte DEK)>",
"delivered_at": "<ISO-8601 UTC>"
}Fields§
§schema: StringAlways "tsafe/collab-dek/v1".
team_id: StringThe team this envelope belongs to.
recipient_pubkey: StringThe age bech32 public key of the intended recipient.
age_ciphertext_b64: StringBase64-encoded age-armored ciphertext of the 32-byte DEK, encrypted to
recipient_pubkey. The server never decrypts this.
delivered_at: DateTime<Utc>UTC timestamp when the envelope was delivered to the server.
Implementations§
Trait Implementations§
Source§impl Clone for DekEnvelope
impl Clone for DekEnvelope
Source§fn clone(&self) -> DekEnvelope
fn clone(&self) -> DekEnvelope
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 DekEnvelope
impl Debug for DekEnvelope
Source§impl<'de> Deserialize<'de> for DekEnvelope
impl<'de> Deserialize<'de> for DekEnvelope
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 DekEnvelope
impl RefUnwindSafe for DekEnvelope
impl Send for DekEnvelope
impl Sync for DekEnvelope
impl Unpin for DekEnvelope
impl UnsafeUnpin for DekEnvelope
impl UnwindSafe for DekEnvelope
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