Lecture 10: Designs of Financial Infrastructure Utilizing Encryption
Overview
Robert Townsend explores financial infrastructure designs using encryption, focusing on three applications: encrypted auctions, hybrid credit/insurance mechanisms, and order book matching. He details how homomorphic encryption and multi-party computation (MPC) can eliminate trusted third parties in auctions and enable private information sharing for risk pooling in credit/insurance scenarios. The lecture also covers implementing these concepts on blockchains, highlighting ongoing challenges and advancements by companies like Zama and Sunscreen.
Key takeaways
- Homomorphic encryption and multi-party computation enable auctions without trusted third parties by allowing computations on encrypted bids.
- In credit and insurance markets, encryption can facilitate risk-sharing by allowing agents to conceal their balance sheet states while participating in insurance contracts.
- A generalized MPC scheme for auctions with N agents involves a central server combining public keys, performing FHE computations, and agents partially decrypting results.
- The core challenge in encrypted financial infrastructure is balancing the need for computation with the requirement to keep sensitive data private from all parties, including the computing agent.
- Implementing advanced encryption schemes directly on blockchains faces computational and validation hurdles, though companies like Zama and Sunscreen are making progress.
- The use of noise in BFV encryption (Ring LWE) is crucial for security, preventing outsiders from deciphering secrets even when performing operations like Gaussian elimination on encrypted data.
Chapters
- Lecture focuses on designs for financial infrastructure utilizing encryption.
- Three examples to be covered: auctions, hybrid credit/insurance, and market implementation.
- Goal is to reduce reliance on trusted third parties through cryptographic methods.
- First scheme involves bidders using their own servers.
- Bidders encrypt bids using public-private key pairs.
- Encrypted messages are exchanged among bidders without a third party.
- Second scheme uses a third-party server acting as a contract node (pseudo-agent).
- Communication goes through the server, which doesn't see private values.
- The server executes code to process encrypted messages.
- Introduction to the BFV encryption algorithm (Ring Learning With Errors).
- Public key: (a, delta); Secret keys: (s, e).
- Noise is added to ciphertext to prevent decryption of underlying secrets.
- Example of a system of linear equations where the secret (red) needs protection.
- Adding a noise vector (blue) makes deciphering the secret difficult.
- Gaussian elimination can solve the system, but noise complicates it.
- Recap of MPC with secret sharing and noise addition.
- Each participant adds noise to their secret before passing it on.
- Summing up noisy secrets obscures individual values.
- Agent A encrypts bid using public key (a, delta) and own secret key.
- Agent B does the same, sending encrypted bids to each other.
- Each agent adds their own secret key pair to the received ciphertext.
- Agents take the difference of their transformed ciphertexts.
- Result is delta times the difference of the bids.
- This scheme reveals bids to both players, which is not always ideal.
- Introduces a pseudo-agent (contract code) on a third-party server.
- Agents send encrypted bids and encrypted sums of private keys to the pseudo-agent.
- The pseudo-agent performs computations on encrypted data without seeing secrets.
- Each agent generates key pairs; public keys are submitted to the server.
- Server combines public keys into a joint public key, distributed to agents.
- Agents encrypt private data using the joint public key and send to server.
- Server performs computations on encrypted data (FHE).
- Encrypted result is sent back to agents for partial decryption using private keys.
- Partial decryptions are sent back to the server for final decryption.
- Method 1: Pairwise comparisons between agents.
- Method 2: Subdividing agents into subgroups to compute averages and reduce comparisons.
- Examples: M-Pesa in Kenya, commercial banks in Indonesia, New York repo markets.
- Common element: agents with balance sheets experiencing random shocks (e.g., liquidity shortages).
- Motivation: enabling risk-sharing (insurance) without revealing balance sheet states.
- Two agents (A, B) with utility functions subject to private shocks over two periods.
- Planner (third party) collects information and allocates endowments.
- Revelation principle: agents can be assumed to report truthfully.
- Agents experience shocks in both periods affecting utility.
- Endowments are deterministic and known, sequestered as collateral.
- Planner maximizes weighted sum of utilities subject to constraints.
- Agent A goes first (date 0), B second (date 1).
- Utility functions are power functions with potentially random parameters (e.g., 0.2 or 0.9).
- Fully revealed communication damages insurance possibilities due to information leakage.
Transcript excerpt
0:01 [SQUEAKING] [RUSTLING] [CLICKING] ROBERT TOWNSEND: So today, I'm going to give this application lecture using encryption. So Sam and I have been working on market making, combining economics and computer science, and Sam's going to present that on Thursday. Looking forward to it. All right. So today, designs of financial infrastructure utilizing encryption, and I'm going to go through three examples today varying in detail. One is an auction, which is a familiar setup,
0:51 but we'll be encrypting it. Then I have this what I call hybrid credit and insurance, having to do with insurance against balance sheet shocks in various contexts. And then finally, a market implementation using encryption. So first, we'll do the auctions. So auctions are used frequently, but they're typically organized by a third party. And the example here is Mortgage Capital Trading's use of a trade auction manager. Worrying that perhaps this slide was a bit out of date, I checked this morning on the web, it's alive and well. So Mortgage Capital Trading is still
1:42 being used, as are many of the others. But trusted third parties like Mortgage-- the trade auction manager there are not always needed, and in fact, they're not always beneficial. So what are called these "bid-wanted-in-competition" dealers are asked to bid on a list of securities. Not necessarily securitized mortgages in the first example, but much more generally. And there's a typical, as you could imagine, abuse, or at least potential abuse, where the auction manager is on the phone, he's the seller of the asset, so he has an interest in making the price high, so he calls buyer A, he says, I prefer you, my friend,
2:32 but buyer B just offered a slightly higher price. So if you can just make some effort, the good-- is the security is yours.
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, MIT OpenCourseWare.