pub struct ProofBundleSummary {
pub version: u64,
pub kind: ProofBundleKind,
pub root: Option<Cid>,
pub other_root: Option<Cid>,
pub key_count: usize,
pub path_node_count: usize,
pub start: Option<Vec<u8>>,
pub end: Option<Vec<u8>>,
pub after: Option<Vec<u8>>,
pub requested_end: Option<Vec<u8>>,
pub limit: Option<usize>,
pub has_lookahead: bool,
}Expand description
Lightweight metadata decoded from canonical proof bundle bytes.
This summary is intended for routing opaque proof bundles before a caller chooses the typed decoder. It validates bundle framing and root CID lengths, but it does not replace proof verification.
Fields§
§version: u64Bundle format version.
kind: ProofBundleKindProof bundle family.
root: Option<Cid>Root CID for single-root proofs, or the base root for diff-page proofs.
other_root: Option<Cid>Target/root CID for diff-page proofs. None for single-root proofs.
key_count: usizeNumber of requested keys encoded directly in the top-level proof.
path_node_count: usizeNumber of encoded proof nodes carried by the bundle, including nested range/lookahead proof nodes for diff-page proofs.
start: Option<Vec<u8>>Inclusive start bound for range proofs.
end: Option<Vec<u8>>Exclusive upper bound for range and range-page proofs.
after: Option<Vec<u8>>Exclusive lower cursor bound for range-page and diff-page proofs.
requested_end: Option<Vec<u8>>Original requested upper bound for diff-page proofs.
limit: Option<usize>Original page limit for diff-page proofs.
has_lookahead: boolWhether a diff-page proof carries continuation lookahead key proofs.
Implementations§
Trait Implementations§
Source§impl Clone for ProofBundleSummary
impl Clone for ProofBundleSummary
Source§fn clone(&self) -> ProofBundleSummary
fn clone(&self) -> ProofBundleSummary
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 ProofBundleSummary
impl Debug for ProofBundleSummary
impl Eq for ProofBundleSummary
Source§impl PartialEq for ProofBundleSummary
impl PartialEq for ProofBundleSummary
impl StructuralPartialEq for ProofBundleSummary
Auto Trait Implementations§
impl Freeze for ProofBundleSummary
impl RefUnwindSafe for ProofBundleSummary
impl Send for ProofBundleSummary
impl Sync for ProofBundleSummary
impl Unpin for ProofBundleSummary
impl UnsafeUnpin for ProofBundleSummary
impl UnwindSafe for ProofBundleSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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