<oembed><type>rich</type><version>1.0</version><author_name>npub12p7jzesdg8kxdg8rujr20znnd868fgugczkwh4cyxwa6gnxj5sxsnjs309</author_name><author_url>https://nostr.ae/npub12p7jzesdg8kxdg8rujr20znnd868fgugczkwh4cyxwa6gnxj5sxsnjs309</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2017-09-07&#xA;📝 Original message:After reading&#xA;https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2016-January/012194.html&#xA;I see that Adam is correct. Unfortunately this SF would make Felix&#39;s&#xA;confidential transactions&#xA;more complicated. The blinding and unblinding transactions would have to&#xA;be created with&#xA;minimal output values, and this will need to be considered when checking&#xA;that the fee is equal&#xA;to the total amount of input. (it would now be SUM(inputs) -&#xA;SUM(minimalOutputs))&#xA;&#xA;Blinding transaction:&#xA;  Ins:&#xA;    All non-confidential inputs are valid&#xA;  Outs:&#xA;  - 0..N: (new confidential outputs)&#xA;    amount: 0&#xA;    scriptPubkey: OP_2 &lt;0x{32-byte-hash-value}&gt;&#xA;    witnessOut: &lt;0x{petersen-commitment}&gt; &lt;0x{range-proof}&gt;&#xA;  - last:&#xA;    amount: 0&#xA;    scriptPubkey: OP_RETURN OP_2 {blinding-fee-amount}&#xA;  Fee: Sum of the all inputs value&#xA;&#xA;&#xA;However, looking at the format of the blinding transaction, and how the&#xA;GCTXO is added to the UTXO set&#xA;by miners, it seems that a change to the blinding scriptPubKey could&#xA;allow for the use of 0 value&#xA;outputs. Even with the SF proposed by this email thread.&#xA;&#xA;OP_RETURN could be added to the scriptPubKey during blinding. The amount&#xA;and scriptPubKey destination of&#xA;unblinded funds is part of the witness and the outputs of an unblinded&#xA;transaction are unspendable, so&#xA;why not also make them unspendable in the blind transaction? As far as I&#xA;can tell those outputs don&#39;t need to&#xA;be spendable, they are really just encoding data. It doesn&#39;t seem like&#xA;anything besides the confidential base&#xA;transaction and the fee output from the blind transaction need to be in&#xA;the UTXO set.&#xA;&#xA;Is it still possible to add this data to the witness if the scriptPubKey&#xA;is unspendable? :&#xA;&#xA;witnessOut: &lt;0x{petersen-commitment}&gt; &lt;0x{range-proof}&gt;&#xA;&#xA;I think I&#39;m missing something obvious, someone point out why this is&#xA;stupid please :)&#xA;&#xA;On 09/06/2017 06:29 PM, Adam Back wrote:&#xA;&gt; The pattern used by Felix Weiss&#39; BIP for Confidential Transactions&#xA;&gt; depends on or is tidier with 0-value outputs.&#xA;&gt;&#xA;&gt; Adam&#xA;&gt;&#xA;&gt;&#xA;&gt; On 7 September 2017 at 00:54, CryptAxe via bitcoin-dev&#xA;&gt; &lt;bitcoin-dev at lists.linuxfoundation.org&gt; wrote:&#xA;&gt;&gt; As long as an unspendable outputs (OP_RETURN outputs for example) with&#xA;&gt;&gt; amount=0 are still allowed I don&#39;t see it being an issue for anything.&#xA;&gt;&gt;&#xA;&gt;&gt; On Sep 5, 2017 2:52 PM, &#34;Jorge Timón via bitcoin-dev&#34;&#xA;&gt;&gt; &lt;bitcoin-dev at lists.linuxfoundation.org&gt; wrote:&#xA;&gt;&gt;&gt; This is not a priority, not very important either.&#xA;&gt;&gt;&gt; Right now it is possible to create 0-value outputs that are spendable&#xA;&gt;&gt;&gt; and thus stay in the utxo (potentially forever). Requiring at least 1&#xA;&gt;&gt;&gt; satoshi per output doesn&#39;t really do much against a spam attack to the&#xA;&gt;&gt;&gt; utxo, but I think it would be slightly better than the current&#xA;&gt;&gt;&gt; situation.&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt; Is there any reason or use case to keep allowing spendable outputs&#xA;&gt;&gt;&gt; with null amounts in them?&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt; If not, I&#39;m happy to create a BIP with its code, this should be simple.&#xA;&gt;&gt;&gt; _______________________________________________&#xA;&gt;&gt;&gt; bitcoin-dev mailing list&#xA;&gt;&gt;&gt; bitcoin-dev at lists.linuxfoundation.org&#xA;&gt;&gt;&gt; https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&#xA;&gt;&gt;&#xA;&gt;&gt; _______________________________________________&#xA;&gt;&gt; bitcoin-dev mailing list&#xA;&gt;&gt; bitcoin-dev at lists.linuxfoundation.org&#xA;&gt;&gt; https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&#xA;&gt;&gt;</html></oembed>