Struct ergotree_interpreter::sigma_protocol::private_input::DlogProverInput [−][src]
pub struct DlogProverInput { pub w: Scalar, }
Expand description
Secret key of discrete logarithm signature protocol
Fields
w: Scalar
secret key value
Implementations
impl DlogProverInput
[src]
impl DlogProverInput
[src]pub const SIZE_BYTES: usize
[src]
pub const SIZE_BYTES: usize
[src]Scalar(secret key) size in bytes
pub fn random() -> DlogProverInput
[src]
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]
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 public_image(&self) -> ProveDlog
[src]
pub fn public_image(&self) -> ProveDlog
[src]public key of discrete logarithm signature protocol
Trait Implementations
impl Clone for DlogProverInput
[src]
impl Clone for DlogProverInput
[src]fn clone(&self) -> DlogProverInput
[src]
fn clone(&self) -> DlogProverInput
[src]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 Debug for DlogProverInput
[src]
impl Debug for DlogProverInput
[src]impl PartialEq<DlogProverInput> for DlogProverInput
[src]
impl PartialEq<DlogProverInput> for DlogProverInput
[src]fn eq(&self, other: &DlogProverInput) -> bool
[src]
fn eq(&self, other: &DlogProverInput) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &DlogProverInput) -> bool
[src]
fn ne(&self, other: &DlogProverInput) -> bool
[src]This method tests for !=
.
impl StructuralPartialEq for DlogProverInput
[src]
Auto Trait Implementations
impl RefUnwindSafe for DlogProverInput
impl Send for DlogProverInput
impl Sync for DlogProverInput
impl Unpin for DlogProverInput
impl UnwindSafe for DlogProverInput
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>,