Struct commit_verify::multi_commit::MultiCommitBlock [−][src]
pub struct MultiCommitBlock { pub commitments: Vec<MultiCommitItem>, pub entropy: Option<u64>, }
Expand description
Multi-message commitment data according to LNPBP-4 specification.
To create commitment use [TryCommitVerify::try_commit
] method.
Fields
commitments: Vec<MultiCommitItem>
Expand description
Array of commitment items (see MultiCommitItem
)
entropy: Option<u64>
Expand description
Entropy used for placeholders. May be unknown if the message is not
constructed via [TryCommitVerify::try_commit
] method but is provided
by a third-party, whishing to conceal that information.
Trait Implementations
impl Clone for MultiCommitBlock
[src]
impl Clone for MultiCommitBlock
[src]fn clone(&self) -> MultiCommitBlock
[src]
fn clone(&self) -> MultiCommitBlock
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl CommitEncode for MultiCommitBlock
[src]
impl CommitEncode for MultiCommitBlock
[src]impl ConsensusCommit for MultiCommitBlock
[src]
impl ConsensusCommit for MultiCommitBlock
[src]type Commitment = MultiCommitment
type Commitment = MultiCommitment
Type of the resulting commitment
fn consensus_commit(&self) -> Self::Commitment
[src]
fn consensus_commit(&self) -> Self::Commitment
[src]Performs commitment to client-side-validated data
fn consensus_verify(&self, commitment: &Self::Commitment) -> bool
[src]
fn consensus_verify(&self, commitment: &Self::Commitment) -> bool
[src]Verifies commitment to client-side-validated data
impl Debug for MultiCommitBlock
[src]
impl Debug for MultiCommitBlock
[src]impl Default for MultiCommitBlock
[src]
impl Default for MultiCommitBlock
[src]fn default() -> MultiCommitBlock
[src]
fn default() -> MultiCommitBlock
[src]Returns the “default value” for a type. Read more
impl Hash for MultiCommitBlock
[src]
impl Hash for MultiCommitBlock
[src]impl Ord for MultiCommitBlock
[src]
impl Ord for MultiCommitBlock
[src]impl PartialEq<MultiCommitBlock> for MultiCommitBlock
[src]
impl PartialEq<MultiCommitBlock> for MultiCommitBlock
[src]fn eq(&self, other: &MultiCommitBlock) -> bool
[src]
fn eq(&self, other: &MultiCommitBlock) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &MultiCommitBlock) -> bool
[src]
fn ne(&self, other: &MultiCommitBlock) -> bool
[src]This method tests for !=
.
impl PartialOrd<MultiCommitBlock> for MultiCommitBlock
[src]
impl PartialOrd<MultiCommitBlock> for MultiCommitBlock
[src]fn partial_cmp(&self, other: &MultiCommitBlock) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &MultiCommitBlock) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl StrictDecode for MultiCommitBlock
[src]
impl StrictDecode for MultiCommitBlock
[src]impl StrictEncode for MultiCommitBlock
[src]
impl StrictEncode for MultiCommitBlock
[src]impl Eq for MultiCommitBlock
[src]
impl StructuralEq for MultiCommitBlock
[src]
impl StructuralPartialEq for MultiCommitBlock
[src]
Auto Trait Implementations
impl RefUnwindSafe for MultiCommitBlock
impl Send for MultiCommitBlock
impl Sync for MultiCommitBlock
impl Unpin for MultiCommitBlock
impl UnwindSafe for MultiCommitBlock
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more