The Beginner's Textbook for Fully Homomorphic Encryption
Pith reviewed 2026-05-23 01:31 UTC · model grok-4.3
The pith
Fully homomorphic encryption supports addition and multiplication on ciphertexts to enable complex functions without decryption.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
Fully Homomorphic Encryption (FHE) is a cryptographic scheme that enables computations to be performed directly on encrypted data, as if the data were in plaintext. After all computations are performed on the encrypted data, it can be decrypted to reveal the result. The decrypted value matches the result that would have been obtained if the same computations were applied to the plaintext data. FHE supports basic operations such as addition and multiplication on encrypted numbers. Using these fundamental operations, more complex computations can be constructed, including subtraction, division, logic gates, and even advanced mathematical functions such as ReLU and sigmoid.
What carries the argument
Addition and multiplication on encrypted numbers, which serve as the foundation for building logic gates and function approximations.
If this is right
- A server can run an ML model on a client's encrypted features and return only an encrypted prediction that the client alone can decrypt.
- Smart contracts can execute on encrypted inputs while preserving both confidentiality and the public verifiability of the ledger.
- Encrypted database queries and privacy-preserving searches become feasible without exposing plaintext records.
- Multi-party protocols for digital signatures can incorporate FHE to keep intermediate values hidden.
Where Pith is reading between the lines
- The textbook's step-by-step construction of gates and activations could serve as a template for verifying new FHE libraries against the same functional specifications.
- Approximation trade-offs described for ReLU and trigonometric functions suggest concrete benchmarks for measuring accuracy versus noise growth in different parameter sets.
- The blockchain application points to a possible hybrid where FHE handles private state while zero-knowledge proofs handle public integrity checks.
Load-bearing premise
The textbook's explanations of FHE operations, approximations, and security properties accurately represent established cryptographic results.
What would settle it
An implementation of one of the described function approximations, such as sigmoid on encrypted inputs, that produces a decrypted output differing from the expected plaintext result by more than the stated error bound.
Figures
read the original abstract
Fully Homomorphic Encryption (FHE) is a cryptographic scheme that enables computations to be performed directly on encrypted data, as if the data were in plaintext. After all computations are performed on the encrypted data, it can be decrypted to reveal the result. The decrypted value matches the result that would have been obtained if the same computations were applied to the plaintext data. FHE supports basic operations such as addition and multiplication on encrypted numbers. Using these fundamental operations, more complex computations can be constructed, including subtraction, division, logic gates (e.g., AND, OR, XOR, NAND, MUX), and even advanced mathematical functions such as ReLU, sigmoid, and trigonometric functions (e.g., sin, cos). These functions can be implemented either as exact formulas or as approximations, depending on the trade-off between computational efficiency and accuracy. FHE enables privacy-preserving machine learning by allowing a server to process the client's data in its encrypted form through an ML model. With FHE, the server learns neither the plaintext version of the input features nor the inference results. Only the client, using their secret key, can decrypt and access the results at the end of the service protocol. FHE can also be applied to confidential blockchain services, ensuring that sensitive data in smart contracts remains encrypted and confidential while maintaining the transparency and integrity of the execution process. Other applications of FHE include secure outsourcing of data analytics, encrypted database queries, privacy-preserving searches, efficient multi-party computation for digital signatures, and more. A dynamic website version is available at (https://fhetextbook.github.io). Please report any bugs or errors to the Github issues board.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript is a beginner's textbook on Fully Homomorphic Encryption (FHE). It claims that FHE enables direct computation on encrypted data yielding results identical to plaintext computation, supports addition and multiplication on ciphertexts from which subtraction, division, logic gates (AND, OR, XOR, NAND, MUX), and functions such as ReLU, sigmoid, sin, and cos can be constructed (exactly or via polynomial approximations), and enables privacy-preserving machine learning (server processes encrypted client data without learning inputs or outputs) as well as confidential blockchain services and other applications such as secure data analytics and encrypted queries. A dynamic website version is referenced.
Significance. The work is purely expository and summarizes established FHE properties (e.g., CKKS-style approximate arithmetic, bootstrapping for circuit depth) without introducing new derivations, proofs, or empirical results. If the explanations are accurate, it may have pedagogical value as an accessible introduction for beginners in cryptography and privacy-preserving computation, but its significance for a research journal is limited by the absence of novel contributions.
minor comments (1)
- [Abstract] The abstract references a dynamic website (https://fhetextbook.github.io) and GitHub issues board; if the manuscript is intended for journal publication, consider whether these external resources should be described in a dedicated section or appendix for reproducibility.
Simulated Author's Rebuttal
We thank the referee for their review and for recommending acceptance. We appreciate the acknowledgment that the manuscript provides an accessible introduction with pedagogical value for beginners in cryptography and privacy-preserving computation.
Circularity Check
No significant circularity; purely expository textbook
full rationale
The document is a beginner's textbook on established FHE properties with no derivations, equations, predictions, fitted parameters, or novel claims. All described operations (addition/multiplication on ciphertexts, circuit constructions for gates, polynomial approximations for ReLU/sigmoid, and applications in PPML/blockchain) are standard results from the literature (e.g., CKKS, bootstrapping). No self-citations, ansatzes, or load-bearing steps exist that could reduce to inputs by construction. The reader's assessment of score 0.0 is confirmed by the absence of any derivation chain.
Axiom & Free-Parameter Ledger
axioms (1)
- domain assumption Security of underlying lattice-based or other FHE schemes against chosen-plaintext attacks
Reference graph
Works this paper leans on
-
[1]
Fields and cyclotomic polynomials, 2024
Cornell University. Fields and cyclotomic polynomials, 2024. https://e.math.cornell.edu/ people/belk/numbertheory/CyclotomicPolynomials.pdf
work page 2024
-
[2]
Wikipedia. Polynomial ring, 2024. https://en.wikipedia.org/wiki/Polynomial_ring
work page 2024
-
[3]
Al Doerr, Ken Levasseur. Polynomial rings, 2024. https://math.libretexts.org/Bookshelves/ Combinatorics_and_Discrete_Mathematics/Applied_Discrete_Structures_(Doerr_ and_Levasseur)/16%3A_An_Introduction_to_Rings_and_Fields/16.03%3A_Polynomial_ Rings
work page 2024
-
[4]
Chinese remainder theorem, 2024
Mei Li, Curtis Clement et al. Chinese remainder theorem, 2024. https://brilliant.org/wiki/ chinese-remainder-theorem/
work page 2024
-
[5]
Polynomials and the fast fourier transform (fft), 2011
David Maier. Polynomials and the fast fourier transform (fft), 2011. http://web.cecs.pdx.edu/ ˜maier/cs584/Lectures/lect07b-11-MG.pdf
work page 2011
-
[6]
Lattice-basedcryptographyandthelearningwith errorsproblem, 2017
StephenHarrigan. Lattice-basedcryptographyandthelearningwith errorsproblem, 2017. https: //mysite.science.uottawa.ca/mnevins/papers/StephenHarrigan2017LWE.pdf
work page 2017
-
[7]
Tfhe deep dive - part i - ciphertext types, 2022
Ilaria Chillotti. Tfhe deep dive - part i - ciphertext types, 2022. https://www.zama.ai/post/ tfhe-deep-dive-part-1
work page 2022
-
[8]
Tfhe deep dive - part ii - encodings and linear leveled operation, 2022
Ilaria Chillotti. Tfhe deep dive - part ii - encodings and linear leveled operation, 2022. https: //www.zama.ai/post/tfhe-deep-dive-part-2
work page 2022
-
[9]
Tfhe deep dive - part iii - key switching and leveled multiplications, 2022
Ilaria Chillotti. Tfhe deep dive - part iii - key switching and leveled multiplications, 2022. https://www.zama.ai/post/tfhe-deep-dive-part-3
work page 2022
-
[10]
Ilaria Chillotti. Tfhe deep dive - part iv - programmable bootstrapping, 2022.https://www.zama.ai/ post/tfhe-deep-dive-part-4
work page 2022
-
[11]
Guide to fully homomorphic encryption over the [discretized] torus
Marc Joye. Guide to fully homomorphic encryption over the [discretized] torus. Cryptology ePrint Archive, Paper 2021/1402, 2021. https://eprint.iacr.org/2021/1402
work page 2021
-
[12]
Introduction to the BFV encryption scheme, 2021
Inferati Inc. Introduction to the BFV encryption scheme, 2021. https://www.inferati.com/ blog/fhe-schemes-bfv
work page 2021
-
[13]
Somewhat practical fully homomorphic encryption
Junfeng Fan and Frederik Vercauteren. Somewhat practical fully homomorphic encryption. Cryptology ePrint Archive, Paper 2012/144, 2012. https://eprint.iacr.org/2012/144
work page 2012
-
[14]
Bootstrapping for BGV and BFV revisited
Robin Geelen and Frederik Vercauteren. Bootstrapping for BGV and BFV revisited. Cryptology ePrint Archive, Paper 2022/1363, 2022. https://eprint.iacr.org/2022/1363
work page 2022
-
[15]
Shai Halevi and Victor Shoup. Bootstrapping for helib. J. Cryptol., 34(1), January 2021. https: //doi.org/10.1007/s00145-020-09368-7
-
[16]
A note on lower digits extraction polynomial for bootstrapping,
Mingjia Huo, Kewen Wu, and Qi Ye. A note on lower digits extraction polynomial for bootstrapping,
-
[17]
https://arxiv.org/abs/1906.02867. 256
work page internal anchor Pith review Pith/arXiv arXiv 1906
-
[18]
Fully homomorphic encryption for cyclotomic prime moduli
Robin Geelen and Frederik Vercauteren. Fully homomorphic encryption for cyclotomic prime moduli. Cryptology ePrint Archive, Paper 2024/1587, 2024. https://eprint.iacr.org/2024/1587
work page 2024
-
[19]
Bootstrapping for approximate homomorphic encryption
Jung Hee Cheon, Kyoohyung Han, Andrey Kim, Miran Kim, and Yongsoo Song. Bootstrapping for approximate homomorphic encryption. In Jesper Buus Nielsen and Vincent Rijmen, editors, Advances in Cryptology – EUROCRYPT 2018 , pages 360–384, Cham, 2018. Springer International Publishing. https://eprint.iacr.org/2018/153.pdf
work page 2018
-
[20]
Joon-Woo Lee, Eunsang Lee, Yongwoo Lee, Young-Sik Kim, and Jong-Seon No. High-precision bootstrapping of RNS-CKKS homomorphic encryption using optimal minimax polynomial approximation and inverse sine function. Cryptology ePrint Archive, Paper 2020/552, 2020. https://eprint.iacr.org/2020/552
work page 2020
-
[21]
META-BTS: Bootstrapping precision beyond the limit
Youngjin Bae, Jung Hee Cheon, Wonhee Cho, Jaehyung Kim, and Taekyung Kim. META-BTS: Bootstrapping precision beyond the limit. Cryptology ePrint Archive, Paper 2022/1167, 2022. https://eprint.iacr.org/2022/1167
work page 2022
-
[22]
Design and implementation of HElib: a homomorphic encryption library
Shai Halevi and Victor Shoup. Design and implementation of HElib: a homomorphic encryption library. Cryptology ePrint Archive, Paper 2020/1481, 2020. https://eprint.iacr.org/2020/ 1481
work page 2020
-
[23]
Fully homomorphic encryption without bootstrapping
Masahiro Yagisawa. Fully homomorphic encryption without bootstrapping. Cryptology ePrint Archive, Paper 2015/474, 2015. https://eprint.iacr.org/2015/474
work page 2015
-
[24]
Craig Gentry, Shai Halevi, and Nigel P. Smart. Homomorphic evaluation of the AES circuit. Cryptology ePrint Archive, Paper 2012/099, 2012. https://eprint.iacr.org/2012/099
work page 2012
-
[25]
A full RNS variant of FV like somewhat homomorphic encryption schemes
Jean-Claude Bajard, Julien Eynard, Anwar Hasan, and Vincent Zucca. A full RNS variant of FV like somewhat homomorphic encryption schemes. Cryptology ePrint Archive, Paper 2016/510,
work page 2016
-
[26]
https://eprint.iacr.org/2016/510
work page 2016
-
[27]
Robin Geelen, Michiel Van Beirendonck, Hilder V. L. Pereira, Brian Huffman, Tynan McAuley, Ben Selfridge, Daniel Wagner, Georgios Dimou, Ingrid Verbauwhede, Frederik Vercauteren, and David W. Archer. BASALISC: Programmable hardware accelerator for BGV fully homomorphic encryption. Cryptology ePrint Archive, Paper 2022/657, 2022. https://eprint.iacr.org/2022/657
work page 2022
-
[28]
A full rns variant of approximate homomorphic encryption
Jung Hee Cheon, Kyoohyung Han, Andrey Kim, Miran Kim, and Yongsoo Song. A full rns variant of approximate homomorphic encryption. In Selected Areas in Cryptography – SAC 2018: 25th International Conference, Calgary, AB, Canada, August 15–17, 2018, Revised Selected Papers , page 347–368, Berlin, Heidelberg, 2018. Springer-Verlag. https://eprint.iacr.org/20...
work page 2018
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.