Struct snarkvm_wasm::GroupEncryptionParameters [−][src]
pub struct GroupEncryptionParameters<G> where
G: Group, { pub generator_powers: Vec<G, Global>, pub salt: [u8; 32], }
Fields
generator_powers: Vec<G, Global>
salt: [u8; 32]
Implementations
impl<G> GroupEncryptionParameters<G> where
G: Group,
[src]
impl<G> GroupEncryptionParameters<G> where
G: Group,
[src]Trait Implementations
impl<G, F> AllocGadget<GroupEncryptionParameters<G>, F> for GroupEncryptionParametersGadget<G> where
F: Field,
G: Group + ProjectiveCurve,
[src]
impl<G, F> AllocGadget<GroupEncryptionParameters<G>, F> for GroupEncryptionParametersGadget<G> where
F: Field,
G: Group + ProjectiveCurve,
[src]pub fn alloc<Fn, T, CS>(
_cs: CS,
value_gen: Fn
) -> Result<GroupEncryptionParametersGadget<G>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
T: Borrow<GroupEncryptionParameters<G>>,
CS: ConstraintSystem<F>,
[src]
_cs: CS,
value_gen: Fn
) -> Result<GroupEncryptionParametersGadget<G>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
T: Borrow<GroupEncryptionParameters<G>>,
CS: ConstraintSystem<F>,
pub fn alloc_input<Fn, T, CS>(
_cs: CS,
value_gen: Fn
) -> Result<GroupEncryptionParametersGadget<G>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
T: Borrow<GroupEncryptionParameters<G>>,
CS: ConstraintSystem<F>,
[src]
_cs: CS,
value_gen: Fn
) -> Result<GroupEncryptionParametersGadget<G>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
T: Borrow<GroupEncryptionParameters<G>>,
CS: ConstraintSystem<F>,
fn alloc_constant<Fn, T, CS>(_cs: CS, _f: Fn) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
T: Borrow<V>,
CS: ConstraintSystem<F>,
[src]
Fn: FnOnce() -> Result<T, SynthesisError>,
T: Borrow<V>,
CS: ConstraintSystem<F>,
fn alloc_checked<Fn, T, CS>(cs: CS, f: Fn) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
T: Borrow<V>,
CS: ConstraintSystem<F>,
[src]
Fn: FnOnce() -> Result<T, SynthesisError>,
T: Borrow<V>,
CS: ConstraintSystem<F>,
fn alloc_input_checked<Fn, T, CS>(cs: CS, f: Fn) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
T: Borrow<V>,
CS: ConstraintSystem<F>,
[src]
Fn: FnOnce() -> Result<T, SynthesisError>,
T: Borrow<V>,
CS: ConstraintSystem<F>,
impl<G> Clone for GroupEncryptionParameters<G> where
G: Group,
[src]
impl<G> Clone for GroupEncryptionParameters<G> where
G: Group,
[src]pub fn clone(&self) -> GroupEncryptionParameters<G>
[src]
pub fn clone(&self) -> GroupEncryptionParameters<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 GroupEncryptionParameters<G> where
G: Group,
[src]
impl<G> Debug for GroupEncryptionParameters<G> where
G: Group,
[src]impl<G, SG, D> From<GroupEncryptionParameters<G>> for SchnorrSignature<SG, D> where
G: Group + ProjectiveCurve + CanonicalSerialize,
D: Digest,
SG: Group + CanonicalDeserialize,
[src]
impl<G, SG, D> From<GroupEncryptionParameters<G>> for SchnorrSignature<SG, D> where
G: Group + ProjectiveCurve + CanonicalSerialize,
D: Digest,
SG: Group + CanonicalDeserialize,
[src]Map the GroupEncryption parameters into a Schnorr signature scheme.
pub fn from(parameters: GroupEncryptionParameters<G>) -> SchnorrSignature<SG, D>
[src]
pub fn from(parameters: GroupEncryptionParameters<G>) -> SchnorrSignature<SG, D>
[src]Performs the conversion.
impl<G, SG, D> From<GroupEncryptionParameters<G>> for GroupEncryption<G, SG, D> where
G: Group + ProjectiveCurve,
D: Digest,
SG: Group,
[src]
impl<G, SG, D> From<GroupEncryptionParameters<G>> for GroupEncryption<G, SG, D> where
G: Group + ProjectiveCurve,
D: Digest,
SG: Group,
[src]pub fn from(
parameters: GroupEncryptionParameters<G>
) -> GroupEncryption<G, SG, D>
[src]
pub fn from(
parameters: GroupEncryptionParameters<G>
) -> GroupEncryption<G, SG, D>
[src]Performs the conversion.
impl<G> FromBytes for GroupEncryptionParameters<G> where
G: Group,
[src]
impl<G> FromBytes for GroupEncryptionParameters<G> where
G: Group,
[src]impl<G> PartialEq<GroupEncryptionParameters<G>> for GroupEncryptionParameters<G> where
G: Group,
[src]
impl<G> PartialEq<GroupEncryptionParameters<G>> for GroupEncryptionParameters<G> where
G: Group,
[src]impl<G> ToBytes for GroupEncryptionParameters<G> where
G: Group,
[src]
impl<G> ToBytes for GroupEncryptionParameters<G> where
G: Group,
[src]impl<F, G> ToConstraintField<F> for GroupEncryptionParameters<G> where
F: Field,
G: Group + ToConstraintField<F>,
[src]
impl<F, G> ToConstraintField<F> for GroupEncryptionParameters<G> where
F: Field,
G: Group + ToConstraintField<F>,
[src]pub fn to_field_elements(&self) -> Result<Vec<F, Global>, ConstraintFieldError>
[src]
impl<G> Eq for GroupEncryptionParameters<G> where
G: Group,
[src]
G: Group,
Auto Trait Implementations
impl<G> RefUnwindSafe for GroupEncryptionParameters<G> where
G: RefUnwindSafe,
G: RefUnwindSafe,
impl<G> Send for GroupEncryptionParameters<G>
impl<G> Sync for GroupEncryptionParameters<G>
impl<G> Unpin for GroupEncryptionParameters<G> where
G: Unpin,
G: Unpin,
impl<G> UnwindSafe for GroupEncryptionParameters<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>,