Bitcoin Covenants Without a Soft Fork: How Functional Encryption Could Enable Programmable Spending
Bitcoin covenants could potentially be introduced without changing the network’s consensus rules through a cryptographic approach known as functional encryption. The proposed method would use specialized signing mechanisms to enforce restrictions on how Bitcoin can be spent, while allowing network nodes to continue using existing signature verification procedures.
The concept addresses a longstanding challenge in Bitcoin development. Changes to consensus rules require coordination among developers, miners, node operators, and other network participants, making protocol upgrades increasingly difficult to implement.
Functional encryption offers a theoretical alternative by enforcing transaction conditions through cryptographic signatures rather than introducing additional operations to Bitcoin Script. However, significant computational and security limitations remain before the approach could become practical.
What Are Bitcoin Covenants?
Bitcoin covenants are mechanisms that establish conditions governing how cryptocurrency can be spent after it has been received. While conventional Bitcoin transactions primarily rely on valid signatures, covenants introduce additional restrictions on future spending.
These mechanisms could support more advanced custody arrangements, automated payment structures, and security features designed to protect Bitcoin holdings.
Traditional proposals, including OP_CHECKTEMPLATEVERIFY (OP_CTV), would require modifications to Bitcoin’s consensus rules. Functional encryption, by contrast, seeks to enforce spending restrictions within the existing signature verification framework.
How Functional Encryption Could Work
Functional encryption (FE) is a cryptographic method that allows specific information to be obtained from encrypted data without revealing the underlying plaintext. Dan Boneh, Amit Sahai, and Brent Waters formally introduced the concept in academic literature in 2011, with subsequent research expanding the range of functions it could support.
In May 2024, Bitcoin developer Jeremy Rubin presented a covenant construction based on functional encryption in a paper titled FE’d Up Covenants.
The proposal uses cryptographic signing functions to restrict transaction authorization to predefined spending conditions. Bitcoin nodes would verify the resulting signatures through the existing OP_CHECKSIG operation, meaning the construction would not require a consensus upgrade.
Under Rubin’s approach, multi-input functional encryption processes encrypted private keys alongside proposed transactions. A signing function derives a modified private key using a cryptographic hash of the covenant’s spending policy, then generates signatures corresponding to the modified public key associated with that policy.
Transactions that fail to satisfy the established conditions cannot produce valid signatures for the public key controlling the funds. This would allow spending restrictions to operate without adding new Bitcoin Script operations.
Trusted Setup and the Role of Zero-Knowledge Proofs
Establishing these covenants would require a trusted setup authority to generate Bitcoin and functional encryption key pairs. The authority would publish the required public keys, an encrypted Bitcoin private key, and a specialized functional key. It would then need to destroy the original Bitcoin private key and the functional encryption master secret to prevent unauthorized spending.
After setup, users could create multiple covenant addresses with different spending conditions. One possible arrangement would use a two-of-two signature requirement, combining a user-controlled signature with a functional encryption signature.
Zero-knowledge proofs could further extend the construction. Rubin’s general approach incorporates a program defining transaction requirements alongside a proof that a proposed transaction satisfies those conditions. The signing function could verify a compact proof instead of executing the entire program, potentially reducing computational complexity and allowing spending policies to incorporate verified results from off-chain computations.
Functional Encryption vs. OP_CTV
OP_CTV, introduced through Bitcoin Improvement Proposal 119, restricts spending by committing to predefined transaction templates. Its implementation would require a Bitcoin consensus upgrade through a soft fork.
Functional encryption instead seeks to enforce conditions through specialized signing mechanisms without introducing new consensus rules. More expressive constructions could also support spending conditions beyond predefined transaction templates.
However, OP_CTV has advantages in computational efficiency, implementation complexity, and verification requirements. Functional encryption shifts more computational responsibility to transaction signers while preserving existing verification procedures for Bitcoin nodes.
Security Risks and Practical Limitations
Trusted setup procedures represent one of the main security concerns. If the authority responsible for generating the cryptographic keys retains sensitive material, it could create risks of unauthorized spending.
Computational demands are another major obstacle. A 2017 study by Carmer, Malozemoff, and Raykova found that obfuscating a relatively small cryptographic function required approximately 120 GB of storage, while evaluating it took 67 minutes.
The findings illustrate the resource requirements associated with the cryptographic techniques underlying expressive functional encryption. Existing practical schemes generally support limited mathematical functions rather than the complex signing operations needed for Bitcoin covenants.
Consequently, further cryptographic advances are necessary before functional encryption-based covenants can become commercially viable. The approach remains a theoretical option for programmable Bitcoin spending, rather than a practical feature currently available on the network.
Writer: Emily Carter
Crypto & Financial Markets Journalist
Emily Carter reports on cryptocurrency markets, digital asset developments, blockchain innovation, and the global forces shaping the future of finance. Her coverage focuses on market movements, institutional developments, regulatory shifts, and the evolving digital economy.

