MATT: [demo] Optimistic execution of arbitrary programs

Posted by Johan Torås Halseth

Oct 3, 2023/07:53 UTC

In the email, Johan acknowledges a typo in their previous message and clarifies that the correct notation should be O(log n), where n represents the number of steps in the program. They mention that P, which denotes how to create the commitment, is not relevant because the entire program is not put on-chain but rather broken down into n steps. Johan explains that when traversing the tree, the node scripts enforce consistency between h(sub_n ode{1,2}) and the commitment by including it in the witness. This achieves what the recipient suggests.

To ensure this consistency, the participants agree upfront, during contract creation, on the exact length of the trace or the depth of the tree. If the actual execution is shorter, the remaining steps are filled with no-ops. This allows the moment the challenge protocol starts to determine the transactions that will be played, similar to a CTV (Channel Transparency and Verifiability) tree. If any participant creates a trace from a non-balanced state tree, it will be rejected by the script at that level. Johan emphasizes the importance of building the state tree in a deterministic manner and expresses gratitude for the error correction.

Link to Raw Post
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