<oembed><type>rich</type><version>1.0</version><author_name>npub1tjephawh7fdf6358jufuh5eyxwauzrjqa7qn50pglee4tayc2ntqcjtl6r</author_name><author_url>https://nostr.ae/npub1tjephawh7fdf6358jufuh5eyxwauzrjqa7qn50pglee4tayc2ntqcjtl6r</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2015-01-21&#xA;📝 Original message:On Wed, Jan 21, 2015 at 2:29 PM, Douglas Roark &lt;doug at bitcoinarmory.com&gt; wrote:&#xA;&gt; Nice paper, Pieter. I do have a bit of feedback.&#xA;&#xA;Thanks for the comments. I hope I have clarified the text a bit accordingly.&#xA;&#xA;&gt; 1)The first sentence of &#34;Deployment&#34; has a typo. &#34;We reuse the&#xA;&gt; double-threshold switchover mechanism from BIP 34, with the same&#xA;&gt; *thresholds*, [....]&#34;&#xA;&#xA;Fixed.&#xA;&#xA;&gt; 2)I think the handling of the sighash byte in the comments of&#xA;&gt; IsDERSignature() could use a little tweaking. If you look at&#xA;&gt; CheckSignatureEncoding() in the actual code (src/script/interpreter.cpp&#xA;&gt; in master), it&#39;s clear that the sighash byte is included as part of the&#xA;&gt; signature struct, even though it&#39;s not part of the actual DER encoding&#xA;&gt; being checked by IsDERSignature(). This is fine. I just think that the&#xA;&gt; code comments in the paper ought to make this point clearer, either in&#xA;&gt; the sighash description, or as a comment when checking the sig size&#xA;&gt; (i.e., size-3 is valid because sighash is included), or both.&#xA;&#xA;I&#39;ve renamed the function to IsValidSignatureEncoding, as it is not&#xA;strictly about DER (it adds a Bitcoin-specific byte, and supports and&#xA;empty string too).&#xA;&#xA;&gt; 3)The paper says a sig with size=0 is correctly coded but is neither&#xA;&gt; valid nor DER. Perhaps this code should be elsewhere in the Bitcoin&#xA;&gt; code? It seems to me that letting a sig pass in IsDERSignature() when&#xA;&gt; it&#39;s not actually DER-encoded is incorrect.&#xA;&#xA;I&#39;ve expanded the comments about it a bit.&#xA;&#xA;-- &#xA;Pieter</html></oembed>