<div dir="ltr"><div>I&#39;m requesting feedback for Hash Time-Locked Contract (HTLC) transactions in Bitcoin.</div><div><br></div><div>HTLC transactions allow you to pay for the preimage of a hash. CSV/CLTV can be used to recover your funds if the other party is not cooperative. These scripts take the following general form:</div><div><br></div><div><div>    [HASHOP] &lt;digest&gt; OP_EQUAL</div><div>    OP_IF</div><div>        &lt;seller pubkey&gt;</div><div>    OP_ELSE</div><div>        &lt;num&gt; [TIMEOUTOP] OP_DROP &lt;buyer pubkey&gt;</div><div>    OP_ENDIF</div><div>    OP_CHECKSIG</div></div><div><br></div><div>These transactions are useful for both the Lightning network and in zero-knowledge contingent payments. This very script (using CLTV and SHA256) was used as part of our &quot;pay-to-sudoku&quot; ZKCP demo earlier this year: <a href="https://github.com/zcash/pay-to-sudoku">https://github.com/zcash/pay-to-sudoku</a></div><div><br></div><div>Members of the community have expressed the desire for a BIP to submitted in coordination with changes to Bitcoin Core that support these transactions in the wallet.</div><div><br></div><div>Please review my draft BIP here: <a href="https://gist.github.com/ebfull/8306903041d46e4119a39442f72a3741">https://gist.github.com/ebfull/8306903041d46e4119a39442f72a3741</a></div><div><br></div><div>An implementation is being worked on here: <a href="https://github.com/bitcoin/bitcoin/pull/7601">https://github.com/bitcoin/bitcoin/pull/7601</a><br></div><div><br></div><div>Thanks!</div><div><br></div><div>Sean Bowe<br></div><div>Zcash</div></div>