Pay to signature hash as a covenant



Summary:

The author of the context is exploring the possibility of using covenants in a pay-to-public-key (P2PK) scenario without requiring any consensus changes. They are experimenting with P2PK and legacy signatures, but believe that Schnorr signatures will be more flexible and allow for more use cases. They propose a "pay to signature" script using OP_SWAP and OP_CHECKSIG, but acknowledge that it is insecure. They suggest replacing it with a signature hash, which would be untouched, and discuss the flexibility of signatures over public keys. The author believes that if the right signature with the correct sighashes were used, it could be possible to disable key recovery and require a specific public key, which could restrict the destination address. They are open to ideas on how to complete this puzzle and suggest combining it with OP_CHECKSIGADD or wrapping it in multisig.


Updated on: 2023-05-22T19:55:45.391910+00:00