pub struct Secp256k1PublicKey(pub XOnlyPublicKey);
Tuple Fields§
§0: XOnlyPublicKey
Implementations§
Source§impl Secp256k1PublicKey
impl Secp256k1PublicKey
pub fn into_bytes(self) -> [u8; 32]
Trait Implementations§
Source§impl Clone for Secp256k1PublicKey
impl Clone for Secp256k1PublicKey
Source§fn clone(&self) -> Secp256k1PublicKey
fn clone(&self) -> Secp256k1PublicKey
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 Secp256k1PublicKey
impl Debug for Secp256k1PublicKey
Source§impl<'de> Deserialize<'de> for Secp256k1PublicKey
impl<'de> Deserialize<'de> for Secp256k1PublicKey
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 Secp256k1PublicKey
impl Display for Secp256k1PublicKey
Source§impl From<Secp256k1PublicKey> for String
impl From<Secp256k1PublicKey> for String
Source§fn from(public: Secp256k1PublicKey) -> Self
fn from(public: Secp256k1PublicKey) -> Self
Converts to this type from the input type.
Source§impl From<Secp256k1SecretKey> for Secp256k1PublicKey
impl From<Secp256k1SecretKey> for Secp256k1PublicKey
Source§fn from(value: Secp256k1SecretKey) -> Self
fn from(value: Secp256k1SecretKey) -> Self
Converts to this type from the input type.
Source§impl FromStr for Secp256k1PublicKey
impl FromStr for Secp256k1PublicKey
Source§impl Serialize for Secp256k1PublicKey
impl Serialize for Secp256k1PublicKey
Source§impl TryFrom<String> for Secp256k1PublicKey
impl TryFrom<String> for Secp256k1PublicKey
impl Copy for Secp256k1PublicKey
Auto Trait Implementations§
impl Freeze for Secp256k1PublicKey
impl RefUnwindSafe for Secp256k1PublicKey
impl Send for Secp256k1PublicKey
impl Sync for Secp256k1PublicKey
impl Unpin for Secp256k1PublicKey
impl UnwindSafe for Secp256k1PublicKey
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