pub trait LweSecretKeyEntity: AbstractEntity<Kind = LweSecretKeyKind> {
    type KeyDistribution: KeyDistributionMarker;

    fn lwe_dimension(&self) -> LweDimension;
}
Expand description

A trait implemented by types embodying an LWE secret key.

An LWE secret key is associated with a KeyDistribution type, which conveys its distribution.

Formal Definition

LWE Secret Key

We consider a secret key: $$\vec{s} \in \mathbb{Z}^n$$ This vector contains $n$ integers that have been sampled for some distribution which is either uniformly binary, uniformly ternary, gaussian or even uniform.

Required Associated Types

The distribution of this key.

Required Methods

Returns the LWE dimension of the key.

Implementors