You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: revert encrypt workaround after Poulpy prepare fix
- Bump poulpy to rev 067fd785; encrypt via FheUint::encrypt_sk + glwe enc infos
- Drop prepared cache on Ciphertext; eval_binary prepares operands with fhe_uint_prepare_tmp_bytes
- Size scratch from Poulpy *_tmp_bytes for encrypt, decrypt, keygen, and each homomorphic op
- encrypt now takes (value, sk) only; update README, example, and tests
- Mark milestone issue #24 done in README
Copy file name to clipboardExpand all lines: README.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# 🦑 Squid
2
-
2
+
3
3
**An ergonomic Rust wrapper for [Poulpy](https://github.com/phantomzone-org/poulpy), making Fully Homomorphic Encryption accessible without sacrificing control.**
Poulpy is a low-level, modular toolkit exposing the full machinery of lattice-based homomorphic encryption. That power comes with sharp edges: manual scratch arenas, explicit lifecycle transitions, trait-heavy APIs. `squid` wraps Poulpy with a smaller, opinionated surface so you can write FHE programs without managing every byte of workspace memory or tracking which representation a ciphertext currently lives in.
@@ -21,8 +21,8 @@ fn main() {
21
21
let (sk, ek) =ctx.keygen();
22
22
23
23
// Encrypt two 32-bit integers
24
-
leta=ctx.encrypt::<u32>(255, &sk, &ek);
25
-
letb=ctx.encrypt::<u32>(30, &sk, &ek);
24
+
leta=ctx.encrypt::<u32>(255, &sk);
25
+
letb=ctx.encrypt::<u32>(30, &sk);
26
26
27
27
// Homomorphic addition: computes (a + b) under encryption
28
28
letc=ctx.add(&a, &b, &ek);
@@ -38,24 +38,24 @@ fn main() {
38
38
39
39
All operations currently require `T = u32` (the only width with compiled BDD circuits in Poulpy). Encrypt and decrypt work for `u8`, `u16`, and `u32`.
0 commit comments