pub struct PathVerified {
pub tree_hash: Hash,
pub path: Vec<(Vec<u8>, EntryMode)>,
pub leaf_id: Hash,
pub signer: [u8; 32],
pub signature_valid: bool,
}Expand description
The result of walking and verifying a path from a commit’s
tree_hash down to a leaf.
Fields§
§tree_hash: HashThe commit’s (or remix’s) root tree id.
path: Vec<(Vec<u8>, EntryMode)>The authenticated path, root first: each entry’s (name, mode) —
never a caller-claimed path string. Callers compare this against
what they requested; this module never trusts a claimed path.
leaf_id: HashThe id of the object at the end of the path (tree_hash itself
when path is empty).
signer: [u8; 32]The commit/remix’s embedded Ed25519 public key.
signature_valid: boolWhether the commit/remix’s embedded signature verifies against
signer. Does not say anything about who signer belongs to
— that is application policy (see the module docs).
Trait Implementations§
Source§impl Clone for PathVerified
impl Clone for PathVerified
Source§impl Debug for PathVerified
impl Debug for PathVerified
impl Eq for PathVerified
Source§impl PartialEq for PathVerified
impl PartialEq for PathVerified
impl StructuralPartialEq for PathVerified
Auto Trait Implementations§
impl Freeze for PathVerified
impl RefUnwindSafe for PathVerified
impl Send for PathVerified
impl Sync for PathVerified
impl Unpin for PathVerified
impl UnsafeUnpin for PathVerified
impl UnwindSafe for PathVerified
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
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
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