bitcoin scripting and lisp



Summary:

On March 9, 2022, Anthony Towns proposed the idea of redoing the singleton pattern in Bitcoin's context. He suggests passing both the full transaction one is spending and the full transaction of its parent to retrieve the parent's scriptPubKey. Although this may seem cumbersome, it is possible to drop the witness data, which would prevent every transaction from including the entire history of the singleton. In response to the proposal, it was suggested that if a soft fork only makes a best effort for opcodes it knows about, and otherwise succeeds, then the script/output becomes anyone-can-spend. To alleviate this issue, untrusted code could be wrapped in a guard, which can be the soft fork opcode itself. Alternatively, implementing a simple approach to versioning may be more expedient, allowing the soft fork op to reject fakeopcode and fail the script, which gives the desirable behavior. However, soft forking in CLVM has not been implemented yet.


Updated on: 2023-06-15T17:30:25.881627+00:00