Struct snarkvm_wasm::SchnorrPublicKey [−][src]
pub struct SchnorrPublicKey<G>(pub G)
where
G: Group + CanonicalSerialize + CanonicalDeserialize;
Trait Implementations
impl<G, F, GG> AllocGadget<SchnorrPublicKey<G>, F> for SchnorrPublicKeyGadget<G, F, GG> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
F: Field,
GG: GroupGadget<G, F>,
[src]
impl<G, F, GG> AllocGadget<SchnorrPublicKey<G>, F> for SchnorrPublicKeyGadget<G, F, GG> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
F: Field,
GG: GroupGadget<G, F>,
[src]pub fn alloc<Fn, T, CS>(
cs: CS,
f: Fn
) -> Result<SchnorrPublicKeyGadget<G, F, GG>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<SchnorrPublicKey<G>>,
[src]
cs: CS,
f: Fn
) -> Result<SchnorrPublicKeyGadget<G, F, GG>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<SchnorrPublicKey<G>>,
pub fn alloc_input<Fn, T, CS>(
cs: CS,
f: Fn
) -> Result<SchnorrPublicKeyGadget<G, F, GG>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<SchnorrPublicKey<G>>,
[src]
cs: CS,
f: Fn
) -> Result<SchnorrPublicKeyGadget<G, F, GG>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<SchnorrPublicKey<G>>,
fn alloc_constant<Fn, T, CS>(_cs: CS, _f: Fn) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
[src]
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
fn alloc_checked<Fn, T, CS>(cs: CS, f: Fn) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
[src]
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
fn alloc_input_checked<Fn, T, CS>(cs: CS, f: Fn) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
[src]
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
impl<G> CanonicalDeserialize for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]
impl<G> CanonicalDeserialize for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]pub fn deserialize<R>(
reader: &mut R
) -> Result<SchnorrPublicKey<G>, SerializationError> where
R: Read,
[src]
pub fn deserialize<R>(
reader: &mut R
) -> Result<SchnorrPublicKey<G>, SerializationError> where
R: Read,
[src]Reads Self
from reader
.
pub fn deserialize_uncompressed<R>(
reader: &mut R
) -> Result<SchnorrPublicKey<G>, SerializationError> where
R: Read,
[src]
pub fn deserialize_uncompressed<R>(
reader: &mut R
) -> Result<SchnorrPublicKey<G>, SerializationError> where
R: Read,
[src]Reads Self
from reader
without compression.
impl<G> CanonicalSerialize for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]
impl<G> CanonicalSerialize for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]pub fn serialize<W>(&self, writer: &mut W) -> Result<(), SerializationError> where
W: Write,
[src]
pub fn serialize<W>(&self, writer: &mut W) -> Result<(), SerializationError> where
W: Write,
[src]Serializes self
into writer
.
pub fn serialized_size(&self) -> usize
[src]
pub fn serialize_uncompressed<W>(
&self,
writer: &mut W
) -> Result<(), SerializationError> where
W: Write,
[src]
pub fn serialize_uncompressed<W>(
&self,
writer: &mut W
) -> Result<(), SerializationError> where
W: Write,
[src]Serializes self
into writer
without compression.
pub fn uncompressed_size(&self) -> usize
[src]
impl<G> Clone for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]
impl<G> Clone for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]pub fn clone(&self) -> SchnorrPublicKey<G>
[src]
pub fn clone(&self) -> SchnorrPublicKey<G>
[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<G> Debug for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]
impl<G> Debug for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]impl<G> Default for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]
impl<G> Default for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]pub fn default() -> SchnorrPublicKey<G>
[src]
pub fn default() -> SchnorrPublicKey<G>
[src]Returns the “default value” for a type. Read more
impl<G, SG> From<GroupEncryptionPublicKey<G>> for SchnorrPublicKey<SG> where
G: Group + ProjectiveCurve,
SG: Group + CanonicalSerialize + CanonicalDeserialize,
[src]
impl<G, SG> From<GroupEncryptionPublicKey<G>> for SchnorrPublicKey<SG> where
G: Group + ProjectiveCurve,
SG: Group + CanonicalSerialize + CanonicalDeserialize,
[src]Map the GroupEncryption public key into a Schnorr public key.
pub fn from(public_key: GroupEncryptionPublicKey<G>) -> SchnorrPublicKey<SG>
[src]
pub fn from(public_key: GroupEncryptionPublicKey<G>) -> SchnorrPublicKey<SG>
[src]Performs the conversion.
impl<G> FromBytes for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]
impl<G> FromBytes for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]impl<G> Hash for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]
impl<G> Hash for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]impl<G> PartialEq<SchnorrPublicKey<G>> for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]
impl<G> PartialEq<SchnorrPublicKey<G>> for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]impl<G> ToBytes for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]
impl<G> ToBytes for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]impl<F, G> ToConstraintField<F> for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize + ToConstraintField<F>,
F: Field,
[src]
impl<F, G> ToConstraintField<F> for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize + ToConstraintField<F>,
F: Field,
[src]pub fn to_field_elements(&self) -> Result<Vec<F, Global>, ConstraintFieldError>
[src]
impl<G> Copy for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]
G: Group + CanonicalSerialize + CanonicalDeserialize,
impl<G> Eq for SchnorrPublicKey<G> where
G: Group + CanonicalSerialize + CanonicalDeserialize,
[src]
G: Group + CanonicalSerialize + CanonicalDeserialize,
Auto Trait Implementations
impl<G> RefUnwindSafe for SchnorrPublicKey<G> where
G: RefUnwindSafe,
G: RefUnwindSafe,
impl<G> Send for SchnorrPublicKey<G>
impl<G> Sync for SchnorrPublicKey<G>
impl<G> Unpin for SchnorrPublicKey<G> where
G: Unpin,
G: Unpin,
impl<G> UnwindSafe for SchnorrPublicKey<G> where
G: UnwindSafe,
G: UnwindSafe,
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
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<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,