[−][src]Struct sigma_fun::secp256k1::DL
Proves knowledge of x
such that A = x * B
for some A
and B
included in the statement.
Trait Implementations
impl<L: Clone> Clone for DL<L>
[src]
impl<L: Debug> Debug for DL<L>
[src]
impl<L: Default> Default for DL<L>
[src]
impl<L: PartialEq> PartialEq<DL<L>> for DL<L>
[src]
impl<L: ArrayLength<u8>> Sigma for DL<L> where
L: IsLessOrEqual<U32>,
<L as IsLessOrEqual<U32>>::Output: NonZero,
[src]
L: IsLessOrEqual<U32>,
<L as IsLessOrEqual<U32>>::Output: NonZero,
type Witness = Scalar
The witness for the relation.
type Statement = (Point, Point)
The elements of the statement the prover is proving.
type AnnounceSecret = Scalar
The type for the secret the prover creates when generating the proof.
type Announcement = Point
The type for the public announcement the prover sends in the first round of the protocol.
type Response = Scalar<Public, Zero>
The type for the response the prover sends in the last round of the protocol.
type ChallengeLength = L
pub fn respond(
&self,
witness: &Self::Witness,
_statement: &Self::Statement,
announce_secret: Self::AnnounceSecret,
_announce: &Self::Announcement,
challenge: &GenericArray<u8, Self::ChallengeLength>
) -> Self::Response
[src]
&self,
witness: &Self::Witness,
_statement: &Self::Statement,
announce_secret: Self::AnnounceSecret,
_announce: &Self::Announcement,
challenge: &GenericArray<u8, Self::ChallengeLength>
) -> Self::Response
pub fn announce(
&self,
statement: &Self::Statement,
announce_secret: &Self::AnnounceSecret
) -> Self::Announcement
[src]
&self,
statement: &Self::Statement,
announce_secret: &Self::AnnounceSecret
) -> Self::Announcement
pub fn sample_response<Rng: CryptoRng + RngCore>(
&self,
rng: &mut Rng
) -> Self::Response
[src]
&self,
rng: &mut Rng
) -> Self::Response
pub fn implied_announcement(
&self,
statement: &Self::Statement,
challenge: &GenericArray<u8, Self::ChallengeLength>,
response: &Self::Response
) -> Option<Self::Announcement>
[src]
&self,
statement: &Self::Statement,
challenge: &GenericArray<u8, Self::ChallengeLength>,
response: &Self::Response
) -> Option<Self::Announcement>
pub fn write_name<W: Write>(&self, w: &mut W) -> Result
[src]
pub fn hash_statement<H: Update>(
&self,
hash: &mut H,
statement: &Self::Statement
)
[src]
&self,
hash: &mut H,
statement: &Self::Statement
)
pub fn hash_announcement<H: Update>(
&self,
hash: &mut H,
announcement: &Self::Announcement
)
[src]
&self,
hash: &mut H,
announcement: &Self::Announcement
)
pub fn hash_witness<H: Update>(&self, hash: &mut H, witness: &Self::Witness)
[src]
pub fn gen_announce_secret<Rng: CryptoRng + RngCore>(
&self,
_witness: &Self::Witness,
rng: &mut Rng
) -> Self::AnnounceSecret
[src]
&self,
_witness: &Self::Witness,
rng: &mut Rng
) -> Self::AnnounceSecret
impl<L> StructuralPartialEq for DL<L>
[src]
Auto Trait Implementations
impl<L> RefUnwindSafe for DL<L> where
L: RefUnwindSafe,
[src]
L: RefUnwindSafe,
impl<L> Send for DL<L> where
L: Send,
[src]
L: Send,
impl<L> Sync for DL<L> where
L: Sync,
[src]
L: Sync,
impl<L> Unpin for DL<L> where
L: Unpin,
[src]
L: Unpin,
impl<L> UnwindSafe for DL<L> where
L: UnwindSafe,
[src]
L: UnwindSafe,
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> Mark for T
[src]
#[must_use]pub fn mark<M>(self) -> <M as ChangeMark<T>>::Out where
M: ChangeMark<T>,
[src]
M: ChangeMark<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<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>,