[−][src]Struct lnpbp::dbc::tx::TxCommitment
bitcoin::Transaction containing LNPBP-3 commitment
Trait Implementations
impl AsMut<<TxCommitment as Wrapper>::Inner> for TxCommitment
[src]
impl AsRef<<TxCommitment as Wrapper>::Inner> for TxCommitment
[src]
impl Borrow<<TxCommitment as Wrapper>::Inner> for TxCommitment
[src]
impl BorrowMut<<TxCommitment as Wrapper>::Inner> for TxCommitment
[src]
pub fn borrow_mut(&mut self) -> &mut Self::Inner
[src]
impl Clone for TxCommitment
[src]
pub fn clone(&self) -> TxCommitment
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TxCommitment
[src]
impl Deref for TxCommitment
[src]
type Target = Self::Inner
The resulting type after dereferencing.
pub fn deref(&self) -> &Self::Target
[src]
impl DerefMut for TxCommitment
[src]
impl Display for TxCommitment
[src]
impl<MSG> EmbedCommitVerify<MSG> for TxCommitment where
MSG: AsRef<[u8]>,
[src]
MSG: AsRef<[u8]>,
type Container = TxContainer
External container type that will be used to host commitment to a message Read more
type Error = Error
Error type that may be reported during [commit_embed] procedure
pub fn embed_commit(
container: &mut Self::Container,
msg: &MSG
) -> Result<Self, Self::Error>
[src]
container: &mut Self::Container,
msg: &MSG
) -> Result<Self, Self::Error>
pub fn verify(
&self,
container: &Self::Container,
msg: &MSG
) -> Result<bool, Self::Error>
[src]
&self,
container: &Self::Container,
msg: &MSG
) -> Result<bool, Self::Error>
impl Eq for TxCommitment
[src]
impl From<Transaction> for TxCommitment
[src]
pub fn from(v: Transaction) -> Self
[src]
impl Hash for TxCommitment
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<TxCommitment> for TxCommitment
[src]
pub fn eq(&self, other: &TxCommitment) -> bool
[src]
pub fn ne(&self, other: &TxCommitment) -> bool
[src]
impl StructuralEq for TxCommitment
[src]
impl StructuralPartialEq for TxCommitment
[src]
impl Wrapper for TxCommitment
[src]
type Inner = Transaction
Inner type wrapped by the current newtype
pub fn from_inner(inner: Self::Inner) -> Self
[src]
pub fn as_inner(&self) -> &Self::Inner
[src]
pub fn as_inner_mut(&mut self) -> &mut Self::Inner
[src]
pub fn into_inner(self) -> Self::Inner
[src]
pub fn to_inner(&self) -> Self::Inner
[src]
Auto Trait Implementations
impl RefUnwindSafe for TxCommitment
[src]
impl Send for TxCommitment
[src]
impl Sync for TxCommitment
[src]
impl Unpin for TxCommitment
[src]
impl UnwindSafe for TxCommitment
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,