Can Bitcoin conditional opcodes like OP_IF interact directly with UTXOracle?

nostr:nprofile1qqsqlk5pjxkwgjh4x9gxj990vm5ewrqw0qmrwyst05wh5hexduvvt4cpr9mhxue69uhkummnw3ezumr9vd682unfveujumn9wsq3jamnwvaz7tmwdaehgu3ww35x2umpd4jkxct59e5k7ft6gfq

This could be simpler and more direct than DLCs!

Reply to this note

Please Login to reply.

Discussion

I love all the idea you’re having. I also think a new world is opening here

As for op codes, those are at the script level and scripts are not allowed to ask for information outside of the transaction

Even if I were to embed UTXOracle price in an op-return, not other tx script could read that op-return

So there still needs to be some kind of host that’s running both the oracle and the dlc

However UTXOracle makes it all people running these things will be working with the exact same price

The problem is that there is no opcode (also none was proposed afaik) which allows you to read data from the blockchain (or elsewhere). Which means you always heave to provide the data as an input which put UTXOoracles at a similar level as other oracles . Main difference is that you can verity yourself that the price was correct

UTXOracle price look up works so long as it is not being gamed. If there was serious money on the line for an oracle problem and especially if on-chain fees are low, it would be worth it to spam the chain with "round dollar" self spends that distort the UTXOracle price inference.