pub struct Sign2ContractFullHash(/* private fields */);Expand description
Tagged hash used for nonce tweaking for ECDSA signatures.
Implementations§
Source§impl Sign2ContractFullHash
impl Sign2ContractFullHash
Sourcepub const fn from_byte_array(
bytes: <Hash<Sign2ContractFullTag> as Hash>::Bytes,
) -> Self
pub const fn from_byte_array( bytes: <Hash<Sign2ContractFullTag> as Hash>::Bytes, ) -> Self
Constructs a new hash from the underlying byte array.
Sourcepub fn from_slice(sl: &[u8]) -> Result<Sign2ContractFullHash, FromSliceError>
👎Deprecated since 0.15.0: use from_byte_array instead
pub fn from_slice(sl: &[u8]) -> Result<Sign2ContractFullHash, FromSliceError>
use from_byte_array instead
Copies a byte slice into a hash object.
Sourcepub const fn to_byte_array(self) -> <Hash<Sign2ContractFullTag> as Hash>::Bytes
pub const fn to_byte_array(self) -> <Hash<Sign2ContractFullTag> as Hash>::Bytes
Returns the underlying byte array.
Sourcepub const fn as_byte_array(
&self,
) -> &<Hash<Sign2ContractFullTag> as Hash>::Bytes
pub const fn as_byte_array( &self, ) -> &<Hash<Sign2ContractFullTag> as Hash>::Bytes
Returns a reference to the underlying byte array.
Trait Implementations§
Source§impl AsRef<[u8]> for Sign2ContractFullHash
impl AsRef<[u8]> for Sign2ContractFullHash
Source§impl Borrow<[u8]> for Sign2ContractFullHash
impl Borrow<[u8]> for Sign2ContractFullHash
Source§impl Clone for Sign2ContractFullHash
impl Clone for Sign2ContractFullHash
impl Copy for Sign2ContractFullHash
Source§impl Debug for Sign2ContractFullHash
impl Debug for Sign2ContractFullHash
impl Eq for Sign2ContractFullHash
Source§impl From<Hash<Sign2ContractFullTag>> for Sign2ContractFullHash
impl From<Hash<Sign2ContractFullTag>> for Sign2ContractFullHash
Source§fn from(inner: Hash<Sign2ContractFullTag>) -> Sign2ContractFullHash
fn from(inner: Hash<Sign2ContractFullTag>) -> Sign2ContractFullHash
Converts to this type from the input type.
Source§impl From<Sign2ContractFullHash> for Hash<Sign2ContractFullTag>
impl From<Sign2ContractFullHash> for Hash<Sign2ContractFullTag>
Source§fn from(hashtype: Sign2ContractFullHash) -> Hash<Sign2ContractFullTag>
fn from(hashtype: Sign2ContractFullHash) -> Hash<Sign2ContractFullTag>
Converts to this type from the input type.
Source§impl Hash for Sign2ContractFullHash
impl Hash for Sign2ContractFullHash
Source§impl Hash for Sign2ContractFullHash
impl Hash for Sign2ContractFullHash
Source§const DISPLAY_BACKWARD: bool = <sha256t::Hash<Sign2ContractFullTag> as
::bitcoin_hashes::Hash>::DISPLAY_BACKWARD
const DISPLAY_BACKWARD: bool = <sha256t::Hash<Sign2ContractFullTag> as ::bitcoin_hashes::Hash>::DISPLAY_BACKWARD
Flag indicating whether user-visible serializations of this hash should be backward. Read more
Source§type Bytes = <Hash<Sign2ContractFullTag> as Hash>::Bytes
type Bytes = <Hash<Sign2ContractFullTag> as Hash>::Bytes
The byte array that represents the hash internally.
Source§fn from_byte_array(bytes: Self::Bytes) -> Self
fn from_byte_array(bytes: Self::Bytes) -> Self
Constructs a new hash from the underlying byte array.
Source§fn from_slice(sl: &[u8]) -> Result<Sign2ContractFullHash, FromSliceError>
fn from_slice(sl: &[u8]) -> Result<Sign2ContractFullHash, FromSliceError>
👎Deprecated since 0.15.0:
use from_byte_array instead
Copies a byte slice into a hash object.
Source§fn to_byte_array(self) -> Self::Bytes
fn to_byte_array(self) -> Self::Bytes
Returns the underlying byte array.
Source§fn as_byte_array(&self) -> &Self::Bytes
fn as_byte_array(&self) -> &Self::Bytes
Returns a reference to the underlying byte array.
Source§impl Ord for Sign2ContractFullHash
impl Ord for Sign2ContractFullHash
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Sign2ContractFullHash
impl PartialEq for Sign2ContractFullHash
Source§impl PartialOrd for Sign2ContractFullHash
impl PartialOrd for Sign2ContractFullHash
impl StructuralPartialEq for Sign2ContractFullHash
Source§impl TweakHash for Sign2ContractFullHash
impl TweakHash for Sign2ContractFullHash
Source§type AllowedKeys = Full
type AllowedKeys = Full
Whether to work with full keys and ECDSA signatures or x-only keys and
BIP-0340 (Schnorr) signatures. Read more
Auto Trait Implementations§
impl Freeze for Sign2ContractFullHash
impl RefUnwindSafe for Sign2ContractFullHash
impl Send for Sign2ContractFullHash
impl Sync for Sign2ContractFullHash
impl Unpin for Sign2ContractFullHash
impl UnsafeUnpin for Sign2ContractFullHash
impl UnwindSafe for Sign2ContractFullHash
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