<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <updated>2023-06-07T01:53:42Z</updated>
  <generator>https://yabu.me</generator>

  <title>Nostr notes by Rodolfo Novak [ARCHIVE]</title>
  <author>
    <name>Rodolfo Novak [ARCHIVE]</name>
  </author>
  <link rel="self" type="application/atom+xml" href="https://yabu.me/npub1vy8ll4atyylcp7ey5j9vhqzg9xkeqkz4z6se83mmvnefrnj0a7as9982pv.rss" />
  <link href="https://yabu.me/npub1vy8ll4atyylcp7ey5j9vhqzg9xkeqkz4z6se83mmvnefrnj0a7as9982pv" />
  <id>https://yabu.me/npub1vy8ll4atyylcp7ey5j9vhqzg9xkeqkz4z6se83mmvnefrnj0a7as9982pv</id>
  <icon></icon>
  <logo></logo>




  <entry>
    <id>https://yabu.me/nevent1qqs22870q4hdx25klzv0rpv6dslwwal84ntmmkmytpgjc686w9h6gyszypssll7h4vsnlq8myjjg4juqfq56myzc25t2ry780dj09ywwflhmkwg23yx</id>
    
      <title type="html">📅 Original date posted:2018-06-28 📝 Original message:Hello ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqs22870q4hdx25klzv0rpv6dslwwal84ntmmkmytpgjc686w9h6gyszypssll7h4vsnlq8myjjg4juqfq56myzc25t2ry780dj09ywwflhmkwg23yx" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsqfc6eqcn8p5vclvaev28sf2jlt43rf336s3cgdamd2l873a2m9kq3j00xw&#39;&gt;nevent1q…00xw&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2018-06-28&lt;br/&gt;📝 Original message:Hello Folks,&lt;br/&gt;&lt;br/&gt;Thanks for expediting this debate, I understand some still disagree about how this final spec should look like.&lt;br/&gt;&lt;br/&gt;1. Coldcard&amp;#39;s plugin for Electrum using the original BIP spec is ready, &lt;a href=&#34;https://github.com/spesmilo/electrum/pull/4470&#34;&gt;https://github.com/spesmilo/electrum/pull/4470&lt;/a&gt; &amp;lt;&lt;a href=&#34;https://github.com/spesmilo/electrum/pull/4470&amp;gt&#34;&gt;https://github.com/spesmilo/electrum/pull/4470&amp;gt&lt;/a&gt;;&lt;br/&gt;2. Our hardware is ready with this spec (src will be public soon)&lt;br/&gt;3. Samourai Wallet and Sentinel also are ready with the current spec.&lt;br/&gt;&lt;br/&gt;We intend to upgrade it once the final spec is ready, but I need to ship Coldcard.&lt;br/&gt;&lt;br/&gt;Cheers,&lt;br/&gt;&lt;br/&gt;ℝ.&lt;br/&gt;&lt;br/&gt;Rodolfo Novak  ||  Founder, Coinkite  ||  twitter @nvk  ||  GPG: B444CDDA&lt;br/&gt;&lt;br/&gt;&amp;gt; On Jun 27, 2018, at 13:55, Achow101 via bitcoin-dev &amp;lt;bitcoin-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; Hi,​&lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; On June 26, 2018 11:09 PM, William Casarin &amp;lt;jb55 at jb55.com&amp;gt; wrote:&lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt;&amp;gt; ​​&lt;br/&gt;&amp;gt;&amp;gt; &lt;br/&gt;&amp;gt;&amp;gt; Hey Andrew,&lt;br/&gt;&amp;gt;&amp;gt; &lt;br/&gt;&amp;gt;&amp;gt; If I&amp;#39;m reading the spec right: the way it is designed right now, you&lt;br/&gt;&amp;gt;&amp;gt; &lt;br/&gt;&amp;gt;&amp;gt; could create hundreds of thousands of zero bytes in the input or output&lt;br/&gt;&amp;gt;&amp;gt; &lt;br/&gt;&amp;gt;&amp;gt; key-value arrays. As far as I can tell this would be considered valid,&lt;br/&gt;&amp;gt;&amp;gt; &lt;br/&gt;&amp;gt;&amp;gt; as it is simply a large array of empty dictionaries. Is this right? I&amp;#39;m&lt;br/&gt;&amp;gt;&amp;gt; &lt;br/&gt;&amp;gt;&amp;gt; worried about buffer overflows in cases where someone sends a large blob&lt;br/&gt;&amp;gt;&amp;gt; &lt;br/&gt;&amp;gt;&amp;gt; of zeros to an unsuspecting implementation.&lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; No, that is incorrect. That whole paragraph is actually outdated, it was intended&lt;br/&gt;&amp;gt; for the possibility of adding output maps, which we have already done. I have &lt;br/&gt;&amp;gt; removed it from the BIP.&lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; However, it is possible for a PSBT to contain very large unknown key-value pairs &lt;br/&gt;&amp;gt; which could potentially cause a problem. But I do not think that large PSBTs should &lt;br/&gt;&amp;gt; really be a problem as they are really something that the user has to enter rather &lt;br/&gt;&amp;gt; than something received remotely without user interaction.&lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; On June 27, 2018 6:39 AM, Andrea via bitcoin-dev &amp;lt;bitcoin-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt;&amp;gt; ​​&lt;br/&gt;&amp;gt;&amp;gt; &lt;br/&gt;&amp;gt;&amp;gt; Hi William, Andrew, list,&lt;br/&gt;&amp;gt;&amp;gt; &lt;br/&gt;&amp;gt;&amp;gt; As noted by William there are some types missing in the global-types definition, because the number of each map for I/O must be known to the parser in order to use the correct definitions for the types. At the moment a parser reading a key-value record does not know whether it should read it as per-input type or per-output, a way to address this is to declare in advance the number of maps and ensure they are ordered (inputs first). If you haven&amp;#39;t already worked out some types for that i propose using:&lt;br/&gt;&amp;gt;&amp;gt; &lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; Parsers actually do know because that information is present in the unsigned transaction &lt;br/&gt;&amp;gt; at the beginning of each PSBT. Since each input and output must be accounted for,&lt;br/&gt;&amp;gt; a parser can just parse the unsigned transaction and from there it can know how&lt;br/&gt;&amp;gt; many inputs and outputs to expect. If it sees more or less, it should throw an error&lt;br/&gt;&amp;gt; as the transaction is invalid.&lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; Of course this implies that implementations will need to parse the unsigned transaction,&lt;br/&gt;&amp;gt; but not all actually need to. Combiners do not need to, they just need to merge the&lt;br/&gt;&amp;gt; maps together and follow the key uniqueness rule. They don&amp;#39;t really need to know&lt;br/&gt;&amp;gt; or care about the number of inputs and outputs, just that the PSBTs being merged&lt;br/&gt;&amp;gt; share the same unsigned transaction and have the same number of maps.&lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; Other roles need to understand the unsigned transaction anyways, so they still need&lt;br/&gt;&amp;gt; to parse it thus this isn&amp;#39;t really a problem for those roles.&lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt;&amp;gt; &lt;br/&gt;&amp;gt;&amp;gt;    On another note I think we can set a hard limit on the size of the PSBT, currently is &amp;#39;legal&amp;#39; to produce a very large PSBT with an excessive number of Inputs and Outputs. By excessive I mean that even in the best case scenario (using the smallest possible scriptPubKey as in P2WPKH) it is possible to create a PSBT that would certainly create an invalid transaction (because of its size) when finalized. I haven&amp;#39;t found anything related to this in the previous discussions, please ignore this if it was already proposed/discussed.&lt;br/&gt;&amp;gt;&amp;gt; &lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; I don&amp;#39;t think such a limitation is practical or useful. A transaction can currently have, at most,&lt;br/&gt;&amp;gt; ~24000 inputs and ~111000 outputs (&#43;/- a few hundred) which is well beyond any useful limit.&lt;br/&gt;&amp;gt; Additionally, such limits may not be as extensible for future work. It is hard to determine what&lt;br/&gt;&amp;gt; is a reasonable limit on transaction size, and I don&amp;#39;t think it is useful to have a limit. At worst&lt;br/&gt;&amp;gt; we would simply create an invalid transaction if it were too large.&lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; Andrew&lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; _______________________________________________&lt;br/&gt;&amp;gt; bitcoin-dev mailing list&lt;br/&gt;&amp;gt; bitcoin-dev at lists.linuxfoundation.org&lt;br/&gt;&amp;gt; &lt;a href=&#34;https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&#34;&gt;https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20180628/176ddd27/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20180628/176ddd27/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-07T18:13:17Z</updated>
  </entry>

</feed>