Struct commit_verify::mpc::ProtocolId
source · pub struct ProtocolId(_);Expand description
Source data for creation of multi-message commitments according to LNPBP-4 procedure.
Implementations§
source§impl ProtocolId
impl ProtocolId
pub fn from_slice(slice: &[u8]) -> Option<Self>
Trait Implementations§
source§impl AsRef<<ProtocolId as Wrapper>::Inner> for ProtocolId
impl AsRef<<ProtocolId as Wrapper>::Inner> for ProtocolId
source§impl Borrow<<ProtocolId as Wrapper>::Inner> for ProtocolId
impl Borrow<<ProtocolId as Wrapper>::Inner> for ProtocolId
source§impl Borrow<[u8]> for ProtocolId
impl Borrow<[u8]> for ProtocolId
source§impl Clone for ProtocolId
impl Clone for ProtocolId
source§fn clone(&self) -> ProtocolId
fn clone(&self) -> ProtocolId
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 CommitStrategy for ProtocolId
impl CommitStrategy for ProtocolId
source§impl Debug for ProtocolId
impl Debug for ProtocolId
source§impl Default for ProtocolId
impl Default for ProtocolId
source§fn default() -> ProtocolId
fn default() -> ProtocolId
Returns the “default value” for a type. Read more
source§impl Deref for ProtocolId
impl Deref for ProtocolId
source§impl<'de> Deserialize<'de> for ProtocolId
impl<'de> Deserialize<'de> for ProtocolId
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ProtocolId
impl Display for ProtocolId
source§impl From<ProtocolId> for Bytes32
impl From<ProtocolId> for Bytes32
source§fn from(wrapped: ProtocolId) -> Self
fn from(wrapped: ProtocolId) -> Self
Converts to this type from the input type.
source§impl FromHex for ProtocolId
impl FromHex for ProtocolId
source§fn from_byte_iter<I>(iter: I) -> Result<Self, Error>where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
fn from_byte_iter<I>(iter: I) -> Result<Self, Error>where I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
Produce an object from a byte iterator
source§impl FromStr for ProtocolId
impl FromStr for ProtocolId
source§impl Hash for ProtocolId
impl Hash for ProtocolId
source§impl Index<RangeFull> for ProtocolId
impl Index<RangeFull> for ProtocolId
source§impl Index<RangeInclusive<usize>> for ProtocolId
impl Index<RangeInclusive<usize>> for ProtocolId
source§impl Index<RangeToInclusive<usize>> for ProtocolId
impl Index<RangeToInclusive<usize>> for ProtocolId
source§impl Index<usize> for ProtocolId
impl Index<usize> for ProtocolId
source§impl LowerHex for ProtocolId
impl LowerHex for ProtocolId
source§impl Ord for ProtocolId
impl Ord for ProtocolId
source§fn cmp(&self, other: &ProtocolId) -> Ordering
fn cmp(&self, other: &ProtocolId) -> 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<ProtocolId> for ProtocolId
impl PartialEq<ProtocolId> for ProtocolId
source§fn eq(&self, other: &ProtocolId) -> bool
fn eq(&self, other: &ProtocolId) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<ProtocolId> for ProtocolId
impl PartialOrd<ProtocolId> for ProtocolId
source§fn partial_cmp(&self, other: &ProtocolId) -> Option<Ordering>
fn partial_cmp(&self, other: &ProtocolId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for ProtocolId
impl Serialize for ProtocolId
source§impl StrictDecode for ProtocolId
impl StrictDecode for ProtocolId
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictEncode for ProtocolId
impl StrictEncode for ProtocolId
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
source§impl StrictTuple for ProtocolId
impl StrictTuple for ProtocolId
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for ProtocolId
impl StrictType for ProtocolId
const STRICT_LIB_NAME: &'static str = crate::LIB_NAME_COMMIT_VERIFY
fn strict_name() -> Option<TypeName>
source§impl UpperHex for ProtocolId
impl UpperHex for ProtocolId
source§impl Wrapper for ProtocolId
impl Wrapper for ProtocolId
source§fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
source§fn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type
impl Copy for ProtocolId
impl Eq for ProtocolId
impl StrictProduct for ProtocolId
impl StructuralEq for ProtocolId
impl StructuralPartialEq for ProtocolId
Auto Trait Implementations§
impl RefUnwindSafe for ProtocolId
impl Send for ProtocolId
impl Sync for ProtocolId
impl Unpin for ProtocolId
impl UnwindSafe for ProtocolId
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> CommitEncode for Twhere
T: CommitStrategy,
Holder<&'a T, <T as CommitStrategy>::Strategy>: for<'a> CommitEncode,
impl<T> CommitEncode for Twhere T: CommitStrategy, Holder<&'a T, <T as CommitStrategy>::Strategy>: for<'a> CommitEncode,
source§fn commit_encode(&self, e: &mut impl Write)
fn commit_encode(&self, e: &mut impl Write)
Encodes the data for the commitment by writing them directly into a
io::Write writer instance§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.