Struct bitcoin::util::taproot::TapTweakHash [−][src]
#[repr(transparent)]pub struct TapTweakHash(_);
Taproot-tagged hash for public key tweaks
Implementations
impl TapTweakHash
[src]
impl TapTweakHash
[src]pub fn from_hash(inner: Hash<TapTweakTag>) -> TapTweakHash
[src]
Create this type from the inner hash type.
pub fn as_hash(&self) -> Hash<TapTweakTag>
[src]
Convert this type into the inner hash type.
Trait Implementations
impl Clone for TapTweakHash
[src]
impl Clone for TapTweakHash
[src]fn clone(&self) -> TapTweakHash
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for TapTweakHash
[src]
impl Default for TapTweakHash
[src]fn default() -> TapTweakHash
[src]
impl Deref for TapTweakHash
[src]
impl Deref for TapTweakHash
[src]impl<'de> Deserialize<'de> for TapTweakHash
[src]
impl<'de> Deserialize<'de> for TapTweakHash
[src]fn deserialize<D: Deserializer<'de>>(d: D) -> Result<TapTweakHash, D::Error>
[src]
impl From<Hash<TapTweakTag>> for TapTweakHash
[src]
impl From<Hash<TapTweakTag>> for TapTweakHash
[src]fn from(inner: Hash<TapTweakTag>) -> TapTweakHash
[src]
impl From<TapTweakHash> for Hash<TapTweakTag>
[src]
impl From<TapTweakHash> for Hash<TapTweakTag>
[src]fn from(hashtype: TapTweakHash) -> Hash<TapTweakTag>
[src]
impl FromStr for TapTweakHash
[src]
impl FromStr for TapTweakHash
[src]impl Hash for TapTweakHash
[src]
impl Hash for TapTweakHash
[src]impl Hash for TapTweakHash
[src]
impl Hash for TapTweakHash
[src]type Engine = <Hash<TapTweakTag> as Hash>::Engine
A hashing engine which bytes can be serialized into. It is expected
to implement the io::Write
trait, and to never return errors under
any conditions. Read more
type Inner = <Hash<TapTweakTag> as Hash>::Inner
The byte array that represents the hash internally
const LEN: usize
[src]
const DISPLAY_BACKWARD: bool
[src]
fn engine() -> Self::Engine
[src]
fn from_engine(e: Self::Engine) -> Self
[src]
fn from_slice(sl: &[u8]) -> Result<TapTweakHash, Error>
[src]
fn from_inner(inner: Self::Inner) -> Self
[src]
fn into_inner(self) -> Self::Inner
[src]
fn as_inner(&self) -> &Self::Inner
[src]
pub fn hash(data: &[u8]) -> Self
[src]
impl Index<Range<usize>> for TapTweakHash
[src]
impl Index<Range<usize>> for TapTweakHash
[src]impl Index<RangeFrom<usize>> for TapTweakHash
[src]
impl Index<RangeFrom<usize>> for TapTweakHash
[src]impl Index<RangeFull> for TapTweakHash
[src]
impl Index<RangeFull> for TapTweakHash
[src]impl Index<RangeTo<usize>> for TapTweakHash
[src]
impl Index<RangeTo<usize>> for TapTweakHash
[src]impl Index<usize> for TapTweakHash
[src]
impl Index<usize> for TapTweakHash
[src]impl Ord for TapTweakHash
[src]
impl Ord for TapTweakHash
[src]impl PartialEq<TapTweakHash> for TapTweakHash
[src]
impl PartialEq<TapTweakHash> for TapTweakHash
[src]fn eq(&self, other: &TapTweakHash) -> bool
[src]
fn ne(&self, other: &TapTweakHash) -> bool
[src]
impl PartialOrd<TapTweakHash> for TapTweakHash
[src]
impl PartialOrd<TapTweakHash> for TapTweakHash
[src]fn partial_cmp(&self, other: &TapTweakHash) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl SerdeHash for TapTweakHash
[src]
impl SerdeHash for TapTweakHash
[src]const N: usize
[src]
fn from_slice_delegated(sl: &[u8]) -> Result<Self, Error>
[src]
pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn deserialize<'de, D>(
d: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
d: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Serialize for TapTweakHash
[src]
impl Serialize for TapTweakHash
[src]impl Copy for TapTweakHash
[src]
impl Eq for TapTweakHash
[src]
impl StructuralEq for TapTweakHash
[src]
impl StructuralPartialEq for TapTweakHash
[src]
Auto Trait Implementations
impl RefUnwindSafe for TapTweakHash
impl Send for TapTweakHash
impl Sync for TapTweakHash
impl Unpin for TapTweakHash
impl UnwindSafe for TapTweakHash
Blanket Implementations
impl<T> FromHex for T where
T: Hash,
[src]
impl<T> FromHex for T where
T: Hash,
[src]pub fn from_byte_iter<I>(iter: I) -> Result<T, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
[src]
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
pub fn from_hex(s: &str) -> Result<Self, Error>
[src]
impl<T> ToBase32 for T where
T: AsRef<[u8]>,
[src]
impl<T> ToBase32 for T where
T: AsRef<[u8]>,
[src]pub fn write_base32<W>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32,
[src]
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32,
pub fn to_base32(&self) -> Vec<u5, Global>
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,