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