pub struct DropDescriptor {
pub content_type: String,
pub plaintext_size: u64,
pub chunk_size: u32,
pub nonce_prefix: [u8; 7],
pub ciphertext_hash: Hash32,
pub kem_ct: Vec<u8>,
pub suggested_filename: Option<String>,
}Expand description
The unsigned descriptor a guest uploads beside the sealed ciphertext. Deliberately
not an AssetManifest: no signatures, no album_id, no provenance link. Its
integrity is established only when a trusted client decapsulates K and the STREAM
tags verify.
Fields§
§content_type: StringClosed enum for the link’s pinned protocol_version (same set as a manifest’s).
plaintext_size: u64Total plaintext byte length.
chunk_size: u32The STREAM plaintext chunk size (owned by Encryption).
nonce_prefix: [u8; 7]The STREAM nonce prefix used for this seal.
ciphertext_hash: Hash32Content-address digest of the STREAM ciphertext.
kem_ct: Vec<u8>K encapsulated to the link’s Drop Key; length fixed by crypto_suite_id.
suggested_filename: Option<String>Guest-supplied, unverified; advisory only.
Trait Implementations§
Source§impl Clone for DropDescriptor
impl Clone for DropDescriptor
Source§fn clone(&self) -> DropDescriptor
fn clone(&self) -> DropDescriptor
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 DropDescriptor
impl Debug for DropDescriptor
Source§impl<'de> Deserialize<'de> for DropDescriptor
impl<'de> Deserialize<'de> for DropDescriptor
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
impl Eq for DropDescriptor
Source§impl PartialEq for DropDescriptor
impl PartialEq for DropDescriptor
Source§fn eq(&self, other: &DropDescriptor) -> bool
fn eq(&self, other: &DropDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DropDescriptor
impl Serialize for DropDescriptor
impl StructuralPartialEq for DropDescriptor
Auto Trait Implementations§
impl Freeze for DropDescriptor
impl RefUnwindSafe for DropDescriptor
impl Send for DropDescriptor
impl Sync for DropDescriptor
impl Unpin for DropDescriptor
impl UnsafeUnpin for DropDescriptor
impl UnwindSafe for DropDescriptor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more