pub struct MpcProof {
pub protocol_id: ProtocolId,
pub commitment: Hash,
pub branch: Vec<MerkleBranchNode>,
pub leaf_index: usize,
}Expand description
Merkle branch proof for a specific protocol’s inclusion
Fields§
§protocol_id: ProtocolIdProtocol being proven
commitment: HashCommitment being proven
branch: Vec<MerkleBranchNode>Merkle branch (sibling hashes from leaf to root)
leaf_index: usizePosition of the leaf (0-indexed)
Implementations§
Trait Implementations§
impl Eq for MpcProof
impl StructuralPartialEq for MpcProof
Auto Trait Implementations§
impl Freeze for MpcProof
impl RefUnwindSafe for MpcProof
impl Send for MpcProof
impl Sync for MpcProof
impl Unpin for MpcProof
impl UnsafeUnpin for MpcProof
impl UnwindSafe for MpcProof
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