pub struct ContentChunk {
pub ciphertext: String,
pub root: HexId,
pub complete: bool,
pub next_offset: Option<u64>,
pub inclusion_proof: Option<String>,
pub chunk_lens: Option<Vec<u64>>,
pub source: Option<String>,
pub total_length: Option<u64>,
pub length: Option<u64>,
pub offset: Option<u64>,
pub program_hash: Option<HexId>,
}Expand description
One window of a resource’s ciphertext — the chunk wire object.
Serves BOTH the node profile (dig.getContent on the local dig-node) and the
network profile (rpc.dig.net). Node-profile responses omit the
network-profile-only fields; the doc on each field says which profile
populates it.
Fields§
§ciphertext: StringThis window’s bytes, base64. Both profiles.
root: HexIdThe resolved generation root (64-hex). Both profiles.
complete: boolWhether this window ends the resource. Both profiles.
next_offset: Option<u64>The next offset; present iff not complete. Both profiles.
inclusion_proof: Option<String>Whole-resource merkle proof, base64. First window only (offset == 0).
Both profiles.
chunk_lens: Option<Vec<u64>>Per-chunk ciphertext lengths of the full resource. First window only; empty ⇒ single chunk. Both profiles.
source: Option<String>Where the window was served from: "local" (this device’s cache) or
"remote" (freshly fetched). Node profile only — additive tag the
in-process node sets; absent on the network profile.
total_length: Option<u64>The full resource ciphertext length (pre-windowing). Network profile only.
length: Option<u64>This window’s byte length. Network profile only (the node profile’s
length is implicit in ciphertext).
offset: Option<u64>The window start offset (echoed). Network profile only.
program_hash: Option<HexId>SHA-256(.dig bytes) — the on-chain program identity (64-hex).
Network profile only.
Trait Implementations§
Source§impl Clone for ContentChunk
impl Clone for ContentChunk
Source§fn clone(&self) -> ContentChunk
fn clone(&self) -> ContentChunk
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more