Struct commit_verify::mpc::MultiSource
source · pub struct MultiSource {
pub min_depth: u5,
pub messages: MessageMap,
pub static_entropy: Option<u64>,
}
Expand description
Structured source multi-message data for commitment creation
Fields§
§min_depth: u5
Minimal depth of the created LNPBP-4 commitment tree
messages: MessageMap
Map of the messages by their respective protocol ids
static_entropy: Option<u64>
Implementations§
source§impl MultiSource
impl MultiSource
pub fn with_static_entropy(static_entropy: u64) -> Self
Trait Implementations§
source§impl Clone for MultiSource
impl Clone for MultiSource
source§fn clone(&self) -> MultiSource
fn clone(&self) -> MultiSource
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 MultiSource
impl Debug for MultiSource
source§impl Default for MultiSource
impl Default for MultiSource
source§impl Hash for MultiSource
impl Hash for MultiSource
source§impl Ord for MultiSource
impl Ord for MultiSource
source§fn cmp(&self, other: &MultiSource) -> Ordering
fn cmp(&self, other: &MultiSource) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MultiSource
impl PartialEq for MultiSource
source§impl PartialOrd for MultiSource
impl PartialOrd for MultiSource
source§impl TryCommitVerify<MultiSource, UntaggedProtocol> for MerkleTree
impl TryCommitVerify<MultiSource, UntaggedProtocol> for MerkleTree
§Panics
Panics if the crate is compiled without rand
feature enabled and the
MultiSource doesn’t contain a static entropy.
source§type Error = Error
type Error = Error
Error type that may be reported during
TryCommitVerify::try_commit
.source§fn try_commit(source: &MultiSource) -> Result<Self, Error>
fn try_commit(source: &MultiSource) -> Result<Self, Error>
Tries to create commitment to a byte representation of a given message.
impl Eq for MultiSource
impl StructuralPartialEq for MultiSource
Auto Trait Implementations§
impl Freeze for MultiSource
impl RefUnwindSafe for MultiSource
impl Send for MultiSource
impl Sync for MultiSource
impl Unpin for MultiSource
impl UnwindSafe for MultiSource
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.