CheckSigFromStack for Arithmetic Values



Summary:

A developer named Jeremy Rubin has shared a technique on how to do a lamport signature in script for arithmetic values by using a binary expanded representation. He posted about it in his blog and provided a python code and a bitcoin script translation of the technique. The technique involves expanding a number into its bitwise representation and using a lamport signature. It is possible to use this for certain applications such as bonding contracts where possessing any K_i_0 and K_i_1 allows the burning of funds. However, the technique can be a bit bulky and expensive, but it is still doable. Keys can be reused across scripts, but signatures may only be constructed one time to prevent unintended values.


Updated on: 2023-06-14T23:54:43.526221+00:00