Struct secp256k1::SecretKey [−][src]
pub struct SecretKey(_);
Secret key (256-bit) on a secp256k1 curve.
Methods
impl SecretKey
[src]
impl SecretKey
pub fn parse(p: &[u8; 32]) -> Result<SecretKey, Error>
[src]
pub fn parse(p: &[u8; 32]) -> Result<SecretKey, Error>
pub fn random<R: Rng>(rng: &mut R) -> SecretKey
[src]
pub fn random<R: Rng>(rng: &mut R) -> SecretKey
pub fn serialize(&self) -> [u8; 32]
[src]
pub fn serialize(&self) -> [u8; 32]
Trait Implementations
impl Debug for SecretKey
[src]
impl Debug for SecretKey
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for SecretKey
[src]
impl Clone for SecretKey
fn clone(&self) -> SecretKey
[src]
fn clone(&self) -> SecretKey
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for SecretKey
[src]
impl Eq for SecretKey
impl PartialEq for SecretKey
[src]
impl PartialEq for SecretKey
fn eq(&self, other: &SecretKey) -> bool
[src]
fn eq(&self, other: &SecretKey) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SecretKey) -> bool
[src]
fn ne(&self, other: &SecretKey) -> bool
This method tests for !=
.
impl Into<Scalar> for SecretKey
[src]
impl Into<Scalar> for SecretKey