pub struct K1SecretKey(/* private fields */);Implementations§
Source§impl K1SecretKey
impl K1SecretKey
pub fn to_bytes(&self) -> [u8; 32]
pub fn from_bytes(bytes: &[u8; 32]) -> Result<Self, Error>
pub fn public_key(&self) -> K1PublicKey
pub fn sign_prehashed( &self, message_hash: &[u8; 32], ) -> Result<K1Signature, Error>
Trait Implementations§
Source§impl Clone for K1SecretKey
impl Clone for K1SecretKey
Source§fn clone(&self) -> K1SecretKey
fn clone(&self) -> K1SecretKey
Returns a duplicate 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 K1SecretKey
impl Debug for K1SecretKey
Source§impl Hash for K1SecretKey
impl Hash for K1SecretKey
Source§impl PartialEq for K1SecretKey
impl PartialEq for K1SecretKey
impl Eq for K1SecretKey
impl StructuralPartialEq for K1SecretKey
Auto Trait Implementations§
impl Freeze for K1SecretKey
impl RefUnwindSafe for K1SecretKey
impl Send for K1SecretKey
impl Sync for K1SecretKey
impl Unpin for K1SecretKey
impl UnwindSafe for K1SecretKey
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