pub struct ChainKeypair(/* private fields */);
Expand description
Represents a keypair consisting of a secp256k1 private and public key
Trait Implementations§
Source§impl Clone for ChainKeypair
impl Clone for ChainKeypair
Source§fn clone(&self) -> ChainKeypair
fn clone(&self) -> ChainKeypair
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 ConstantTimeEq for ChainKeypair
impl ConstantTimeEq for ChainKeypair
Source§impl Debug for ChainKeypair
impl Debug for ChainKeypair
Source§impl Drop for ChainKeypair
impl Drop for ChainKeypair
Source§impl From<&ChainKeypair> for Address
impl From<&ChainKeypair> for Address
Source§fn from(value: &ChainKeypair) -> Self
fn from(value: &ChainKeypair) -> Self
Converts to this type from the input type.
Source§impl From<&ChainKeypair> for Scalar
impl From<&ChainKeypair> for Scalar
Source§fn from(value: &ChainKeypair) -> Self
fn from(value: &ChainKeypair) -> Self
Converts to this type from the input type.
Source§impl Keypair for ChainKeypair
impl Keypair for ChainKeypair
Source§type SecretLen = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>
type SecretLen = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>
Represents the type of the private (secret) key
Source§type Public = CompressedPublicKey
type Public = CompressedPublicKey
Represents the type of the public key
Source§fn from_secret(bytes: &[u8]) -> Result<Self>
fn from_secret(bytes: &[u8]) -> Result<Self>
Creates a keypair from the given secret key.
Source§fn secret(&self) -> &SecretValue<U32>
fn secret(&self) -> &SecretValue<U32>
Returns the private (secret) part of the keypair
Auto Trait Implementations§
impl !Freeze for ChainKeypair
impl RefUnwindSafe for ChainKeypair
impl Send for ChainKeypair
impl Sync for ChainKeypair
impl Unpin for ChainKeypair
impl UnwindSafe for ChainKeypair
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