[−][src]Struct ergo_lib::sigma_protocol::private_input::DlogProverInput
Secret key of discrete logarithm signature protocol
Fields
w: Scalar
secret key value
Implementations
impl DlogProverInput
[src]
pub const SIZE_BYTES: usize
[src]
Scalar(secret key) size in bytes
pub fn random() -> DlogProverInput
[src]
generates random secret in the range [0, n), where n is DLog group order.
pub fn from_bytes(bytes: &[u8; 32]) -> Option<DlogProverInput>
[src]
Attempts to parse the given byte array as an SEC-1-encoded scalar(secret key). Returns None if the byte array does not contain a big-endian integer in the range [0, modulus).
pub fn to_bytes(&self) -> [u8; 32]
[src]
byte representation of the underlying scalar
pub fn public_image(&self) -> ProveDlog
[src]
public key of discrete logarithm signature protocol
Trait Implementations
impl Clone for DlogProverInput
[src]
pub fn clone(&self) -> DlogProverInput
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DlogProverInput
[src]
impl From<DlogProverInput> for SecretKey
[src]
pub fn from(pi: DlogProverInput) -> Self
[src]
impl From<Scalar> for DlogProverInput
[src]
impl PartialEq<DlogProverInput> for DlogProverInput
[src]
pub fn eq(&self, other: &DlogProverInput) -> bool
[src]
pub fn ne(&self, other: &DlogProverInput) -> bool
[src]
impl StructuralPartialEq for DlogProverInput
[src]
Auto Trait Implementations
impl RefUnwindSafe for DlogProverInput
[src]
impl Send for DlogProverInput
[src]
impl Sync for DlogProverInput
[src]
impl Unpin for DlogProverInput
[src]
impl UnwindSafe for DlogProverInput
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<F> TryExtractInto<F> for F
[src]
pub fn try_extract_into<T>(Self) -> Result<T, TryExtractFromError> where
T: TryExtractFrom<F>,
[src]
T: TryExtractFrom<F>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,