[][src]Enum ergo_lib::wallet::secret_key::SecretKey

pub enum SecretKey {
    DlogSecretKey(DlogProverInput),
}

Types of secrets

Variants

DlogSecretKey(DlogProverInput)

Secret exponent of a group element, i.e. secret w such as h = g^^w, where g is group generator, h is a public key.

Implementations

impl SecretKey[src]

pub fn random_dlog() -> SecretKey[src]

Generates random DlogProverInput

pub fn dlog_from_bytes(bytes: &[u8; 32]) -> Option<SecretKey>[src]

Parse DlogSecretKey from bytes (SEC-1-encoded scalar)

pub fn get_address_from_public_image(&self) -> Address[src]

Address (encoded public image)

pub fn to_bytes(&self) -> Vec<u8>[src]

Encode from a serialized key

Trait Implementations

impl Clone for SecretKey[src]

impl Debug for SecretKey[src]

impl From<DlogProverInput> for SecretKey[src]

impl From<SecretKey> for PrivateInput[src]

impl PartialEq<SecretKey> for SecretKey[src]

impl StructuralPartialEq for SecretKey[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<F> TryExtractInto<F> for F[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<V, T> VZip<V> for T where
    V: MultiLane<T>,