Struct snarkvm_algorithms::signature::schnorr::SchnorrSignature [−][src]
Fields
parameters: SchnorrParameters<G, D>
Trait Implementations
impl<G: Group, D: Digest> Clone for SchnorrSignature<G, D> where
G: Group,
D: Digest,
[src]
G: Group,
D: Digest,
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<G: Group, D: Digest> Debug for SchnorrSignature<G, D> where
G: Group,
D: Digest,
[src]
G: Group,
D: Digest,
impl<G: Group, D: Digest> Eq for SchnorrSignature<G, D> where
G: Group,
D: Digest,
[src]
G: Group,
D: Digest,
impl<G: Group, D: Digest> From<SchnorrParameters<G, D>> for SchnorrSignature<G, D>
[src]
fn from(parameters: SchnorrParameters<G, D>) -> Self
[src]
impl<G: Group, D: Digest> PartialEq<SchnorrSignature<G, D>> for SchnorrSignature<G, D> where
G: Group,
D: Digest,
[src]
G: Group,
D: Digest,
impl<G: Group + Hash + CanonicalSerialize + CanonicalDeserialize, D: Digest + Send + Sync> SignatureScheme for SchnorrSignature<G, D> where
<G as Group>::ScalarField: PrimeField,
[src]
<G as Group>::ScalarField: PrimeField,
type Output = SchnorrOutput<G>
type Parameters = SchnorrParameters<G, D>
type PrivateKey = <G as Group>::ScalarField
type PublicKey = SchnorrPublicKey<G>
fn setup<R: Rng>(rng: &mut R) -> Result<Self, SignatureError>
[src]
fn parameters(&self) -> &Self::Parameters
[src]
fn generate_private_key<R: Rng>(
&self,
rng: &mut R
) -> Result<Self::PrivateKey, SignatureError>
[src]
&self,
rng: &mut R
) -> Result<Self::PrivateKey, SignatureError>
fn generate_public_key(
&self,
private_key: &Self::PrivateKey
) -> Result<Self::PublicKey, SignatureError>
[src]
&self,
private_key: &Self::PrivateKey
) -> Result<Self::PublicKey, SignatureError>
fn sign<R: Rng>(
&self,
private_key: &Self::PrivateKey,
message: &[u8],
rng: &mut R
) -> Result<Self::Output, SignatureError>
[src]
&self,
private_key: &Self::PrivateKey,
message: &[u8],
rng: &mut R
) -> Result<Self::Output, SignatureError>
fn verify(
&self,
public_key: &Self::PublicKey,
message: &[u8],
signature: &Self::Output
) -> Result<bool, SignatureError>
[src]
&self,
public_key: &Self::PublicKey,
message: &[u8],
signature: &Self::Output
) -> Result<bool, SignatureError>
fn randomize_public_key(
&self,
public_key: &Self::PublicKey,
randomness: &[u8]
) -> Result<Self::PublicKey, SignatureError>
[src]
&self,
public_key: &Self::PublicKey,
randomness: &[u8]
) -> Result<Self::PublicKey, SignatureError>
fn randomize_signature(
&self,
signature: &Self::Output,
randomness: &[u8]
) -> Result<Self::Output, SignatureError>
[src]
&self,
signature: &Self::Output,
randomness: &[u8]
) -> Result<Self::Output, SignatureError>
Auto Trait Implementations
impl<G, D> RefUnwindSafe for SchnorrSignature<G, D> where
D: RefUnwindSafe,
G: RefUnwindSafe,
[src]
D: RefUnwindSafe,
G: RefUnwindSafe,
impl<G, D> Send for SchnorrSignature<G, D> where
D: Send,
[src]
D: Send,
impl<G, D> Sync for SchnorrSignature<G, D> where
D: Sync,
[src]
D: Sync,
impl<G, D> Unpin for SchnorrSignature<G, D> where
D: Unpin,
G: Unpin,
[src]
D: Unpin,
G: Unpin,
impl<G, D> UnwindSafe for SchnorrSignature<G, D> where
D: UnwindSafe,
G: UnwindSafe,
[src]
D: UnwindSafe,
G: 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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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>,