Replying to Avatar jungly

Sir, I cannot zap you. This comment is highly zap worthy.

I have also been looking for ways to swap coinbase outputs for other outputs. Apparently covenants are a no go because tx introspection across outputs not covered by the script being executed is more powerful than any proposal on offer.

Two other ideas are coinswaps or DLCs.

If we lock a coinbase output to a 2-of-2 script that would cover the initial staging tx. I think it would require one more tx after that to complete transfer of ownership. This creates a natural 100 block baking period for the contract. Maybe useful, maybe problematic. Still thinking on it.

DLCs are very intriguing because we can also lock up ecash in a DLC. I think this is the most promising idea at the moment because it blurs the line between on-chain and ecash anon sets.

Reply to this note

Please Login to reply.

Discussion

Edited for clarity:

For a coinswap, if we lock a coinbase output to a 2-of-2 script that would cover the initial staging tx.

Next step is to develop a scheme to resolve a DLC when a coinbase output matching this shape is emitted within this timeframe.

I published a design a while back for using DLCs to pay miners, where the federation of mining service providers act as the oracle.

https://www.radpool.xyz/1/payout-mechanism.html

Do you have any links on how ecash is locked into a DLC? i haven't read about that.

Regarding swaps, another idea is to run these swaps on LN. I have been told boltz is doing just that.

Ecash can do lightning swaps too https://github.com/cashubtc/nuts/blob/main/14.md

Excellent. Thanks for sharing. I'll read through and come back here.