Enum ergo_lib::wallet::secret_key::SecretKey [−][src]
pub enum SecretKey { DlogSecretKey(DlogProverInput), }
Expand description
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]
impl SecretKey
[src]pub fn random_dlog() -> SecretKey
[src]
pub fn random_dlog() -> SecretKey
[src]Generates random DlogProverInput
pub fn dlog_from_bytes(bytes: &[u8; 32]) -> Option<SecretKey>
[src]
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]
pub fn get_address_from_public_image(&self) -> Address
[src]Address (encoded public image)
Trait Implementations
impl From<DlogProverInput> for SecretKey
[src]
impl From<DlogProverInput> for SecretKey
[src]fn from(pi: DlogProverInput) -> Self
[src]
fn from(pi: DlogProverInput) -> Self
[src]Performs the conversion.
impl StructuralPartialEq for SecretKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for SecretKey
impl Send for SecretKey
impl Sync for SecretKey
impl Unpin for SecretKey
impl UnwindSafe for SecretKey
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<F> TryExtractInto<F> for F
[src]
impl<F> TryExtractInto<F> for F
[src]pub fn try_extract_into<T>(self) -> Result<T, TryExtractFromError> where
T: TryExtractFrom<F>,
[src]
pub fn try_extract_into<T>(self) -> Result<T, TryExtractFromError> where
T: TryExtractFrom<F>,
[src]Extract value of the given type from any type (e.g. [‘Constant’], super::value::Value
)
on which TryExtractFrom
is implemented Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,