pub struct ProximitySearchProof {
pub source: ProximityStructuralProof,
pub accelerator_root: Option<TypedContentRoot>,
pub accelerator_objects: Vec<TypedContentObject>,
pub request: ProximitySearchRequest,
pub request_commitment: Cid,
pub result: SearchResult,
pub events: Vec<ProximitySearchEvent>,
pub claim: ProximitySearchClaim,
}Expand description
Self-contained proof for native, PQ, or HNSW search replay.
Fields§
§source: ProximityStructuralProof§accelerator_root: Option<TypedContentRoot>§accelerator_objects: Vec<TypedContentObject>§request: ProximitySearchRequest§request_commitment: Cid§result: SearchResult§events: Vec<ProximitySearchEvent>§claim: ProximitySearchClaimImplementations§
Source§impl ProximitySearchProof
impl ProximitySearchProof
Sourcepub fn verify_for_source(
&self,
expected_descriptor: &Cid,
limits: &ContentGraphLimits,
) -> Result<ProximitySearchVerification, Error>
pub fn verify_for_source( &self, expected_descriptor: &Cid, limits: &ContentGraphLimits, ) -> Result<ProximitySearchVerification, Error>
Verify against a source descriptor CID already trusted by the caller.
Sourcepub fn verify(
&self,
limits: &ContentGraphLimits,
) -> Result<ProximitySearchVerification, Error>
pub fn verify( &self, limits: &ContentGraphLimits, ) -> Result<ProximitySearchVerification, Error>
Authenticate all supplied objects and deterministically replay the requested native or accelerator execution in an isolated store.
Trait Implementations§
Source§impl Clone for ProximitySearchProof
impl Clone for ProximitySearchProof
Source§fn clone(&self) -> ProximitySearchProof
fn clone(&self) -> ProximitySearchProof
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 ProximitySearchProof
impl Debug for ProximitySearchProof
Source§impl PartialEq for ProximitySearchProof
impl PartialEq for ProximitySearchProof
impl StructuralPartialEq for ProximitySearchProof
Auto Trait Implementations§
impl Freeze for ProximitySearchProof
impl RefUnwindSafe for ProximitySearchProof
impl Send for ProximitySearchProof
impl Sync for ProximitySearchProof
impl Unpin for ProximitySearchProof
impl UnsafeUnpin for ProximitySearchProof
impl UnwindSafe for ProximitySearchProof
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
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>
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