Skip to main content

FieldKeys

Type Alias FieldKeys 

Source
pub type FieldKeys<F, M> = PairwiseAuthKey<FieldElement<F>, FieldElements<F, M>>;
Expand description

PairwiseAuthKey for a batch of M field values sharing a single global key.

See also FieldKey<F> for the single-value variant.

α and β₁…βₘ, such that MAC(xₜ) = α · xₜ + βₜ

Aliased Type§

#[repr(C)]
pub struct FieldKeys<F, M> { pub alpha: Arc<FieldElement<F>>, pub beta: HeapArray<FieldElement<F>, M>, }

Fields§

§alpha: Arc<FieldElement<F>>§beta: HeapArray<FieldElement<F>, M>

Trait Implementations§

Source§

impl<'a, F: FieldExtension, M: Positive> IntoIterator for &'a FieldKeys<F, M>

Source§

type Item = FieldShareKeyRef<'a, F>

The type of the elements being iterated over.
Source§

type IntoIter = FieldShareKeysRefIterator<'a, F, M>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<F: FieldExtension, M: Positive> IntoIterator for FieldKeys<F, M>

Source§

type Item = PairwiseAuthKey<FieldElement<F>, FieldElement<F>>

The type of the elements being iterated over.
Source§

type IntoIter = FieldShareKeysIterator<F, M>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more