Bitcoin Covenants and Functional Encryption
This article explores the technical and cryptographic challenges associated with implementing Bitcoin covenants using functional encryption, as outlined in a research paper by Jeremy Rubin.

Bitcoin covenants are a proposed mechanism that would allow users to impose spending conditions on their funds. However, implementing such covenants traditionally requires changes to Bitcoin’s consensus rules, a process that is difficult to coordinate. In May 2024, Jeremy Rubin proposed a new approach using functional encryption (FE) to enforce covenant behavior without modifying consensus rules (1). This design shifts the enforcement of covenants from Bitcoin Script to the signing key, potentially avoiding the need for a soft fork. [1]
Functional encryption generalizes public-key cryptography by allowing subsidiary keys to perform specific functions on encrypted data. In Rubin’s proposal, a function f would be used to generate a signature that only permits a predefined set of valid transactions. This function would derive a new key pair by tweaking a private key with a hash of the covenant’s spending policy. Signatures produced by f would be valid for the tweaked public key, not the base public key (1). [1]
Implementing FE-based covenants requires a setup authority that generates a Bitcoin key pair and an FE key pair. The setup authority must be trusted to destroy the private key and master secret to prevent unauthorized spending. Each covenant would have its own key pair, and the public key could be derived by anyone who knows the hash of the spending policy. This allows covenant receiving addresses to be generated, though additional measures like 2-of-2 scripts are needed to prevent unauthorized transactions (1). [1]
Despite the theoretical appeal of FE-based covenants, practical implementation remains infeasible. Current FE schemes are computationally expensive and require cryptographic primitives like indistinguishability obfuscation, which are not yet viable at scale. For example, obfuscating a small circuit required 3.7 hours and 120 GB of disk space, making such a scheme impractical for widespread use in Bitcoin (1). [1]
Advertisement
Bitcoin covenants have been proposed as a way to enforce spending conditions on funds without altering the consensus rules of the network. Jeremy Rubin introduced the concept of FE’d Up Covenants in a 2024 paper, suggesting that functional encryption (FE) could be used to move covenant behavior out of Bitcoin Script and into the signing key. This approach would allow signing keys to be restricted to predefined sets of valid transactions, eliminating the need for a soft fork (1). [1]
Functional encryption generalizes public-key cryptography by allowing subsidiary keys to perform specific functions on encrypted data. In the context of FE-based covenants, a master secret is used to issue functional keys that can perform a signing function. These keys can produce valid signatures for transactions that conform to a spending policy, but only for a public key that has been tweaked with the hash of that policy (1). [1]
Implementing FE-based covenants requires a trusted setup authority to generate a Bitcoin key pair and an FE key pair. This authority must destroy the private keys after setup to prevent unauthorized spending that violates the covenant. However, the cryptographic primitives required for FE, such as multi-input FE and indistinguishability obfuscation, remain impractical for real-world use due to high computational costs and large resource requirements (1). [1]
Bitcoin covenants are a proposed mechanism that would allow users to impose spending conditions on their funds without altering the consensus rules of the network. Functional encryption (FE), a cryptographic technique that generalizes public-key cryptography, has been considered as a potential method for implementing such covenants. FE allows subsidiary keys to perform specific functions on encrypted data, which could enable the enforcement of covenant rules through cryptographically restricted signing keys (CoinTelegraph, 2024). [1]
Advertisement
In FE-based covenants, the signing process is restricted to a predefined set of valid transactions. This is achieved through the use of multi-input FE, where the function f(k, tx, program, proof) is used to sign transactions that conform to a spending policy. The function f does not sign directly with the private key but instead derives a new key pair by tweaking the private key with a hash of the covenant’s spending policy. The resulting signature is valid for the tweaked public key, not the original one (CoinTelegraph, 2024). [1]
Implementing FE-based covenants requires a setup authority to generate a Bitcoin key pair and an FE key pair. The setup authority must be trusted to destroy the private keys after publication, as retaining them could allow unauthorized spending. Despite the theoretical appeal of FE-based covenants, practical implementation remains infeasible due to the computational overhead and the reliance on cryptographic primitives such as indistinguishability obfuscation, which are not yet viable at scale (CoinTelegraph, 2024). [1]
Sources
Prepared with AI assistance from the cited sources.
The Cali Reporter newsletter
The stories worth your time.
California, the country, and what comes next. Join our free newsletter for reporting that keeps you informed.
More in Business
- Kirkland Signature Meals: A Family's Take on Taste and Value
A family's review of Kirkland Signature meals highlights a mix of flavors, textures, and value at Costco, with some dishes standing out while others fall short of expectations.
- Ex-OpenAI Engineer Donates Equity to AI Safety
Jacob Coxon, a former engineer at OpenAI and Anthropic, has pledged to donate his equity in OpenAI to AI safety research, citing concerns over the risks of uncontrolled AI development.
- Scottish Hacker Sentenced for Crypto Theft Scheme
A Scottish hacker has been sentenced to six years in U.S. federal prison for orchestrating a large-scale cryptocurrency theft operation, according to a report from the U.S. Attorney’s Office for the Central District of…
