<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

	<title>Ravital Solomon's Blog</title>
	<link href="http://ravital.github.io/blog/atom.xml" rel="self"/>
	<link href="http://ravital.github.io/blog"/>
	<updated>2026-09-23T19:07:01+00:00</updated>
	<id>http://ravital.github.io/blog</id>
	<author>
		<name>Ravital Solomon</name>
		<email>ravitalasolomon@gmail.com</email>
	</author>

	
		<entry>
			<title>Inside the grey box of post-quantum cryptography standards</title>
			<link href="http://ravital.github.io/blog/2026/09/23/pqc"/>
			<updated>2026-09-23T00:00:00+00:00</updated>
			<id>http://ravital.github.io/blog/2026/09/23/pqc</id>
			<content type="html">&lt;p&gt;&lt;em&gt;Note: None of this article is AI written.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you follow &lt;a href=&quot;https://eprint.iacr.org/&quot;&gt;ePrint&lt;/a&gt;, &lt;a href=&quot;https://zeroknowledge.fm/&quot;&gt;ZK Podcast&lt;/a&gt;, or one of the many other sources covering cryptography research, you’ll notice there are new cryptographic schemes being proposed on a monthly (if not weekly) basis. Many of these works improve on efficiency and appear in major academic venues like &lt;a href=&quot;https://eurocrypt.iacr.org/&quot;&gt;Eurocrypt&lt;/a&gt;. As a cryptographer, I often get asked about the process of going from academic paper to production and why we can’t just deploy these new peer-reviewed works.&lt;/p&gt;

&lt;p&gt;This actually sidesteps a more fundamental question: &lt;strong&gt;what cryptography do we use today and why?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In speaking with technical investors who actively fund companies working on novel cryptography and engineers working at such companies, we’ve found there’s little understanding of how cryptography is adopted. A shockingly small set of people understand the role that (the relatively unknown federal agency) NIST has in this process either.&lt;/p&gt;

&lt;p&gt;This is an extreme oversight as far as we’re concerned, especially when it comes to understanding the transition to post-quantum cryptography and the rise of multi-party/threshold cryptography.&lt;/p&gt;

&lt;p&gt;In our three part series, we’ll cover the past, present, and future of NIST, cryptography, and its role in blockchain. Blockchain, despite all its detractors, has long served as the frontier for deployment of novel cryptography. The concept of decentralized permissionless money also presents an extremely attractive attack vector for those with a quantum computer.&lt;/p&gt;

&lt;p&gt;As part of this blog post, we’ll cover the &lt;em&gt;past&lt;/em&gt;, namely how the cryptography standardization process works and the results from the 8+ year long post-quantum cryptography competition. This post will set the stage so we can discuss how the decisions being made for blockchain diverge from the rest of industry as part of our next post.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;a href=&quot;#introduction&quot;&gt;What cryptography do we use and why?&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#nist&quot;&gt;NIST and cryptography&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#greybox&quot;&gt;Inside the grey box of cryptography standardization&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#road&quot;&gt;The (long) road to standardize post-quantum cryptography&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#competition&quot;&gt;The competition and its results&lt;/a&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#kems&quot;&gt;KEMs&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#signatures&quot;&gt;Signatures&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#meancryptography&quot;&gt;What does this mean for cryptography?&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#conclusion&quot;&gt;Parting thoughts&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;what-cryptography-do-we-use-and-why-&quot;&gt;What cryptography do we use and why? &lt;a name=&quot;introduction&quot;&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In theory, we could create an app or infra project and deploy any cryptography we conceivably desire in it. However, established applications and infrastructure providers tend to be a lot more risk-averse and for good reason:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Even if a paper is published in a well-respected peer-reviewed venue, there is no guarantee that the construction is truly “secure.” A small number of reviewers look over the paper and have limited time to dedicate to scrutinizing each work. The original Zerocash paper (which formed the basis of the cryptocurrency project &lt;a href=&quot;https://z.cash/&quot;&gt;Zcash&lt;/a&gt;), published at &lt;a href=&quot;https://ieeexplore.ieee.org/xpl/conhome/1000646/all-proceedings&quot;&gt;S&amp;amp;P&lt;/a&gt;, was later discovered to &lt;a href=&quot;https://tachyon.z.cash/blog/detecting-counterfeiting-in-zcash/&quot;&gt;have a bug&lt;/a&gt;. Furthermore, most organizations do not have the ability to vet state-of-the-art cryptography themselves.&lt;/li&gt;
  &lt;li&gt;Upgrading cryptography can be a highly non-trivial task for engineering and may cause interop issues. This generally means that cryptography must be picked very carefully to prevent unnecessary breaking changes.&lt;/li&gt;
  &lt;li&gt;Depending on the company’s customers and vendors, there may be requirements or market standards around what cryptography can be used. We’ll dive into this shortly!&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;As a case study, let’s look at Ethereum and what cryptography is used in its stack today…&lt;/p&gt;

&lt;h3 id=&quot;dissecting-the-cryptography-used-in-ethereum-today-&quot;&gt;Dissecting the cryptography used in Ethereum today &lt;a name=&quot;ethereum&quot;&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;We’ll focus on the cryptography employed by users, in the EVM, and for off-chain communication and local storage.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Signing:&lt;/strong&gt; As an Ethereum account owner, you must &lt;em&gt;sign&lt;/em&gt; transactions so that others know you’re the actual account owner. This is accomplished via a digital signature which allows the key owner to produce an “unforgeable” signature and anyone to check that the signature belongs to the correct party. Currently, Ethereum uses the Elliptic Curve Digital Signature Algorithm (ECDSA), which forms the basis of NIST’s digital signature standard, specifically &lt;a href=&quot;https://csrc.nist.gov/pubs/fips/186-5/final&quot;&gt;FIPS 186-5&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Hashing:&lt;/strong&gt; The EVM makes use of a hash function to enable efficient mapping of data for address generation, transactions, and much more. Currently, Ethereum uses Keccak-256 for this, which traces its origins back to NIST’s hash function &lt;a href=&quot;https://csrc.nist.gov/projects/hash-functions/sha-3-project&quot;&gt;competition&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Symmetric encryption:&lt;/strong&gt; To store data locally and enable secure private communication between two parties (e.g. in Metamask), AES is often used. AES is a symmetric key encryption scheme (i.e. a lightweight encryption scheme in which whoever can read/decrypt messages can also create/encrypt messages) which traces its origins back to NIST’s Advanced Encryption Standard, specifically &lt;a href=&quot;https://www.nist.gov/publications/advanced-encryption-standard-aes-0&quot;&gt;FIPS 197&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You’ll notice all of this cryptography traces its origins back to NIST.&lt;sup id=&quot;fnref:1&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:1&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt; At this point, you may be wondering who or what is “NIST” and what are “FIPS?” Well, &lt;a href=&quot;https://www.nist.gov/&quot;&gt;NIST&lt;/a&gt; (aka the National Institute of Standards and Technology) is a US federal agency that holds various “competitions” to determine cryptographic standards, formally known as “Federal Information Processing Standards” (FIPS).&lt;/p&gt;

&lt;h2 id=&quot;nist-and-cryptography-&quot;&gt;NIST and cryptography &lt;a name=&quot;nist&quot;&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;NIST dates back to 1901 and was formerly known as the “National Bureau of Standards.” &lt;a href=&quot;https://www.nist.gov/&quot;&gt;Their website&lt;/a&gt; does relatively little to clear up what exactly this agency does but roughly speaking their mission includes anticipating the future, co-developing new technology, and fostering standards. They appear to have a number of laboratories and research efforts across cryptography, computer science more generally, engineering, biotech, energy, and physics.&lt;/p&gt;

&lt;p&gt;So &lt;strong&gt;why should you care about NIST?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;NIST sets the standard (sometimes &lt;em&gt;de jure&lt;/em&gt;, oftentimes &lt;em&gt;de facto&lt;/em&gt;) of what cryptography should be used by institutions in the US. Their standards are highly influential and often inform what other countries adopt. The vast majority of cryptography you use today originates via NIST competitions and will almost certainly continue to do so for decades to come.&lt;/p&gt;

&lt;p&gt;The next question that likely comes to mind is: &lt;strong&gt;who has to follow the standards set by NIST?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;At this point, things require clarification. Technically speaking, rather few organizations need to “comply with FIPS” which involves a lot more than just using the cryptographic algorithms coming from the accompanying standard. Orgs that must “comply with FIPS” include federal agencies and those that operate systems for the federal government (e.g. certain cloud providers). Compliance includes things like running only approved algorithms with pre-chosen parameter sets, specific version control rules/logging, formal testing by a third party, obtaining certificates, etc. It is a rather tedious process that you definitely do not want to suffer through unless you have to.&lt;/p&gt;

&lt;p&gt;Thus, the vast majority of companies are not “complying with FIPS” but &lt;em&gt;are&lt;/em&gt; using the underlying cryptography from various FIPS.&lt;/p&gt;

&lt;p&gt;Finally, you might wonder: &lt;strong&gt;if most companies aren’t required to use the cryptography put out in NIST’s standards, why do they do so anyway?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Likely, risk management and market pressure. The cryptography in NIST standards has been heavily scrutinized by dozens (if not hundreds) of experts over a rigorous multi-year process. If a company decides on its own to adopt some novel cryptography out of a peer-reviewed paper, they will have to take the bulk of the blame if the scheme is later found to be insecure.&lt;/p&gt;

&lt;p&gt;Thus, the vast majority of orgs choose to adopt the underlying cryptography in NIST standards. These standards generally form from open competition calls put out by NIST. We’ll dive into the process next.&lt;/p&gt;

&lt;h2 id=&quot;inside-the-grey-box-of-cryptography-standardization-&quot;&gt;Inside the grey box of cryptography standardization &lt;a name=&quot;greybox&quot;&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;How do we end up with a cryptography standard (say for post-quantum digital signatures)?&lt;/p&gt;

&lt;p&gt;It all starts with NIST putting out a &lt;a href=&quot;https://csrc.nist.gov/news/2016/public-key-post-quantum-cryptographic-algorithms&quot;&gt;formal call for proposals&lt;/a&gt;, where they solicit submissions for a particular class of cryptographic algorithms (e.g. digital signatures). They provide detailed guidelines on what must be included as part of the proposal to be considered. These calls are put out quite far in advance of the deadline so competitors have sufficient time to meet the requirements (e.g. spec, security proofs, implementation, performance numbers). Most submissions build upon prior work in the competitors’ own fields (sometimes their own publications) and are &lt;em&gt;not&lt;/em&gt; entirely new constructions from scratch.&lt;/p&gt;

&lt;p&gt;In reality, this process is a competition that proceeds in multiple rounds across multiple years. Submissions are pitted against one another, with NIST ultimately determining which proposals make it to the next round.&lt;/p&gt;

&lt;p&gt;However, the process isn’t completely opaque. NIST often provides &lt;a href=&quot;https://nvlpubs.nist.gov/nistpubs/ir/2020/NIST.IR.8309.pdf&quot;&gt;reports&lt;/a&gt;, detailing what the strengths and weaknesses are of each proposal and why they decided to eliminate it. Some criteria include operation times (e.g. key generation, encryption, decryption times), size (e.g. key and ciphertext sizes), the underlying security assumptions and their maturity level, resistance to side channel attacks, the level of difficulty to implement the system and the likelihood of implementation errors, and licensing (&lt;a href=&quot;https://nvlpubs.nist.gov/nistpubs/ir/2020/NIST.IR.8309.pdf&quot;&gt;NIST notes that it prefers algorithms with royalty-free licensing&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;While in theory anyone can participate (even sending multiple submissions), in practice the vast majority of submissions come from well-respected cryptographers. Most submissions come from teams of 3+ experts, collaborating across different academic institutions and with industry. NIST generally makes the accepted submissions available for &lt;a href=&quot;https://csrc.nist.gov/projects/post-quantum-cryptography/post-quantum-cryptography-standardization/round-1-submissions&quot;&gt;anyone to view&lt;/a&gt; so that you read them, see the team members, and comment on the proposals if you notice some flaws/issues. Additionally, NIST often organizes workshops and conferences in which the community at large and the participants can share updates on their work, concerns about proposals, etc.&lt;/p&gt;

&lt;p&gt;During this multi-year process, it is not uncommon for cryptographers to break some of the later round proposals. A great example comes from a cryptographer at IBM who broke a post-quantum digital signature scheme called “&lt;a href=&quot;https://csrc.nist.gov/CSRC/media/Presentations/Rainbow/images-media/Rainbow-April2018.pdf&quot;&gt;Rainbow&lt;/a&gt;” that had made it all the way to the &lt;a href=&quot;https://csrc.nist.gov/News/2020/pqc-third-round-candidate-announcement&quot;&gt;third round&lt;/a&gt;. The resulting paper was aptly titled “&lt;a href=&quot;https://eprint.iacr.org/2022/214.pdf&quot;&gt;Breaking Rainbow Takes a Weekend on a Laptop&lt;/a&gt;” and won the author best early career research paper at Crypto 2022.&lt;/p&gt;

&lt;h2 id=&quot;the-long-road-to-standardize-post-quantum-cryptography-&quot;&gt;The (long) road to standardize post-quantum cryptography &lt;a name=&quot;road&quot;&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;All of this takes us to the present and NIST’s most recent call to standardize post-quantum cryptography, specifically a post-quantum key encapsulation mechanism (KEM) and a digital signature. Roughly speaking, a KEM is used to establish a symmetric key between two parties (as symmetric/private key cryptography is a lot more efficient than asymmetric aka “public key” cryptography).&lt;/p&gt;

&lt;p&gt;Post-quantum cryptography is cryptography resistant to attacks from a quantum computer. Most public key cryptography we use today is &lt;em&gt;not&lt;/em&gt; post-quantum as it relies on elliptic curves. The primary attacks we have to worry about are Shor’s algorithm and Grover’s algorithm; Shor’s algorithm is relevant for public key cryptography (“breaking” the security of elliptic curve based cryptography) whereas Grover’s is relevant to private key cryptography (halving the security level so that we need to accordingly increase the parameters e.g. AES-256 reduces from 256 bits of security to 128 bits of security). We’d recommend &lt;a href=&quot;https://www.youtube.com/watch?v=cq4atriB-Rc&quot;&gt;this video&lt;/a&gt; if you’d like to dive more into quantum computing.&lt;/p&gt;

&lt;p&gt;There’s been a lot of speculation from experts (and non-experts alike) on how far out a sufficiently interesting/powerful quantum computer is. We think these opinions matter relatively little as NIST has essentially made a decision on our behalf by &lt;a href=&quot;https://csrc.nist.gov/csrc/media/Presentations/2025/nist-pqc-the-road-ahead/images-media/rwcpqc-march2025-moody.pdf&quot;&gt;&lt;em&gt;disallowing&lt;/em&gt; non-post quantum digital signatures and KEMs after 2035&lt;/a&gt;.&lt;/p&gt;

&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;https://ravital.github.io/timeline1.png&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;the-competition-and-its-results-&quot;&gt;The competition and its results &lt;a name=&quot;competition&quot;&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The NIST competition to find a post-quantum digital signature and KEM kicked off in December 2016, with submissions due November 2017. There were a total of 69 complete submissions (i.e. submissions meeting the requirements), with submitters presenting at a NIST-organized conference a few months later. These 69 submissions were whittled down to 26 in Round 2 (Jan 2019) and then 7 finalists in Round 3 (July 2020). Competitors often update their submissions as they progress through the rounds, e.g. improving on security and performance, taking into account feedback provided by NIST.&lt;/p&gt;

&lt;p&gt;With elliptic curve cryptography compromised, the primary options for a post-quantum future are (1) lattice-based cryptography, (2) hash-based cryptography, and (3) code-based cryptography. If you’re in the crypto space, you may have heard of fully homomorphic encryption (FHE), which relies on lattice-based cryptography. You’ve likely also heard of STARKs, a hash-based proof system used in some zkVMs. Very few people (ourselves included) have encountered code-based cryptography in the wild or studied it.&lt;/p&gt;

&lt;p&gt;On &lt;a href=&quot;https://csrc.nist.gov/news/2022/pqc-candidates-to-be-standardized-and-round-4&quot;&gt;July 2022&lt;/a&gt;, NIST determined that 1 KEM and 3 digital signature schemes would be standardized (thus forming the basis of new FIPS); these were CRYSTALS-Kyber (a lattice-based KEM), CRYSTALS-Dilithium (a lattice-based signature), FALCON (another lattice-based signature), and SPHINCS+ (a hash-based signature).&lt;/p&gt;

&lt;p&gt;NIST continued its search for another KEM, ideally one not based on lattice cryptography, and decided in &lt;a href=&quot;https://csrc.nist.gov/news/2025/hqc-announced-as-a-4th-round-selection&quot;&gt;March 2025&lt;/a&gt; that HQC (based on structured codes) would additionally form the basis of a new standard.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Name&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Category&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Cryptography&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Benefits&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Drawbacks&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;CRYSTALS-Dilithium (&lt;a href=&quot;https://csrc.nist.gov/Projects/post-quantum-cryptography&quot;&gt;FIPS 204&lt;/a&gt;)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Digital signature&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Lattice&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Good performance overall&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Not strong at any one thing&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Falcon (FIPS tbd)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Digital signature&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Lattice&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Fast sign/verify, smallest bandwidth&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Floating point arithmetic&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;SPHINCS+ (&lt;a href=&quot;https://csrc.nist.gov/Projects/post-quantum-cryptography&quot;&gt;FIPS 205&lt;/a&gt;)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Digital signature&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Hash&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Mature cryptography&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Slow and large&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;CRYSTALS-Kyber (&lt;a href=&quot;https://csrc.nist.gov/Projects/post-quantum-cryptography&quot;&gt;FIPS 203&lt;/a&gt;)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;KEM&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Lattice&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Good performance overall&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Newer hardness assumption&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;HQC (FIPS tbd)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;KEM&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Code&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Thorough security analysis&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Weak performance&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;kems-&quot;&gt;KEMs &lt;a name=&quot;kems&quot;&gt;&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;CRYSTALS-Kyber (renamed ML-KEM by NIST), &lt;a href=&quot;https://nvlpubs.nist.gov/nistpubs/ir/2025/NIST.IR.8545.pdf&quot;&gt;as noted by NIST&lt;/a&gt;, relies on hardness assumptions spanning over a decade of research (thus giving them confidence in its security). It also offers relatively fast key generation times, encapsulation times, and decapsulation times. In terms of public key and ciphertext sizes, these are around 1000 bytes.&lt;/p&gt;

&lt;p&gt;HQC, while much less performant than CRYSTALS-Kyber with larger public keys and ciphertexts, serves as the &lt;em&gt;non&lt;/em&gt;-lattice based alternative. Essentially, it was the best of the non-lattice based options.&lt;/p&gt;

&lt;h3 id=&quot;signatures-&quot;&gt;Signatures &lt;a name=&quot;signatures&quot;&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;FALCON offered the smallest key sizes and signature sizes of the potential post-quantum digital signature schemes making it to the third round. While it exhibited good performance on signing and verification, it was not as competitive on key generation times. Additionally, NIST brought up some concerns around the use of floating point arithmetic leading to implementation errors.&lt;/p&gt;

&lt;p&gt;CRYSTALS-Dilithium (renamed ML-DSA by NIST) offered a more balanced profile, offering competitive performance for key generation, signing, and verification as well as good key and signature sizes.&lt;/p&gt;

&lt;p&gt;As a backup to the lattice-based choices, NIST chose to standardize SPHINCS+ (renamed SLH-DSA by NIST) as well, as hash-based cryptography is extremely old and is least likely to be broken cryptanalytically. Unfortunately, its performance is &lt;a href=&quot;https://nvlpubs.nist.gov/nistpubs/ir/2020/NIST.IR.8309.pdf&quot;&gt;problematic&lt;/a&gt;. NIST explicitly notes that it is unlikely to serve as a drop-in replacement to ECDSA without “extensive re-engineering.”&lt;/p&gt;

&lt;h2 id=&quot;what-does-this-mean-for-cryptography-&quot;&gt;What does this mean for cryptography? &lt;a name=&quot;meancryptography&quot;&gt;&lt;/a&gt;&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Lattice cryptography swept the competition.&lt;/em&gt; Across the 8 year process, it became self-evident that the other post-quantum alternatives could not compete with lattice cryptography in terms of performance and bandwidth/size. We expect lattice cryptography to dominate public key cryptography from 2035 onwards.&lt;/p&gt;

&lt;p&gt;Given the more conservative security assumptions, we expect an expansion in the use of hash-based cryptography (especially within blockchain settings where upgrades can be trickier) as well as further research into making it more efficient.&lt;/p&gt;

&lt;h4 id=&quot;what-does-this-mean-for-the-rest-of-us-&quot;&gt;What does this mean for the rest of us? &lt;a name=&quot;meanus&quot;&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;At this point, we hope it becomes clear why we &lt;a href=&quot;#Nist-and-cryptography&quot;&gt;covered&lt;/a&gt; the difference between NIST setting &lt;em&gt;de jure&lt;/em&gt; vs &lt;em&gt;de facto&lt;/em&gt; standards.&lt;/p&gt;

&lt;p&gt;For the vast majority of companies, which are not expected to officially “comply with FIPS,” the decision of whether to transition to post-quantum signatures boils down to risk appetite and customer/market expectations. However, as we’ve seen historically, the overwhelming majority of companies end up adopting the underlying cryptography in FIPS.&lt;/p&gt;

&lt;h2 id=&quot;parting-thoughts-&quot;&gt;Parting thoughts &lt;a name=&quot;conclusion&quot;&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;While the 2035 deadline to transition to post-quantum cryptography may seem far away, it’s a relatively short amount of time to educate decision makers and migrate the world’s entire digital infrastructure.&lt;/p&gt;

&lt;p&gt;Given the progress of AI (e.g. &lt;a href=&quot;https://openai.com/index/navier-stokes-solution/&quot;&gt;solving&lt;/a&gt; the Navier-Stokes Millennium Prize Problem), we believe that 2035 is too long to wait to transition such high-stakes infrastructure like cryptocurrency.&lt;/p&gt;

&lt;p&gt;All of that takes us full circle, returning to Ethereum. What cryptography do they plan to adopt as part of the post-quantum transition?&lt;/p&gt;

&lt;p&gt;While most of (non-crypto) industry has converged on lattice-based cryptography, the Ethereum Foundation (EF) has continued to push for hash-bashed cryptography, subtly suggesting that it’s more “secure.” Blockchain has long been criticized by outsiders as serving as an echo chamber. Unfortunately, this view seems to be becoming increasingly true.&lt;/p&gt;

&lt;p&gt;In our next post, we’ll dive into what’s going on in the blockchain ecosystem, the unique considerations blockchain has in choosing cryptography, and the somewhat controversial decisions being made by EF.&lt;/p&gt;
&lt;div class=&quot;footnotes&quot; role=&quot;doc-endnotes&quot;&gt;
  &lt;ol&gt;
    &lt;li id=&quot;fn:1&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;There is quite a bit of cryptography in Ethereum that does &lt;em&gt;not&lt;/em&gt; come from NIST standards as well (e.g. Poseidon hash, BLS signatures). &lt;a href=&quot;#fnref:1&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
  &lt;/ol&gt;
&lt;/div&gt;
</content>
		</entry>
	
		<entry>
			<title>Fully Homomorphic Encryption for Engineers</title>
			<link href="http://ravital.github.io/blog/2020/07/06/fully-homomorphic-encryption-for-engineers"/>
			<updated>2020-07-06T00:00:00+00:00</updated>
			<id>http://ravital.github.io/blog/2020/07/06/fully-homomorphic-encryption-for-engineers</id>
			<content type="html">&lt;p&gt;&lt;em&gt;Note: This article was originally written for NuCypher.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Fully homomorphic encryption is a fabled technology (at least in the cryptography community) that allows for arbitrary computation over encrypted data. With privacy as a major focus across tech, fully homomorphic encryption (FHE) fits perfectly into this new narrative. FHE is relevant to public distributed ledgers (such as blockchain) and machine learning.&lt;/p&gt;

&lt;p&gt;The first FHE scheme was successfully created in 2009 by Craig Gentry. Since then, there have been numerous proposed FHE schemes and a dearth of related work in the space. However, there’s little explanation as to &lt;em&gt;why&lt;/em&gt; all this work is being done or the motivation for any of it. When I first started learning about FHE, I had many questions: Why are there so many schemes? Is FHE being used in any major application right now? If FHE is as powerful as described, why hasn’t it taken off yet?&lt;/p&gt;

&lt;p&gt;We’ll start by providing an introduction to how FHE works and some areas in which it might be useful. The meat of the article is in the 2nd section where we consider &lt;em&gt;why&lt;/em&gt; FHE has yet to have received widespread attention and some potential solutions to these issues. The TL;DR of it is that there is a complete &lt;em&gt;lack of usability&lt;/em&gt; when working with FHE libraries currently. All of the inner workings and complexities of the FHE scheme—of which there are &lt;em&gt;many&lt;/em&gt;—is exposed to the engineer.&lt;/p&gt;

&lt;p&gt;Finally, we’ll link to some FHE libraries if you’re interested in getting your hands dirty.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;a href=&quot;#introduction&quot;&gt;What is fully homomorphic encryption?&lt;/a&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#intro1&quot;&gt;A Refresher on Public Key Encryption Schemes&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#intro2&quot;&gt;So what’s the “homomorphic” part mean?&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#intro3&quot;&gt;How does it work? What’s the intuition?&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#intro4&quot;&gt;What’s needed to build an FHE scheme?&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#intro5&quot;&gt;Why do we care about any of this?&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#why&quot;&gt;Why FHE hasn’t taken off yet&lt;/a&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#why1&quot;&gt;Many Different Schemes&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#why2&quot;&gt;Efficiency&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#why3&quot;&gt;Usability&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#conclusion&quot;&gt;What’s the takeaway from all of this?&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#code&quot;&gt;Show me the code!&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;what-is-fully-homomorphic-encryption-&quot;&gt;What is fully homomorphic encryption? &lt;a name=&quot;introduction&quot;&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Fully homomorphic encryption is a type of encryption scheme that allows you to perform arbitrary* computations on encrypted data.&lt;/p&gt;

&lt;p&gt;* Not completely true but we’ll leave that out for now&lt;/p&gt;

&lt;h3 id=&quot;a-refresher-on-public-key-encryption-schemes-&quot;&gt;A Refresher on Public Key Encryption Schemes &lt;a name=&quot;intro1&quot;&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Let’s start with a brief review of encryption schemes. &lt;em&gt;Plaintext&lt;/em&gt; is data in the clear (i.e. unencrypted data) whereas &lt;em&gt;ciphertext&lt;/em&gt; is encrypted data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Algorithms in an Encryption Scheme&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An encryption scheme includes the following 3 algorithms:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;KeyGen(...security_parameters)&lt;/code&gt; → &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;keys&lt;/code&gt;: The Key Generation algorithm takes some security parameter(s) as its input. It then outputs the key(s) of the scheme.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Encrypt(plaintext, key, randomness)&lt;/code&gt; → &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ciphertext&lt;/code&gt;: The Encryption algorithm take a plaintext, a key, and some randomness (encryption must be probabilitistic to be “&lt;a href=&quot;https://en.wikipedia.org/wiki/Semantic_security&quot;&gt;secure&lt;/a&gt;”) as inputs. It then outputs the corresponding ciphertext (i.e. encrypted data).&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Decrypt(ciphertext, key)&lt;/code&gt; → &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;plaintext&lt;/code&gt;: The Decryption algorithm takes a ciphertext and a key as inputs. It outputs the corresponding plaintext.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In a &lt;em&gt;private&lt;/em&gt; key encryption scheme, the same &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;key&lt;/code&gt; is used to both encrypt and decrypt. That means anyone who can encrypt plaintext (i.e. data in the clear) can also decrypt ciphertext (i.e. encrypted data). These types of encryption schemes are also referred to as “symmetric” since the relationship between encryption/decryption is symmetric.&lt;/p&gt;

&lt;p&gt;However, in a &lt;em&gt;public&lt;/em&gt; key encryption scheme, different keys are used to encrypt and decrypt. An individual may be able to encrypt data but have no way of decrypting the corresponding ciphertext. These types of encryption schemes are also referred to as “asymmetric” since the relationship between encryption/decryption is asymmetric.&lt;/p&gt;

&lt;p&gt;You may have heard of the &lt;a href=&quot;https://en.wikipedia.org/wiki/ElGamal_encryption&quot;&gt;ElGamal encryption scheme&lt;/a&gt; before (which is based on the &lt;a href=&quot;https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange&quot;&gt;Diffie-Hellman key exchange&lt;/a&gt;). These schemes are usually taught in an introductory cryptography course and rely on a commonly used type of cryptography called &lt;a href=&quot;https://en.wikipedia.org/wiki/Elliptic-curve_cryptography&quot;&gt;elliptic curve cryptography&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;so-whats-the-homomorphic-part-mean-&quot;&gt;So what’s the “homomorphic” part mean? &lt;a name=&quot;intro2&quot;&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;We will turn our focus to public key homomorphic encryption schemes as they are the most useful. &lt;em&gt;The homomorphic part implies that there is a special relationship between performing computations in the plaintext space (i.e. all valid plaintexts) vs. ciphertext space (i.e. all valid ciphertexts).&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Specifically, in a “homomorphic encryption scheme,” the following relationships hold:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Homomorphic addition&lt;/strong&gt;: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Encrypt(a) + Encrypt(b) = Encrypt(a + b)&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Homomorphic multiplication&lt;/strong&gt;: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Encrypt(a) * Encrypt(b) = Encrypt(a * b)&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Allowing you to do something like:
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Encrypt(3xy + x) = Encrypt(3xy) + Encrypt(x) = [3 * Encrypt(x) * Encrypt(y)] + Encrypt(x)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;So just by knowing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Encrypt(x)&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Encrypt(y)&lt;/code&gt;, we can compute the encryption of more complicated polynomial expressions.&lt;/p&gt;

&lt;h3 id=&quot;how-does-it-work-whats-the-intuition-&quot;&gt;How does it work? What’s the intuition? &lt;a name=&quot;intro3&quot;&gt;&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;Let &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Encrypt(a)&lt;/code&gt; be referred to as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;a&apos;&lt;/code&gt;. Let &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Encrypt(b)&lt;/code&gt; be referred to as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;b&apos;&lt;/code&gt;. Recall that &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;a&apos;&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;b&apos;&lt;/code&gt; are &lt;em&gt;ciphertexts&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Every time we perform a homomorphic operation, we add additional &lt;strong&gt;noise&lt;/strong&gt; to the ciphertexts. At some point if the noise gets too big, you won’t be able to successfully decrypt the ciphertext. You’re just out of luck. For homomorphic addition, the noise doesn’t grow too badly. You can think of the noise growth as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Noise(a&apos; + b&apos;) = Noise(a&apos;) + Noise(b&apos;)&lt;/code&gt;. However, the problem lies with performing homomorphic multiplication. In a homomorphic multiplication, the noise growth behaves as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Noise(a&apos; * b&apos;) = Noise(a&apos;) * Noise(b&apos;)&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Let’s use some numbers to make this more concrete. We’ll say that &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Noise(a&apos;)&lt;/code&gt; is 10. We’ll say that &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Noise(b&apos;)&lt;/code&gt; is 20. The FHE scheme has some noise ceiling after which point we cannot decrypt the cipherext even if we have the decryption key. For our example, let’s say the noise ceiling is 300. After performing a single homomorphic addition between the two cipherexts, the noise will be &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;10 + 20 = 30&lt;/code&gt;. Not bad! However, if we perform a single homomorphic multiplication between &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;a&apos;&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;b&apos;&lt;/code&gt;, the resulting noise will be &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;10 * 20 = 200&lt;/code&gt; for the ciphertext &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;a&apos; * b&apos;&lt;/code&gt;.  If we then tried to compute &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;(a&apos; * b&apos;) * (a&apos;)&lt;/code&gt;, the noise would be too big for the FHE scheme! Thus, we would not be able to decrypt &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;(a&apos; * b&apos;) * (a&apos;)&lt;/code&gt; even if we had the decryption key (since &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Noise(a&apos; * b&apos;) * Noise(a&apos;) = 200 * 10 = 2000&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;It’s your job to correctly set all parameters of the scheme, perform “noise control” operations at the right time (we won’t go into what these operations are in this article since they can even differ by scheme), and try not to do too many homomorphic multiplications. Does that sound intimidating to you? You’re in good company then.&lt;/p&gt;

&lt;p&gt;Note: There are some ways of getting around the fixed noise ceiling such as “&lt;a href=&quot;https://crypto.stanford.edu/craig/easy-fhe.pdf&quot;&gt;bootstrapping&lt;/a&gt;.” Bootstrapping comes with its own set of complexities and trade-offs however.&lt;/p&gt;

&lt;h3 id=&quot;whats-needed-to-build-a-fully-homomorphic-encryption-scheme-&quot;&gt;What’s needed to build a fully homomorphic encryption scheme? &lt;a name=&quot;intro4&quot;&gt;&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;All FHE schemes use a specific type of &lt;a href=&quot;https://en.wikipedia.org/wiki/Post-quantum_cryptography&quot;&gt;post-quantum cryptography&lt;/a&gt; called &lt;a href=&quot;https://en.wikipedia.org/wiki/Lattice-based_cryptography&quot;&gt;lattice cryptography&lt;/a&gt;. The good news is that FHE is resistant to attacks from a quantum computer (if we should be concerned about such a thing is an entirely different topic). The bad news is you likely have no familiarity with lattice cryptography even if you’ve taken an introductory cryptography course before.&lt;/p&gt;

&lt;p&gt;Simply put, lattices sit inside the real vector space (otherwise known as R^n) and can be represented using vectors and matrices (which you definitely should have familiarity with!).&lt;/p&gt;

&lt;p&gt;FHE schemes can be broken down into 3 types depending on how they model computation (see &lt;a href=&quot;http://homomorphicencryption.org/wp-content/uploads/2018/10/CCS-HE-Tutorial-Slides.pdf&quot;&gt;this presentation&lt;/a&gt; if interested in more advanced technical details). The first type models computations as &lt;strong&gt;boolean circuits&lt;/strong&gt; (i.e. bits). The second type models computation as &lt;strong&gt;modular arithmetic&lt;/strong&gt; (i.e. “clock” arithmetic). The third and final type models computations as &lt;strong&gt;floating point arithmetic&lt;/strong&gt;.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Computational Model&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Good for&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Schemes*&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Boolean&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Number Comparison&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;a href=&quot;https://eprint.iacr.org/2016/870.pdf&quot;&gt;TFHE&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Modular Arithmetic&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Integer Arithmetic, Scalar Multiplication&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;   &lt;a href=&quot;https://eprint.iacr.org/2011/277.pdf&quot;&gt;BGV&lt;/a&gt;, &lt;a href=&quot;https://eprint.iacr.org/2012/144&quot;&gt;BFV&lt;/a&gt;   &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;  Floating Point Arithmetic  &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;  Polynomial Approximation, Machine Learning Models  &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;a href=&quot;https://eprint.iacr.org/2016/421.pdf&quot;&gt;CKKS&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;The names of these schemes usually come from the last names of the authors who created it. For example, “BGV” comes from the authors Brakerski, Gentry, and Vaikuntanathan.&lt;/p&gt;

&lt;p&gt;* Not an exhaustive list of schemes! I’ve just listed some well-known ones.&lt;/p&gt;

&lt;h3 id=&quot;why-do-we-care-about-any-of-this-&quot;&gt;Why do we care about any of this? &lt;a name=&quot;intro5&quot;&gt;&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Private Transactions on a Public Ledger (e.g. blockchain).&lt;/strong&gt; A private transaction scheme allows a user to securely send digital currency to some recipient without revealing the amount being sent to anyone (apart from the intended recipient) on a public, distributed ledger. This is in contrast to cryptocurrencies like Bitcoin where transactions and balances are all public information.&lt;/p&gt;

&lt;p&gt;We assume a (public key) fully homomorphic encryption scheme. All encryptions are done with respect to the Receiver’s keys.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Sender wants to send &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;t&lt;/code&gt; tokens to the Receiver. Sender encrypts &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;t&lt;/code&gt; under the Receiver’s public key.&lt;/li&gt;
  &lt;li&gt;Sender publishes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Encrypt(t)&lt;/code&gt; on the public ledger.&lt;/li&gt;
  &lt;li&gt;Notice that &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Encrypt(t) + Encrypt(Receiver&apos;s balance) = Encrypt(Receiver&apos;s balance after performing the transaction)&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This can be extended to more interesting financial applications such as auctions, voting, and derivatives. An FHE scheme that models computation as &lt;em&gt;modular arithmetic&lt;/em&gt; is likely to be the most suitable for this type of application.&lt;/p&gt;

&lt;p&gt;Note: For this to work in practice, some other cryptographic tools are also needed (such as &lt;a href=&quot;https://blog.cryptographyengineering.com/2014/11/27/zero-knowledge-proofs-illustrated-primer/&quot;&gt;zero-knowledge proofs&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Private Machine Learning.&lt;/strong&gt; There’s been increased interest in the last few years around how we might be able to “learn” from data (via machine learning) while still keeping the data itself private. FHE is one tool that can help us achieve this goal. In contrast to the previous application, we likely want an FHE scheme that models computations as floating point arithmetic here.&lt;/p&gt;

&lt;p&gt;One well-known work in this space is &lt;a href=&quot;https://arxiv.org/abs/1412.6181&quot;&gt;Crypto-Nets&lt;/a&gt; which combines (as the name might suggest) FHE and &lt;a href=&quot;https://en.wikipedia.org/wiki/Artificial_neural_network&quot;&gt;neural networks&lt;/a&gt; to allow for outsourced machine learning. When people talk about “outsourced machine learning,” the setting usually being described is one in which a data &lt;em&gt;owner&lt;/em&gt; wants to learn about his data but does not feel comfortable openly sharing his data with some company providing machine learning models. Thus, the data owner encrypts his data using FHE and allows the machine learning company to run their models on the encrypted data set.&lt;/p&gt;

&lt;p&gt;Homomorphic encryption is not the sole solution to this problem; &lt;a href=&quot;https://en.wikipedia.org/wiki/Differential_privacy#:~:text=Differential%20privacy%20is%20a%20system,about%20individuals%20in%20the%20dataset&quot;&gt;differential privacy&lt;/a&gt; is a closely related subject that has garnered a lot of attention. Differential privacy is more &lt;em&gt;statistics&lt;/em&gt; than cryptography as it does not directly involve encryption/decryption. It works by adding noise to data in the clear while still guaranteeing that meaningful insights can be drawn from the noisy data sets.  Apple is one major company that &lt;a href=&quot;https://www.apple.com/privacy/docs/Differential_Privacy_Overview.pdf&quot;&gt;purportedly uses&lt;/a&gt; differential privacy to learn about your behavior while maintaining some level of privacy.&lt;/p&gt;

&lt;h2 id=&quot;why-fhe-hasnt-taken-off-yet-challenges-in-the-space-&quot;&gt;Why FHE Hasn’t Taken off Yet: Challenges in the Space &lt;a name=&quot;why&quot;&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;So far this all sounds great but I’ve been leaving out a number of problems.&lt;/p&gt;

&lt;h3 id=&quot;many-different-schemes-aka-everyone-is-speaking-a-different-language-&quot;&gt;Many Different Schemes (aka everyone is speaking a different language) &lt;a name=&quot;why1&quot;&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;So you’ve decided you want to use FHE, great! Here’s some considerations that now need to be taken into account:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;How do I model computation?&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;FHE schemes model computation in one of three ways—as boolean circuits, modular arithmetic, or floating point arithmetic. Hopefully it’s obvious which model you need since there aren’t many resources beyond introductory ones like &lt;a href=&quot;http://homomorphicencryption.org/wp-content/uploads/2018/10/CCS-HE-Tutorial-Slides.pdf&quot;&gt;this&lt;/a&gt; to help you out. This question is likely the least of your concerns though.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;What if I have multiple options for FHE schemes that fall under the same computational model I need (e.g. choosing between BGV vs. BFV for modular arithmetic)?&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hmm, that’s unfortunate. There isn’t much work explaining the tradeoffs between different schemes with the same computational model. You’ll probably have to play around with the various schemes and implement your specific use case with both of them to determine which is best. There are some very involved research papers (such as &lt;a href=&quot;https://eprint.iacr.org/2019/493.pdf&quot;&gt;this&lt;/a&gt;) that you can try wading through.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Do schemes based on different computational models otherwise behave the same?&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Kind of but not really. Different schemes tend to use different techniques to control efficiency and noise growth that you’ll need to understand to successfully work with FHE. Additionally, the schemes have different parameters you need to understand in order to set them properly. The parameters affect not only the security of the scheme (which is a given in cryptography), but also the sorts of plaintexts you can work with, the number of homomorphic computations you can do, and the overall performance of the scheme.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Are the different schemes compatible at all?&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Does this picture* help?&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;https://ravital.github.io/chimera.png&quot; width=&quot;700&quot; height=&quot;412&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Probably not unless you know quite a bit of math and cryptography. There is a relationship between some of the FHE schemes but to understand the relationship you also need to understand how the various FHE schemes work in detail.&lt;/p&gt;

&lt;p&gt;Having a lot of choices is great!&lt;/p&gt;

&lt;p&gt;But it’s not great when:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;you don’t know the tradeoffs between the different FHE schemes or how the schemes relate to one another.&lt;/li&gt;
  &lt;li&gt;you have to invest a lot of energy into understanding a single scheme&lt;/li&gt;
  &lt;li&gt;a lot of the knowledge gained from understanding one scheme is not really transferable to learning a new scheme (under a different computational model)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Potential Solutions:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;1. Updated and improved benchmarking efforts&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A large issue is the lack of up-to-date benchmarking efforts. It’s hard to recommend which FHE scheme to use for a particular use case when we don’t know how one implementation performs against another (on the same machine, for a particular set of comparable parameters). FHE libraries change quickly, incorporating new optimizations, so benchmarking efforts from 1-2 years ago quickly lose relevancy (such as &lt;a href=&quot;https://eprint.iacr.org/2018/589.pdf&quot;&gt;this&lt;/a&gt; from 2018 for various implementations of the BFV scheme).&lt;/p&gt;

&lt;p&gt;&lt;em&gt;2. Better resources/guides to explain tradeoffs between schemes&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Without up-to-date benchmarking of different schemes and libraries, it’s impossible to provide good resources that explain the tradeoffs between the FHE schemes in practice. There have been some presentations (such as &lt;a href=&quot;http://homomorphicencryption.org/wp-content/uploads/2018/10/CCS-HE-Tutorial-Slides.pdf&quot;&gt;this one&lt;/a&gt;) that try to illuminate the differences between the 3 computational models in FHE. However, there aren’t any good resources to help when trying to choose between &lt;em&gt;different schemes&lt;/em&gt; using the &lt;em&gt;same&lt;/em&gt; computational model.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;3. Ability to move between different FHE schemes (i.e. interoperability)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If there were some interoperability between different FHE schemes, it would be easier to understand how the schemes relate to one another. An academic work on this topic is &lt;a href=&quot;https://eprint.iacr.org/2018/758&quot;&gt;CHIMERA&lt;/a&gt; which provides a framework for switching between TFHE (boolean), BFV (modular arithmetic), and HEAAN (floating point arithmetic). Unfortunately, this work requires a very strong background in abstract algebra along with good familiarity of all the FHE schemes used. More accessible resources explaining the relationship between the different types of schemes would be nice (by “type” we mean the 3 types of computational models—boolean, modular arithmetic, floating point arithmetic.&lt;/p&gt;

&lt;p&gt;* Image is from &lt;a href=&quot;https://eprint.iacr.org/2018/758&quot;&gt;CHIMERA&lt;/a&gt;’s paper&lt;/p&gt;

&lt;h3 id=&quot;efficiency-more-complex-of-an-issue-than-it-seems-&quot;&gt;Efficiency (more complex of an issue than it seems) &lt;a name=&quot;why2&quot;&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;If you talk to most people familiar with FHE and ask them why FHE isn’t being used, they’ll often wave the issue off by saying something like “oh, it’s not efficient.” Personally, I find this explanation to be a bit lazy because it vastly simplifies the issue. Public key encryption is less efficient than private key encryption but that doesn’t mean everyone exclusively uses private key encryption. There are perfectly reasonable cases where a certain less efficient technology should be used.&lt;/p&gt;

&lt;p&gt;Personal rant aside, we’re going to look at some considerations you have to take into account for efficiency with FHE.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;How many computations do you want to perform?&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Some FHE schemes allow you to perform a &lt;em&gt;truly arbitrary&lt;/em&gt; number of computations on encrypted data. Many schemes, however, only allow for a certain number of homomorphic operations to be performed. After that point, there’s no guarantee decryption will be successful. Say, for example, the FHE scheme only allows for 100 sequential homomorphic multiplications (note: addition is generally “easy” in FHE schemes, whereas multiplication is much harder). If we tried to do the 101th homomorphic multiplication, there’s no guarantee that the resulting ciphertext can be correctly decrypted. The schemes that allow for a truly arbitrary number of homomorphic computations suffer from very poor performance. If you’re able to figure out a ceiling on the number of homomorphic multiplications you need to do, that will help to achieve much better performance.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;How big do you need your plaintext space to be?&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;he larger the plaintext space, the slower it will be to perform operations. For FHE schemes that model computation as modular arithmetic, choosing a modulus on the order of 1000 vs. 1,000,000 makes a large difference in terms of what plaintexts you can represent. This might be especially important if you’re representing account balances with your ciphertexts and need to ensure they don’t “wrap around” the modulus.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Are you going to perform the same operation on many different plaintexts or ciphertexts (i.e. “SIMD” style computations)?&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Some FHE schemes can take advantage of “SIMD” style operations to perform the same operation on multiple plaintexts or ciphertexts simultaneously. If this sort of parallelization is useful for you, you should consider exploring schemes and libraries that offer this functionality. SIMD-style operations, if used correctly, can really improve efficiency.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;What key sizes are acceptable to you?&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With &lt;a href=&quot;https://eprint.iacr.org/2018/421.pdf&quot;&gt;TFHE&lt;/a&gt;, for example, some keys you’ll need to access in the scheme can be 1 GB large! The performance, in terms of timings, may be decent but you’re instead left with a giant key you need to store.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Are you okay with large ciphertexts?&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ciphertext expansion can be quite bad when working with FHE. Looking again at &lt;a href=&quot;https://eprint.iacr.org/2018/421.pdf&quot;&gt;TFHE&lt;/a&gt;, the plaintext-to-ciphertext expansion is 10,000:1 for an acceptable level of security (100 bits).&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;What matters most for you in terms of performance?&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can’t “have it all” in FHE so it’s important to determine what you &lt;em&gt;need&lt;/em&gt; vs. &lt;em&gt;want&lt;/em&gt;. Maybe you really need fast comparison of numbers. Maybe you really need to parallelize computation. Maybe you need a large plaintext space. All these little considerations need to be taken into account when choosing an FHE scheme.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Potential Solutions:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;1. Hardware acceleration&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Some FHE schemes can be accelerated using &lt;a href=&quot;https://en.wikipedia.org/wiki/Graphics_processing_unit&quot;&gt;GPUs&lt;/a&gt;; examples of such libraries include &lt;a href=&quot;https://github.com/nucypher/nufhe&quot;&gt;nuFHE&lt;/a&gt; and &lt;a href=&quot;https://github.com/vernamlab/cuHE&quot;&gt;cuFHE&lt;/a&gt;. Other efforts to accelerate FHE schemes have included using &lt;a href=&quot;https://en.wikipedia.org/wiki/Field-programmable_gate_array&quot;&gt;FPGAs&lt;/a&gt; (e.g. &lt;a href=&quot;https://arxiv.org/pdf/1909.09731.pdf&quot;&gt;HEEAX&lt;/a&gt;). &lt;a href=&quot;https://arxiv.org/pdf/1909.09731.pdf&quot;&gt;HEEAX&lt;/a&gt; works with the CKKS scheme (floating point arithmetic) and can yield performance speed-ups of anywhere from 12x to over 250x depending on the specific operation. Unfortunately, the paper suggests that a FPGA-based approach is not as successful for the BFV scheme (integer arithmetic).&lt;/p&gt;

&lt;p&gt;&lt;em&gt;2. Research breakthroughs improving FHE schemes&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Easier said than done of course.&lt;/p&gt;

&lt;h3 id=&quot;usability-there-is-none-&quot;&gt;Usability (there is none) &lt;a name=&quot;why3&quot;&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The previous discussion leads us to our final point—usability. FHE is &lt;em&gt;not&lt;/em&gt; beginner-friendly, &lt;em&gt;not&lt;/em&gt; user-friendly, and &lt;em&gt;certainly not&lt;/em&gt; non-cryptographer-friendly. There really isn’t any usability for an engineer lacking a math or cryptography background.&lt;/p&gt;

&lt;p&gt;Most FHE libraries require deep expertise of the underlying cryptographic scheme to use both correctly and efficiently. Another cryptographer has described working with FHE as similar to writing assembly— there’s a huge difference in performance between good and great implementations. Wading through libraries like &lt;a href=&quot;https://github.com/homenc/HElib&quot;&gt;HElib&lt;/a&gt; can be intimidating without a strong background in the underlying scheme.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is the situation really that bad?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We’ll briefly touch on the issues that make FHE exceptionally user-&lt;em&gt;un&lt;/em&gt;friendly.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Parameter setup is non-trivial. For example, in BFV (which is simpler than the BGV scheme), we have to set up a polynomial modulus, a coefficient modulus, and a plaintext modulus. Setting these parameters requires understanding how they affect the scheme (e.g. what sort of operations you’re planning on doing, how many operations). Additionally, to understand what the parameters mean, you’ll have to learn some basic theory about &lt;a href=&quot;https://en.wikipedia.org/wiki/Ring_(mathematics)&quot;&gt;rings&lt;/a&gt; (abstract algebra). We currently cannot abstract away these issues; it’s just necessary for working with FHE schemes.&lt;/li&gt;
  &lt;li&gt;Public key encryption has just 3 main algorithms (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;KeyGen&lt;/code&gt;,&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Encrypt&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Derypt&lt;/code&gt;), but it’s not so simple for FHE schemes which have additional operations (that also differ between schemes). Because you need to understand &lt;em&gt;how&lt;/em&gt; and &lt;em&gt;when&lt;/em&gt; to use certain operations, working with FHE requires developing intuition yourself.&lt;/li&gt;
  &lt;li&gt;To develop good intuition, you need to work with the scheme….but some libraries have very little documentation.&lt;/li&gt;
  &lt;li&gt;Understanding one type of scheme may not transfer very well to understanding a different type of scheme (by type here, I’m referring to the three different computational models).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Potential Solutions:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;1. Standardization efforts&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;By this, we mean standards to make it clear what parameters to use, what functionalities are offered, etc.&lt;/p&gt;

&lt;p&gt;Standardization efforts are currently led by the open industry/government/academic consortium “&lt;a href=&quot;https://homomorphicencryption.org/&quot;&gt;Homomorphic Encryption Standardization&lt;/a&gt;.” They’ve already released &lt;a href=&quot;https://homomorphicencryption.org/standard/&quot;&gt;draft proposals&lt;/a&gt; around security and API standards for homomorphic encryption. They tend to meet 1-2x a year if you’re interested in attending their meetings.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;2. More user-friendly libraries and examples&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;One example of this is &lt;a href=&quot;https://github.com/microsoft/SEAL&quot;&gt;Microsoft’s SEAL&lt;/a&gt; which has an incredibly instructive &lt;a href=&quot;https://github.com/microsoft/SEAL/tree/master/native/examples&quot;&gt;examples section&lt;/a&gt;. Hopefully more libraries will take the time to create user-friendly documentation and examples.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;3. Potential compilers&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;There have been discussions in the FHE community for awhile now about creating a compiler or some intermediate representation to make FHE easier to work with. &lt;a href=&quot;https://github.com/CEA-LIST/Cingulata&quot;&gt;Cingulata&lt;/a&gt; is one such attempt.&lt;/p&gt;

&lt;h2 id=&quot;whats-the-takeaway-from-all-of-this-&quot;&gt;What’s the takeaway from all of this? &lt;a name=&quot;conclusion&quot;&gt;&lt;/a&gt;&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;“It’s not you, it’s FHE.”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You know that cliche breakup line “it’s not you, it’s me?” Well, that’s particularly true here.&lt;/p&gt;

&lt;p&gt;High-level programming languages have helped to abstract away a lot of the complexity of how your computer works. But there is no analogue of “high-level programming languages” when working with FHE. You &lt;em&gt;can’t&lt;/em&gt; abstract away any of the complexities (of which there are &lt;em&gt;a lot&lt;/em&gt;).  Although standardization is ongoing and there are efforts to make FHE more beginner-friendly, FHE just isn’t ready to be used by non-cryptographers at the moment in a production-ready environment.&lt;/p&gt;

&lt;h2 id=&quot;show-me-the-code-&quot;&gt;Show me the code! &lt;a name=&quot;code&quot;&gt;&lt;/a&gt;&lt;/h2&gt;

&lt;p&gt;If you do not have previous experience with FHE, we recommend starting with a more user-friendly library such as &lt;a href=&quot;https://github.com/Microsoft/SEAL&quot;&gt;SEAL&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Some libraries (such as SEAL and PALISADE) offer multiple types of FHE schemes. To prevent confusion, we list the specific FHE scheme in paratheses after the library’s name.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Computational Model&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Available Libraries&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Boolean&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;a href=&quot;https://github.com/tfhe/tfhe&quot;&gt;TFHE&lt;/a&gt;, &lt;a href=&quot;https://github.com/nucypher/nufhe&quot;&gt;nuFHE&lt;/a&gt;, &lt;a href=&quot;https://gitlab.com/palisade/palisade-release&quot;&gt;PALISADE&lt;/a&gt;(tFHE)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Modular Arithmetic&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;  &lt;a href=&quot;https://github.com/homenc/HElib&quot;&gt;HElib&lt;/a&gt;, &lt;a href=&quot;https://github.com/Microsoft/SEAL&quot;&gt;SEAL&lt;/a&gt;(BFV), &lt;a href=&quot;https://github.com/ldsec/lattigo&quot;&gt;Lattigo&lt;/a&gt;(BFV), &lt;a href=&quot;https://gitlab.com/palisade/palisade-release&quot;&gt;PALISADE&lt;/a&gt;(BFV, BGV)  &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;  Floating Point Arithmetic   &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;a href=&quot;https://github.com/Microsoft/SEAL&quot;&gt;SEAL&lt;/a&gt;(CKKS), &lt;a href=&quot;https://github.com/ldsec/lattigo&quot;&gt;Lattigo&lt;/a&gt;(CKKS), &lt;a href=&quot;https://gitlab.com/palisade/palisade-release&quot;&gt;PALISADE&lt;/a&gt;(CKKS)&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt; &lt;/p&gt;
</content>
		</entry>
	
		<entry>
			<title>Resources for Lattice Cryptography, Fully Homomorphic Encryption, and Zero-knowledge Proofs</title>
			<link href="http://ravital.github.io/blog/2020/06/19/resources"/>
			<updated>2020-06-19T00:00:00+00:00</updated>
			<id>http://ravital.github.io/blog/2020/06/19/resources</id>
			<content type="html">&lt;p&gt;I’ve collected some resources if you’re interested in learning more about lattice-based cryptography, fully homomorphic encryption (FHE), or zero-knowledge proofs (ZKP). Wikipedia is a great place to start before diving into anything listed below.&lt;/p&gt;

&lt;h2 id=&quot;lattice-based-cryptography&quot;&gt;Lattice-based Cryptography&lt;/h2&gt;
&lt;p&gt;Lattice-based cryptography is a type of &lt;a href=&quot;https://en.wikipedia.org/wiki/Post-quantum_cryptography&quot;&gt;post-quantum crytography&lt;/a&gt;  (i.e. cryptography that is resistant to attacks from a quantum computer) using &lt;a href=&quot;https://en.wikipedia.org/wiki/Lattice_(group)&quot;&gt;lattices&lt;/a&gt;.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;em&gt;&lt;a href=&quot;https://link.springer.com/book/10.1007/978-1-4939-1711-2&quot;&gt;An Introduction to Mathematical Cryptography&lt;/a&gt;&lt;/em&gt;. See the “Lattices and Cryptography” chapter. This was the first resource I used in undergrad to learn about lattice-based cryptography.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://web.eecs.umich.edu/~cpeikert/pubs/lattice-survey.pdf&quot;&gt;A Decade of Lattice Cryptography&lt;/a&gt;. A lot more advanced than the previous resource but thoroughly covers the major aspects of lattice-based cryptography.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://simons.berkeley.edu/programs/lattices2020&quot;&gt;Simons Institute Lattices Program&lt;/a&gt;. Videos covering everything from the basics of lattices to current research being done today.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;fully-homomorphic-encryption&quot;&gt;Fully Homomorphic Encryption&lt;/h2&gt;
&lt;p&gt;Fully homomorphic encryption can be viewed as an extension of &lt;a href=&quot;https://en.wikipedia.org/wiki/Public-key_cryptography&quot;&gt;public key encryption schemes&lt;/a&gt;. It allows for arbitrary computations over encrypted data in a “structure-preserving” way. All FHE schemes use lattice-based cryptography.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://blog.quarkslab.com/a-brief-survey-of-fully-homomorphic-encryption-computing-on-encrypted-data.html&quot;&gt;A Brief Survey of Fully Homomorphic Encryption&lt;/a&gt;. A short post introducting what fully homomorphic encryption is and how it works. A good starting point if you don’t know anything about FHE.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://crypto.stanford.edu/craig/easy-fhe.pdf&quot;&gt;Computing Arbitrary Functions of Encrypted Data&lt;/a&gt;. A brief but very well-written paper from the Craig Gentry (the 1st person to successfully construct an FHE scheme). More technically involved than the above but provides good intuition for understanding how FHE works.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://pdfs.semanticscholar.org/e247/ae732c50b6c04b2aa413c4caa0ca77ed4751.pdf&quot;&gt;Fundamentals of Fully Homomorphic Encryption&lt;/a&gt;. An accessible but longer introduction to FHE.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/microsoft/SEAL/tree/master/native/examples&quot;&gt;Microsoft SEAL Examples&lt;/a&gt;. Allows you to see how FHE works in practice. Does not assume prior knowledge of cryptography. Probably the most useful resource if you’re an engineer.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;zero-knowledge-proofs&quot;&gt;Zero-knowledge Proofs&lt;/h2&gt;
&lt;p&gt;Zero-knowledge proofs allow you to convince someone (called a “verifier”) of some fact without “revealing” any additional information (hence the term “zero-knowledge” because the verifier learned nothing after the interaction apart from being convinced that the fact was true).&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://blog.cryptographyengineering.com/2014/11/27/zero-knowledge-proofs-illustrated-primer/&quot;&gt;Zero Knowledge Proofs: An illustrated primer&lt;/a&gt;. Fantastic blog post explaining ZKPs. A good starting point.&lt;/li&gt;
  &lt;li&gt;&lt;em&gt;&lt;a href=&quot;https://www.cs.umd.edu/~waa/414-F11/IntroToCrypto.pdf&quot;&gt;Cryptography: An Introduction&lt;/a&gt;&lt;/em&gt;. See the “Zero-Knowledge Proofs” chapter.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://simons.berkeley.edu/workshops/schedule/9299&quot;&gt;Simons Institute Proofs, Consensus and Decentralizing Society Bootcamp&lt;/a&gt;. Specifically the videos from days 1 and 2.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://docs.zkproof.org/pages/reference/reference.pdf&quot;&gt;ZKProof Community Reference&lt;/a&gt;. A very long reference document explaining various technical aspects of ZKPs from &lt;a href=&quot;https://zkproof.org/&quot;&gt;ZKProof&lt;/a&gt;, an intiative to standardize ZKPs. This document is good to look at if you encounter a term you don’t know.&lt;/li&gt;
&lt;/ul&gt;
</content>
		</entry>
	

</feed>
