Skip to main content

PointShares

Type Alias PointShares 

Source
pub type PointShares<C, M> = PairwiseAuthShare<CurvePoints<C, M>, ScalarAsExtension<C>, CurvePoints<C, M>>;
Expand description

A share of a batch of M curve points, with its associated MACs and the keys for all other parties’ shares.

A vectorised counterpart of PointShare<C>: same MAC/key structure, but all slots are stored as fixed-length HeapArrays of size M.

Alias for PairwiseAuthShare<CurvePoints<C,M>, ScalarAsExtension<C>, CurvePoints<C,M>>. See also PointShare<C> for the single-value variant.

Aliased Type§

pub struct PointShares<C, M> { /* private fields */ }

Trait Implementations§

Source§

impl<C: Curve, M: Positive> From<PairwiseAuthShare<HeapArray<SubfieldElement<<C as Curve>::Scalar>, M>, FieldElement<<C as Curve>::Scalar>, HeapArray<FieldElement<<C as Curve>::Scalar>, M>>> for PointShares<C, M>

Source§

fn from(scalar_shares: ScalarShares<C, M>) -> Self

Converts to this type from the input type.