Ephemeral Sidechains

I figured out a good formula for Ephemeral Sidechains in the context of BitVM bridge or any trustless bridge, by parameterizing the threshold based on the amounts withdrawn. The same can apply to light clients based on the funds that the user has on the sidechain.

Basically the logic is to require a minimum number of difficulty epochs relative to the amount withdrawn according to the formula: number_of_epochs = ceil(sqrt(amount_in_sats) / (2^20))

These numbers are chosen so that the minimum is 1 difficulty epoch (14 days) and the most is 26 epochs (~1 year).