<oembed><type>rich</type><version>1.0</version><author_name>npub1g5zswf6y48f7fy90jf3tlcuwdmjn8znhzaa4vkmtxaeskca8hpss23ms3l</author_name><author_url>https://nostr.ae/npub1g5zswf6y48f7fy90jf3tlcuwdmjn8znhzaa4vkmtxaeskca8hpss23ms3l</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2020-06-20&#xA;📝 Original message:&#xA;Good morning again,&#xA;&#xA;&gt; Good morning Dave,&#xA;&gt;&#xA;&gt; &gt; ZmnSCPxj noted that pay-to-preimage doesn&#39;t work with PTLCs.[2] I was&#xA;&gt; &gt; hoping one of Bitcoin&#39;s several inventive cryptographers would come&#xA;&gt; &gt; along and describe how someone with an adaptor signature could use that&#xA;&gt; &gt; information to create a pubkey that could be put into a transaction with&#xA;&gt; &gt; a second output that OP_RETURN included the serialized adaptor&#xA;&gt; &gt; signature. The pubkey would be designed to be spendable by anyone with&#xA;&gt; &gt; the final signature in a way that revealed the hidden value to the&#xA;&gt; &gt; pubkey&#39;s creator, allowing them to resolve the PTLC. But if that&#39;s&#xA;&gt; &gt; fundamentally not possible, I think we could advocate for making&#xA;&gt; &gt; pay-to-revealed-adaptor-signature possible using something like&#xA;&gt; &gt; OP_CHECKSIGFROMSTACK.[3]&#xA;&gt;&#xA;&gt; &lt;snip&gt;&#xA;&gt;&#xA;&gt; The signed message could be a signature to `SIGHASH_NONE`, finally an actual use for that flag.&#xA;&#xA;If you are going to embed it in an `OP_RETURN` in the same transaction, you also need `SIGHASH_ANYPREVOUT`, otherwise you cannot embed the adaptor signature for spending from that transaction in the transaction being spent, it also implies `A[p4s] = a[p4s] * G` is a one-time-use keypair.&#xA;&#xA;Regards,&#xA;ZmnSCPxj</html></oembed>