Struct solana_zk_token_sdk::encryption::discrete_log::DiscreteLog
source · [−]pub struct DiscreteLog {
pub generator: RistrettoPoint,
pub target: RistrettoPoint,
}
Expand description
Type that captures a discrete log challenge.
The goal of discrete log is to find x such that x * generator = target.
Fields
generator: RistrettoPoint
Generator point for discrete log
target: RistrettoPoint
Target point for discrete log
Implementations
sourceimpl DiscreteLog
impl DiscreteLog
Solves the discrete log instance using a 16/16 bit offline/online split
pub fn decode_online(
self,
hashmap: &DecodePrecomputation,
solution_bound: u64
) -> Option<u64>
Trait Implementations
sourceimpl Clone for DiscreteLog
impl Clone for DiscreteLog
sourcefn clone(&self) -> DiscreteLog
fn clone(&self) -> DiscreteLog
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DiscreteLog
impl Debug for DiscreteLog
sourceimpl<'de> Deserialize<'de> for DiscreteLog
impl<'de> Deserialize<'de> for DiscreteLog
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<DiscreteLog> for DiscreteLog
impl PartialEq<DiscreteLog> for DiscreteLog
sourcefn eq(&self, other: &DiscreteLog) -> bool
fn eq(&self, other: &DiscreteLog) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DiscreteLog) -> bool
fn ne(&self, other: &DiscreteLog) -> bool
This method tests for !=
.
sourceimpl Serialize for DiscreteLog
impl Serialize for DiscreteLog
impl Copy for DiscreteLog
impl Eq for DiscreteLog
impl StructuralEq for DiscreteLog
impl StructuralPartialEq for DiscreteLog
Auto Trait Implementations
impl RefUnwindSafe for DiscreteLog
impl Send for DiscreteLog
impl Sync for DiscreteLog
impl Unpin for DiscreteLog
impl UnwindSafe for DiscreteLog
Blanket Implementations
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more