Confidential Script: Emulate soft forks using stateless TEEs

Aug 12 - Aug 30, 2025

  • The email discussion highlights significant advancements and collaborative efforts in the field of blockchain technology, specifically focusing on smart contract development and Bitcoin's kernel enhancements.

It introduces two key resources that contribute to the ongoing development in this domain. The first is a guide to the CTV emulator, which serves as an invaluable tool for developers by offering a sandbox environment for testing and refining smart contracts before their deployment on the blockchain. This resource can be found at https://learn.sapio-lang.org/ch05-01-ctv-emulator.html. The second resource is a scholarly paper presenting a theoretical framework for covenant-oracle with script as key tweak paradigm, accessible at https://rubin.io/public/pdfs/unfedcovenants.pdf. This document explores the integrity checks using BitVM, providing a sophisticated approach to smart contract integrity beyond conventional methods.

The sender also discusses their contribution towards integrating new operation codes into Bitcoin's kernel, emphasizing the implementation of op_ctv, op_csfs, and op_cat through a fork. This initiative aims to enhance Bitcoin's functionality by incorporating covenants, thereby advancing its capabilities. The project's GitHub repository, which hosts the covenant-enabled Bitcoin kernel fork, is shared for review and collaboration at GitHub Repository. The emphasis on simplicity within the project reflects a commitment to security, user-friendliness, and the facilitation of peer-reviewed soft fork proposals, particularly those involving financial transactions.

Further discussed is the deployment of a library within a Trusted Execution Environment (TEE), highlighting the potential for diverse applications given the various expertise other collaborators might bring. An openness to enhancing the rust-bitcoinkernel repository with support for additional functionalities like various soft forks and Simplicity suggests a strategic approach to consolidating resources and efforts for efficient and scalable deployments within TEEs.

A notable innovation mentioned is the "confidential-script-lib" library, unveiled at the BTC++ hackathon in Austin. This architecture aims to enable confidential execution of scripts not yet supported by the Bitcoin protocol, facilitating tests of features such as OP_CAT, OP_CTV, OP_CCV, and Simplicity on the mainnet in a permissionless manner. The role of TEEs, particularly AWS's Nitro Enclave, is emphasized for securing code execution against external threats while enabling reliable attestations. The integration with AWS's Key Management System (KMS) is portrayed as a robust framework for securing funds, albeit requiring trust in AWS as the operator.

The library employs a two-step emulation and signing process that enhances privacy and functionality with minimal trust reliance. A failsafe mechanism ensures fund recovery if the primary execution path becomes unavailable. Support for experimenting with proposed soft fork upgrades via the rust-bitcoinkernel API is also highlighted, recommending a setup within a Nitro Enclave integrated with AWS KMS for maximum security. This configuration stresses the importance of irrevocable KMS policies for key creation, ensuring access is strictly reserved for specific, verified enclaves.

In essence, the email conversation sheds light on innovative approaches and collaborative efforts aimed at enhancing the security, functionality, and user-friendliness of blockchain technology and smart contracts. Through the use of TEEs and sophisticated frameworks like the "confidential-script-lib" library, the discussions underscore the potential for advancing Bitcoin's capabilities and the broader application of these technologies in secure and trust-minimized environments.

Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from authoritative bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiBitcoin Transcripts Review
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project?

Give Feedback