pub struct ReverseHashesOrder {}
Expand description
Serializes proof data to bytes with a reverse hash order - hashes are concatenated from top to bottom, right to left.
Trait Implementations§
source§impl MerkleProofSerializer for ReverseHashesOrder
impl MerkleProofSerializer for ReverseHashesOrder
source§fn serialize<T: Hasher>(proof: &MerkleProof<T>) -> Vec<u8> ⓘ
fn serialize<T: Hasher>(proof: &MerkleProof<T>) -> Vec<u8> ⓘ
Serialize data from
MerkleProof
into a binarysource§fn deserialize<T: Hasher>(bytes: &[u8]) -> Result<MerkleProof<T>, Error>
fn deserialize<T: Hasher>(bytes: &[u8]) -> Result<MerkleProof<T>, Error>
Deserialize data produced by
MerkleProofSerializer::serialize
back into MerkleProof
Auto Trait Implementations§
impl Freeze for ReverseHashesOrder
impl RefUnwindSafe for ReverseHashesOrder
impl Send for ReverseHashesOrder
impl Sync for ReverseHashesOrder
impl Unpin for ReverseHashesOrder
impl UnwindSafe for ReverseHashesOrder
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