Implementing Covenants with OP_CHECKSIGFROMSTACKVERIFY



Summary:

A proposal for implementing covenants using two script extensions, OP_CAT and OP_CHECKSIGFROMSTACKVERIFY, is detailed in a blog post by Russell O'Connor. This construction is not sensitive to the design point of OP_CHECKSIGFROMSTACKVERIFY and can work with either implementation. Johnson Lau has implemented OP_CHECKSIGFROMSTACKVERIFY differently from Elements, putting the 32 byte hash directly on the stack, which could be more flexible for systems not using double-SHA256. O'Connor is interested in implementing other useful covenants and encourages people to share their ideas.


Updated on: 2023-06-11T20:30:55.779798+00:00