Miniscript on LN (was: eltoo implementation in Bitcoin functional test framework)



Summary:

The author of the message questions the use of miniscript for Lightning unless they decide to support transporting arbitrary contracts. They argue that it would be easier to have carefully coded SCRIPT to transport HTLCs instead. The author then goes on to discuss the implications of supporting arbitrary contracts over payment channels, including the fact that very few contracts are "routable" and that any absolute timelocks on the contract will imply that the hosting payment channel has a lifetime up to the timelock. Additionally, any contract will automatically get a `|| (A && B)` appended to it where `A` and `B` are the channel counterparties.Of note is that a miniscript compiler would be quite useful if they were to support arbitrary contracts over Poon-Dryja channels. However, under Decker-Russell-Osuntokun, the additional conditions on the arbitrary contract are unnecessary. The forwardability of arbitrary contracts is more difficult to prove, but it may be possible. The author concludes by stating that while the miniscript is more amenable to programmatic analysis, they do not know what property needs to be actually proven in order to prove that contracts can be forwarded somehow.


Updated on: 2023-06-02T20:11:06.117949+00:00