pub trait LweSecretKeyEntity: AbstractEntity<Kind = LweSecretKeyKind> {
fn lwe_dimension(&self) -> LweDimension;
}
Expand description
A trait implemented by types embodying an LWE secret key.
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 Methods
sourcefn lwe_dimension(&self) -> LweDimension
fn lwe_dimension(&self) -> LweDimension
Returns the LWE dimension of the key.