Struct floresta_chain::pruned_utreexo::udata::BatchProof
source · pub struct BatchProof {
pub targets: Vec<VarInt>,
pub hashes: Vec<BlockHash>,
}
Expand description
BatchProof serialization defines how the utreexo accumulator proof will be serialized both for i/o.
Note that this serialization format differs from the one from github.com/mit-dci/utreexo/accumulator as this serialization method uses varints and the one in that package does not. They are not compatible and should not be used together. The serialization method here is more compact and thus is better for wire and disk storage.
The serialized format is:
[
All together, the serialization looks like so: Field Type Size target count varint 1-8 bytes targets []uint64 variable hash count varint 1-8 bytes hashes []32 byte variable
Fields§
§targets: Vec<VarInt>
All targets that’ll be deleted
hashes: Vec<BlockHash>
The inner hashes of a proof
Trait Implementations§
source§impl Clone for BatchProof
impl Clone for BatchProof
source§fn clone(&self) -> BatchProof
fn clone(&self) -> BatchProof
Returns a copy of the value. Read more
1.0.0 · 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 BatchProof
impl Debug for BatchProof
source§impl Default for BatchProof
impl Default for BatchProof
source§fn default() -> BatchProof
fn default() -> BatchProof
Returns the “default value” for a type. Read more
source§impl PartialEq<BatchProof> for BatchProof
impl PartialEq<BatchProof> for BatchProof
source§fn eq(&self, other: &BatchProof) -> bool
fn eq(&self, other: &BatchProof) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BatchProof
impl StructuralEq for BatchProof
impl StructuralPartialEq for BatchProof
Auto Trait Implementations§
impl RefUnwindSafe for BatchProof
impl Send for BatchProof
impl Sync for BatchProof
impl Unpin for BatchProof
impl UnwindSafe for BatchProof
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