[][src]Struct sawtooth_sdk::signing::secp256k1::Secp256k1PrivateKey

pub struct Secp256k1PrivateKey { /* fields omitted */ }

Methods

impl Secp256k1PrivateKey[src]

pub fn from_hex(s: &str) -> Result<Self, Error>[src]

pub fn from_pem(s: &str) -> Result<Self, Error>[src]

pub fn from_pem_with_password(s: &str, pw: &str) -> Result<Self, Error>[src]

pub fn to_pem(&self) -> Result<String, Error>[src]

pub fn to_pem_with_password(&self, password: &str) -> Result<String, Error>[src]

Trait Implementations

impl PrivateKey for Secp256k1PrivateKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]