Struct snarkvm_wasm::SchnorrSignature [−][src]
Fields
parameters: SchnorrParameters<G, D>Trait Implementations
impl<G, D> Clone for SchnorrSignature<G, D> where
G: Group,
D: Digest, [src]
G: Group,
D: Digest,
pub fn clone(&self) -> SchnorrSignature<G, D>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<G, D> Debug for SchnorrSignature<G, D> where
G: Group,
D: Digest, [src]
G: Group,
D: Digest,
impl<G, D> Eq for SchnorrSignature<G, D> where
G: Group,
D: Digest, [src]
G: Group,
D: Digest,
impl<G, SG, D> From<GroupEncryptionParameters<G>> for SchnorrSignature<SG, D> where
G: Group + ProjectiveCurve + CanonicalSerialize,
D: Digest,
SG: Group + CanonicalDeserialize, [src]
G: Group + ProjectiveCurve + CanonicalSerialize,
D: Digest,
SG: Group + CanonicalDeserialize,
Map the GroupEncryption parameters into a Schnorr signature scheme.
pub fn from(parameters: GroupEncryptionParameters<G>) -> SchnorrSignature<SG, D>[src]
impl<G, D> From<SchnorrParameters<G, D>> for SchnorrSignature<G, D> where
G: Group,
D: Digest, [src]
G: Group,
D: Digest,
pub fn from(parameters: SchnorrParameters<G, D>) -> SchnorrSignature<G, D>[src]
impl<G, D> PartialEq<SchnorrSignature<G, D>> for SchnorrSignature<G, D> where
G: Group,
D: Digest, [src]
G: Group,
D: Digest,
pub fn eq(&self, other: &SchnorrSignature<G, D>) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<G, GG, D, F> SignaturePublicKeyRandomizationGadget<SchnorrSignature<G, D>, F> for SchnorrPublicKeyRandomizationGadget<G, F, GG> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
D: Send + Sync + Digest,
F: Field,
GG: GroupGadget<G, F>, [src]
G: Group + CanonicalSerialize + CanonicalDeserialize,
D: Send + Sync + Digest,
F: Field,
GG: GroupGadget<G, F>,
type ParametersGadget = SchnorrParametersGadget<G, F, D>
type PublicKeyGadget = SchnorrPublicKeyGadget<G, F, GG>
pub fn check_randomization_gadget<CS>(
cs: CS,
parameters: &<SchnorrPublicKeyRandomizationGadget<G, F, GG> as SignaturePublicKeyRandomizationGadget<SchnorrSignature<G, D>, F>>::ParametersGadget,
public_key: &<SchnorrPublicKeyRandomizationGadget<G, F, GG> as SignaturePublicKeyRandomizationGadget<SchnorrSignature<G, D>, F>>::PublicKeyGadget,
randomness: &[UInt8]
) -> Result<<SchnorrPublicKeyRandomizationGadget<G, F, GG> as SignaturePublicKeyRandomizationGadget<SchnorrSignature<G, D>, F>>::PublicKeyGadget, SynthesisError> where
CS: ConstraintSystem<F>, [src]
cs: CS,
parameters: &<SchnorrPublicKeyRandomizationGadget<G, F, GG> as SignaturePublicKeyRandomizationGadget<SchnorrSignature<G, D>, F>>::ParametersGadget,
public_key: &<SchnorrPublicKeyRandomizationGadget<G, F, GG> as SignaturePublicKeyRandomizationGadget<SchnorrSignature<G, D>, F>>::PublicKeyGadget,
randomness: &[UInt8]
) -> Result<<SchnorrPublicKeyRandomizationGadget<G, F, GG> as SignaturePublicKeyRandomizationGadget<SchnorrSignature<G, D>, F>>::PublicKeyGadget, SynthesisError> where
CS: ConstraintSystem<F>,
impl<G, D> SignatureScheme for SchnorrSignature<G, D> where
G: Hash + Group + CanonicalSerialize + CanonicalDeserialize,
D: Send + Sync + Digest,
<G as Group>::ScalarField: PrimeField, [src]
G: Hash + Group + CanonicalSerialize + CanonicalDeserialize,
D: Send + Sync + Digest,
<G as Group>::ScalarField: PrimeField,
type Output = SchnorrOutput<G>
type Parameters = SchnorrParameters<G, D>
type PrivateKey = <G as Group>::ScalarField
type PublicKey = SchnorrPublicKey<G>
pub fn setup<R>(rng: &mut R) -> Result<SchnorrSignature<G, D>, SignatureError> where
R: Rng, [src]
R: Rng,
pub fn parameters(
&self
) -> &<SchnorrSignature<G, D> as SignatureScheme>::Parameters[src]
&self
) -> &<SchnorrSignature<G, D> as SignatureScheme>::Parameters
pub fn generate_private_key<R>(
&self,
rng: &mut R
) -> Result<<SchnorrSignature<G, D> as SignatureScheme>::PrivateKey, SignatureError> where
R: Rng, [src]
&self,
rng: &mut R
) -> Result<<SchnorrSignature<G, D> as SignatureScheme>::PrivateKey, SignatureError> where
R: Rng,
pub fn generate_public_key(
&self,
private_key: &<SchnorrSignature<G, D> as SignatureScheme>::PrivateKey
) -> Result<<SchnorrSignature<G, D> as SignatureScheme>::PublicKey, SignatureError>[src]
&self,
private_key: &<SchnorrSignature<G, D> as SignatureScheme>::PrivateKey
) -> Result<<SchnorrSignature<G, D> as SignatureScheme>::PublicKey, SignatureError>
pub fn sign<R>(
&self,
private_key: &<SchnorrSignature<G, D> as SignatureScheme>::PrivateKey,
message: &[u8],
rng: &mut R
) -> Result<<SchnorrSignature<G, D> as SignatureScheme>::Output, SignatureError> where
R: Rng, [src]
&self,
private_key: &<SchnorrSignature<G, D> as SignatureScheme>::PrivateKey,
message: &[u8],
rng: &mut R
) -> Result<<SchnorrSignature<G, D> as SignatureScheme>::Output, SignatureError> where
R: Rng,
pub fn verify(
&self,
public_key: &<SchnorrSignature<G, D> as SignatureScheme>::PublicKey,
message: &[u8],
signature: &<SchnorrSignature<G, D> as SignatureScheme>::Output
) -> Result<bool, SignatureError>[src]
&self,
public_key: &<SchnorrSignature<G, D> as SignatureScheme>::PublicKey,
message: &[u8],
signature: &<SchnorrSignature<G, D> as SignatureScheme>::Output
) -> Result<bool, SignatureError>
pub fn randomize_public_key(
&self,
public_key: &<SchnorrSignature<G, D> as SignatureScheme>::PublicKey,
randomness: &[u8]
) -> Result<<SchnorrSignature<G, D> as SignatureScheme>::PublicKey, SignatureError>[src]
&self,
public_key: &<SchnorrSignature<G, D> as SignatureScheme>::PublicKey,
randomness: &[u8]
) -> Result<<SchnorrSignature<G, D> as SignatureScheme>::PublicKey, SignatureError>
pub fn randomize_signature(
&self,
signature: &<SchnorrSignature<G, D> as SignatureScheme>::Output,
randomness: &[u8]
) -> Result<<SchnorrSignature<G, D> as SignatureScheme>::Output, SignatureError>[src]
&self,
signature: &<SchnorrSignature<G, D> as SignatureScheme>::Output,
randomness: &[u8]
) -> Result<<SchnorrSignature<G, D> as SignatureScheme>::Output, SignatureError>
Auto Trait Implementations
impl<G, D> RefUnwindSafe for SchnorrSignature<G, D> where
D: RefUnwindSafe,
G: RefUnwindSafe,
D: RefUnwindSafe,
G: RefUnwindSafe,
impl<G, D> Send for SchnorrSignature<G, D> where
D: Send,
D: Send,
impl<G, D> Sync for SchnorrSignature<G, D> where
D: Sync,
D: Sync,
impl<G, D> Unpin for SchnorrSignature<G, D> where
D: Unpin,
G: Unpin,
D: Unpin,
G: Unpin,
impl<G, D> UnwindSafe for SchnorrSignature<G, D> where
D: UnwindSafe,
G: UnwindSafe,
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>,