pub struct DiskArtifacts {
pub ciphertext: Vec<u8>,
pub proof_b64: String,
pub chunk_lens: Vec<u32>,
}Expand description
The verifiable artifacts of an rpc-path fetch — enough to RE-VERIFY the bytes from scratch against the URN’s root. Persisted to the disk cache so a disk hit is re-verified (never trusted blindly).
Fields§
§ciphertext: Vec<u8>The served ciphertext (raw bytes).
proof_b64: StringThe base64 merkle inclusion proof.
chunk_lens: Vec<u32>Per-chunk ciphertext byte lengths (empty ⇒ single chunk).
Trait Implementations§
Source§impl Clone for DiskArtifacts
impl Clone for DiskArtifacts
Source§fn clone(&self) -> DiskArtifacts
fn clone(&self) -> DiskArtifacts
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 DiskArtifacts
impl Debug for DiskArtifacts
Source§impl<'de> Deserialize<'de> for DiskArtifacts
impl<'de> Deserialize<'de> for DiskArtifacts
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 DiskArtifacts
Source§impl PartialEq for DiskArtifacts
impl PartialEq for DiskArtifacts
Source§impl Serialize for DiskArtifacts
impl Serialize for DiskArtifacts
impl StructuralPartialEq for DiskArtifacts
Auto Trait Implementations§
impl Freeze for DiskArtifacts
impl RefUnwindSafe for DiskArtifacts
impl Send for DiskArtifacts
impl Sync for DiskArtifacts
impl Unpin for DiskArtifacts
impl UnsafeUnpin for DiskArtifacts
impl UnwindSafe for DiskArtifacts
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