To implement tail recursion in Bitcoin Script you have to 1…

Twetch ·

To implement tail recursion in Bitcoin Script you have to 1) unroll your loops 2) use the ALT_STACK to pass input to the next unrolled iteration.