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