pub struct AssetManifest {
pub core: ManifestCore,
pub device_sig: HybridSignature,
pub write_sig: HybridSignature,
}Expand description
A signed asset manifest: a ManifestCore plus its two hybrid signatures.
Fields§
§core: ManifestCoreThe signed core.
device_sig: HybridSignatureHybrid signature by the uploading device’s DSK (provenance).
write_sig: HybridSignatureHybrid signature under the epoch write-tier key (authorization).
Implementations§
Source§impl AssetManifest
impl AssetManifest
Sourcepub fn signing_bytes(&self) -> Vec<u8> ⓘ
pub fn signing_bytes(&self) -> Vec<u8> ⓘ
The canonical bytes both signatures cover.
Sourcepub fn structural_ok(&self) -> bool
pub fn structural_ok(&self) -> bool
Structural well-formedness independent of any key:
prior_provenance_hashis null iff the action iscreate;retention_untilis set only fordelete;wrapped_file_keyis present iffkey_mode = wrapped;metadata_blob_hashis present iff the action binds a metadata blob (Action::binds_metadata_blob—create | replace | metadata-update).
The first two are mirrored by the server envelope; the wrapped-key rule is the
signature-visible presence rule for an adopted web-upload drop, enforced here at
verify_asset. The metadata_blob_hash presence-by-action rule is enforced
because the Workspace populates the field per the sealing order, so verify_asset
can require its presence exactly on the
metadata-bearing actions and its absence on the other four. The server mirrors the
value half key-free at invariant 25
(check_metadata_blob_envelope).
Trait Implementations§
Source§impl Clone for AssetManifest
impl Clone for AssetManifest
Source§fn clone(&self) -> AssetManifest
fn clone(&self) -> AssetManifest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AssetManifest
impl Debug for AssetManifest
Source§impl<'de> Deserialize<'de> for AssetManifest
impl<'de> Deserialize<'de> for AssetManifest
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>,
impl Eq for AssetManifest
Source§impl PartialEq for AssetManifest
impl PartialEq for AssetManifest
Source§fn eq(&self, other: &AssetManifest) -> bool
fn eq(&self, other: &AssetManifest) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for AssetManifest
impl Serialize for AssetManifest
impl StructuralPartialEq for AssetManifest
Auto Trait Implementations§
impl Freeze for AssetManifest
impl RefUnwindSafe for AssetManifest
impl Send for AssetManifest
impl Sync for AssetManifest
impl Unpin for AssetManifest
impl UnsafeUnpin for AssetManifest
impl UnwindSafe for AssetManifest
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
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
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>
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>
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