mirror of
https://github.com/arnaucube/fhe-study.git
synced 2026-01-24 04:33:52 +01:00
polish & clean a bit
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use anyhow::Result;
|
||||
|
||||
use arith::{Matrix, Ring, Rq, C, R};
|
||||
use arith::{Matrix, Rq, C, R};
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct SecretKey(Rq);
|
||||
|
||||
@@ -154,7 +154,6 @@ mod tests {
|
||||
.map(|e| (*e as f64 / (scale_factor_u64 as f64)).round() as u64)
|
||||
.collect();
|
||||
let m_decrypted = Rq::from_vec_u64(¶m.ring, m_decrypted);
|
||||
// assert_eq!(m_decrypted, Rq::from(m_raw));
|
||||
assert_eq!(m_decrypted, m_raw.to_rq(q));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user