Struct miden_objects::crypto::merkle::RootPath
source · pub struct RootPath {
pub root: RpoDigest,
pub path: MerklePath,
}Expand description
A container for a MerklePath and its crate::Word root.
This structure does not provide any guarantees regarding the correctness of the path to the root. For more information, check MerklePath::verify.
Fields§
§root: RpoDigestThe node value opening for path.
path: MerklePathThe path from value to root (exclusive).
Trait Implementations§
source§impl Deserializable for RootPath
impl Deserializable for RootPath
source§fn read_from<R>(source: &mut R) -> Result<RootPath, DeserializationError>where
R: ByteReader,
fn read_from<R>(source: &mut R) -> Result<RootPath, DeserializationError>where
R: ByteReader,
Reads a sequence of bytes from the provided
source, attempts to deserialize these bytes
into Self, and returns the result. Read moresource§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
source§impl PartialEq for RootPath
impl PartialEq for RootPath
source§impl Serializable for RootPath
impl Serializable for RootPath
source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes
self into bytes and writes these bytes into the target.source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self. Read more
impl Eq for RootPath
impl StructuralPartialEq for RootPath
Auto Trait Implementations§
impl Freeze for RootPath
impl RefUnwindSafe for RootPath
impl Send for RootPath
impl Sync for RootPath
impl Unpin for RootPath
impl UnwindSafe for RootPath
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)