pub struct UtreexoProof {
pub block_hash: BlockHash,
pub proof_hashes: Vec<BitcoinNodeHash>,
pub targets: Vec<u64>,
pub leaf_data: Vec<CompactLeafData>,
}Expand description
Represents a Utreexo proof for a specific block.
This message will be sent in response to a GetUtreexoProof request.
Fields§
§block_hash: BlockHashThe block hash for which the proof is provided.
proof_hashes: Vec<BitcoinNodeHash>The proof hashes for the requested inputs.
targets: Vec<u64>The targets for the requested inputs.
Targets are numerical values representing the positions of the UTXOs being spent inside the forest. Using the target positions and hashes, we can recompute the forest roots, and verify whether the proof is valid.
leaf_data: Vec<CompactLeafData>The leaf data for the requested inputs.
Trait Implementations§
Source§impl Clone for UtreexoProof
impl Clone for UtreexoProof
Source§fn clone(&self) -> UtreexoProof
fn clone(&self) -> UtreexoProof
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 UtreexoProof
impl Debug for UtreexoProof
Source§impl Decodable for UtreexoProof
impl Decodable for UtreexoProof
Auto Trait Implementations§
impl Freeze for UtreexoProof
impl RefUnwindSafe for UtreexoProof
impl Send for UtreexoProof
impl Sync for UtreexoProof
impl Unpin for UtreexoProof
impl UnwindSafe for UtreexoProof
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