Re: [bitcoin-dev] MATT: [demo] Optimistic execution of arbitrary programs

2023-10-03 Thread Johan Torås Halseth via bitcoin-dev
Hi, aj. Thanks for taking a look! > "O(n log n)" sounds wrong? Isn't it O(P + log(N)) where P is the size > of the program, and N is the number of steps (rounded up to a power of 2)? Thanks, you are right. That's a typo, it should indeed be O(log n). n being the number of steps in the program. I

Re: [bitcoin-dev] MATT: [demo] Optimistic execution of arbitrary programs

2023-10-02 Thread Anthony Towns via bitcoin-dev
On Fri, Sep 29, 2023 at 03:14:25PM +0200, Johan Torås Halseth via bitcoin-dev wrote: > TLDR; Using the proposed opcode OP_CHECKCONTRACTVERIFY and OP_CAT, we > show to trace execution of the program `multiply` [1] and challenge > this computation in O(n logn) on-chain transactions: "O(n log n)" so

[bitcoin-dev] MATT: [demo] Optimistic execution of arbitrary programs

2023-09-29 Thread Johan Torås Halseth via bitcoin-dev
Hi, all! I've been working on an implementation of the original MATT challenge protocol[0], with a detailed description of how we go from a "high-level arbitrary program" to something that can be verified on-chain in Bitcoin Script. You can find the write-up here, which also includes instructions