<div dir="ltr">There is a discussion about clarifying how BIP70 signs payment requests here:<div> <a href="https://github.com/bitcoin/bips/pull/41">https://github.com/bitcoin/bips/pull/41</a></div><div><br></div><div>The issue is what to do with the signature field before signing. The code Mike and I initially wrote does this:</div>
<div><br></div><div> request.set_signature(string(""));</div><div><br></div><div>(sets signature to the empty string)</div><div><br></div><div>I think that is a mistake; it should be:</div><div><br></div><div>
request.clear_signature();</div><div><br></div><div>(clears signature field, so it is not serialized at all).</div><div><br></div><div>So: if you are implementing, or have implemented, the payment protocol, please chime in. I'd like to change the spec and the reference implementation NOW, while BIP70 is still a 'Draft'.</div>
<div><br></div><div>Because this type of "hey, I'm implementing your standard and it doesn't work the way I think it should" mistake is exactly why BIPs take a while before being declared 'Final.'</div>
<div><br clear="all"><div><br></div>-- <br>--<br>Gavin Andresen<br>
</div></div>