<div dir="ltr"><div><div>The aheaders message is required to make use of the data by SPV clients.  This could be in a separate BIP though.  I wanted to show that the merkle path to the aux-header transaction could be efficiently encoded, but a reference to the other BIP would be sufficient.<br><br></div>For the other messages, the problem is that the hash of the aux header is part of the block, but the aux header itself is not.  That means that the aux header has to be sent for validation of the block.<br><br></div>I will change it so that the entire aux-header is encoded in the block.  I think encoding the hash in the final transaction and the full aux-header in the 2nd last one is the best way to do it.  This has the added advantage of reducing the changes to block data storage, since the aux-header doesn&#39;t have to be stored separately.<br><div><br><div><div><div><div class="gmail_extra"><div class="gmail_quote">On Mon, Nov 10, 2014 at 12:52 AM, Gregory Maxwell <span dir="ltr">&lt;<a href="mailto:gmaxwell@gmail.com" target="_blank">gmaxwell@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Some initial comments...<br>
<br>
Tying in the protocol changes is really confusing and the fact that<br>
they seem to be required out the gates would seemingly make this much<br>
harder to deploy.   Is there a need to do that? Why can&#39;t the p2p part<br>
be entirely separate from the comitted data?<br>
<div><div><br>
On Mon, Nov 10, 2014 at 12:39 AM, Tier Nolan &lt;<a href="mailto:tier.nolan@gmail.com" target="_blank">tier.nolan@gmail.com</a>&gt; wrote:<br>
&gt; I made some changes to the draft.  The merkleblock now has the auxiliary<br>
&gt; header information too.<br>
&gt;<br>
&gt; There is a tradeoff between overhead and delayed transactions.  Is 12.5%<br>
&gt; transactions being delayed to the next block unacceptable?  Would adding<br>
&gt; padding transactions be an improvement?<br>
&gt;<br>
&gt; Creating the &quot;seed&quot; transactions is an implementation headache.<br>
&gt;<br>
&gt; Each node needs to have control over an UTXO to create the final transaction<br>
&gt; in the block that has the digest of the auxiliary header.  This means that<br>
&gt; it is not possible to simply start a node and have it mine.  It has to<br>
&gt; somehow be given the private key.  If two nodes were given the same key by<br>
&gt; accident, then one could end up blocking the other.<br>
&gt;<br>
&gt; On one end of the scale is adding a transaction with a few thousand outputs<br>
&gt; into the block chain.  The signatures for locktime restricted transactions<br>
&gt; that spend those outputs could be hard-coded into the software.  This is the<br>
&gt; easiest to implement, but would mean a large table of signatures.  The<br>
&gt; person who generates the signature list would have to be trusted not to<br>
&gt; spend the outputs early.<br>
&gt;<br>
&gt; The other end of the scale means that mining nodes need to include a wallets<br>
&gt; to manage their UTXO entry.  Miners can split a zero value output into lots<br>
&gt; of outputs, if they wish.<br>
&gt;<br>
&gt; A middle ground would be for nodes to be able to detect the special<br>
&gt; transactions and use them.  A server could send out timelocked transactions<br>
&gt; that pay to a particular address but the transaction would be timelocked.<br>
&gt; The private key for the output would be known.  However, miners who mine<br>
&gt; version 2 blocks wouldn&#39;t be able to spend them early.<br>
&gt;<br>
&gt;<br>
&gt; On Sat, Nov 8, 2014 at 11:45 PM, Tier Nolan &lt;<a href="mailto:tier.nolan@gmail.com" target="_blank">tier.nolan@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I created a draft BIP detailing a way to add auxiliary headers to Bitcoin<br>
&gt;&gt; in a bandwidth efficient way.  The overhead per auxiliary header is only<br>
&gt;&gt; around 104 bytes per header.  This is much smaller than would be required by<br>
&gt;&gt; embedding the hash of the header in the coinbase of the block.<br>
&gt;&gt;<br>
&gt;&gt; It is a soft fork and it uses the last transaction in the block to store<br>
&gt;&gt; the hash of the auxiliary header.<br>
&gt;&gt;<br>
&gt;&gt; It makes use of the fact that the last transaction in the block has a much<br>
&gt;&gt; less complex Merkle branch than the other transactions.<br>
&gt;&gt;<br>
&gt;&gt; <a href="https://github.com/TierNolan/bips/blob/aux_header/bip-aux-header.mediawiki" target="_blank">https://github.com/TierNolan/bips/blob/aux_header/bip-aux-header.mediawiki</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
</div></div><div><div>&gt; ------------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Bitcoin-development mailing list<br>
&gt; <a href="mailto:Bitcoin-development@lists.sourceforge.net" target="_blank">Bitcoin-development@lists.sourceforge.net</a><br>
&gt; <a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
&gt;<br>
</div></div></blockquote></div><br></div></div></div></div></div></div>