add discretized torus & 𝕋_<N,q>[X]; organize a bit arith crate

This commit is contained in:
2025-07-22 06:22:06 +00:00
parent 188bc7fa7f
commit d60eb1dff1
12 changed files with 909 additions and 519 deletions

View File

@@ -1,6 +1,6 @@
use anyhow::Result;
use arith::{Matrix, Rq, C, R};
use arith::{Matrix, Ring, Rq, C, R};
#[derive(Clone, Debug)]
pub struct SecretKey<const Q: u64, const N: usize>(Rq<Q, N>);