<oembed><type>rich</type><version>1.0</version><title>Andrea [ARCHIVE] wrote</title><author_name>Andrea [ARCHIVE] (npub18r…8qr6z)</author_name><author_url>https://yabu.me/npub18rpmnsgdeefa9vxvg4sewhx70wjmnhtkcpdxuecyrlyg7ref4eyqd8qr6z</author_url><provider_name>njump</provider_name><provider_url>https://yabu.me</provider_url><html>📅 Original date posted:2018-06-24&#xA;📝 Original message:Hi, &#xA;&#xA;I think in the revised spec we can remove completely the &#34;global types&#34; as a map or even as typed record. Since there is only one type (the transaction) and it&#39;s compulsory to have one (and only one) we could just drop the definition of global type and the key associated with it, simply after the header + separator there must be a transaction.​​ Having read all the discussion i also agree having per-input key derivation and per-output data is a lot more handy for signers, no special feeling regarding the encoding.Looking forward for the test vectors and the new spec.&#xA;&#xA;Cheers, Andrea.&#xA;&#xA;‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐&#xA;&#xA;On June 23, 2018 10:33 PM, Andrew Chow via bitcoin-dev &lt;bitcoin-dev at lists.linuxfoundation.org&gt; wrote:&#xA;&#xA;&gt; ​​&#xA;&gt; &#xA;&gt; On 06/23/2018 10:00 AM, William Casarin wrote:&#xA;&gt; &#xA;&gt; &gt; Since we&#39;re still considering the encoding, I wonder if it would be a&#xA;&gt; &gt; &#xA;&gt; &gt; good idea to have a human-readible part like lightning invoices[1]?&#xA;&gt; &#xA;&gt; I don&#39;t think that is necessary.&#xA;&gt; &#xA;&gt; &gt; Then perhaps you could drop the magic code as well?&#xA;&gt; &#xA;&gt; The magic is still necessary for the binary format in order to prevent&#xA;&gt; &#xA;&gt; normal transaction deserializers from accidentally deserializing a psbt.&#xA;&gt; &#xA;&gt; &gt; Also we could do a base encoding that excludes + and / characters, such&#xA;&gt; &gt; &#xA;&gt; &gt; as base62 (gmp-style). It&#39;s easier to copy/paste (double clicking a&#xA;&gt; &gt; &#xA;&gt; &gt; string stops at / or + in base64 encodings).&#xA;&gt; &#xA;&gt; While that would be ideal, I think it is better to use an encoding that&#xA;&gt; &#xA;&gt; most wallets already support. Most wallets already have Base64 decoding&#xA;&gt; &#xA;&gt; available so that they can decode signed messages which also use Base64&#xA;&gt; &#xA;&gt; encoding. I think it is unnecessary to introduce another encoding.&#xA;&gt; &#xA;&gt; On 06/23/2018 11:27 AM, Peter D. Gray wrote:&#xA;&gt; &#xA;&gt; &gt; Personally, I don&#39;t think you should spec an encoding. It should be binary only and hex for developers and JSON interfaces. My thinking is that PSBT&#39;s are not user-visible things. They have a short lifetime and are nothing something that is &#34;stored&#34; or referenced much later. Hex is good enough and has no downsides as an excoding except for density.&#xA;&gt; &#xA;&gt; I think what will end up happening though is that, at least in the&#xA;&gt; &#xA;&gt; beginning, PSBTs will primarily be strings that people end up copy and&#xA;&gt; &#xA;&gt; pasting. Since a PSBT can get pretty large, the strings are rather&#xA;&gt; &#xA;&gt; cumbersome to move around, especially as hex. At least with Base64 the&#xA;&gt; &#xA;&gt; strings will be smaller.&#xA;&gt; &#xA;&gt; &gt; On the other hand, suggesting a filename extension (probably .PSBT?) and a mime-type to match, are helpful since wallets and such will want to register with their operating systems to become handlers of those mimetypes. Really that&#39;s a lot more important for interoperability at this point, than an encoding.&#xA;&gt; &#xA;&gt; Agreed. I will include those in the BIP.&#xA;&gt; &#xA;&gt; &gt; Looking forward to test vectors, and I might have more to say once my code can handle them (again).&#xA;&gt; &gt; &#xA;&gt; &gt; Feedback on the BIP as it stands now:&#xA;&gt; &gt; &#xA;&gt; &gt; -   Appendix A needs an update, and I suggest defining symbols (PK_PARTIAL_SIG == 0x02) for the numeric key values. This helps implementers as we don&#39;t all define our own symbols and/or use numeric constants in our code.&#xA;&gt; &#xA;&gt; Okay.&#xA;&gt; &#xA;&gt; &gt; -   Those tables are just not working. Might want to reformat as descriptive lists, point form, or generally anything else... sorry.&#xA;&gt; &#xA;&gt; I will try my best to fix that. Mediawiki sucks...&#xA;&gt; &#xA;&gt; Andrew&#xA;&gt; &#xA;&gt; bitcoin-dev mailing list&#xA;&gt; &#xA;&gt; bitcoin-dev at lists.linuxfoundation.org&#xA;&gt; &#xA;&gt; https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev</html></oembed>