<oembed><type>rich</type><version>1.0</version><title>Andrew Chow [ARCHIVE] wrote</title><author_name>Andrew Chow [ARCHIVE] (npub1fg…xak44)</author_name><author_url>https://yabu.me/npub1fgnnmg7f4wzup9hct8nv5pnd9l07wcjqdjku9ax432n4g69v4rgq7xak44</author_url><provider_name>njump</provider_name><provider_url>https://yabu.me</provider_url><html>📅 Original date posted:2018-06-23&#xA;📝 Original message:On 06/23/2018 10:00 AM, William Casarin wrote:&#xA;&gt; Since we&#39;re still considering the encoding, I wonder if it would be a&#xA;&gt; good idea to have a human-readible part like lightning invoices[1]?&#xA;I don&#39;t think that is necessary.&#xA;&gt; Then perhaps you could drop the magic code as well?&#xA;The magic is still necessary for the binary format in order to prevent&#xA;normal transaction deserializers from accidentally deserializing a psbt.&#xA;&gt; Also we could do a base encoding that excludes + and / characters, such&#xA;&gt; as base62 (gmp-style). It&#39;s easier to copy/paste (double clicking a&#xA;&gt; string stops at / or + in base64 encodings).&#xA;While that would be ideal, I think it is better to use an encoding that&#xA;most wallets already support. Most wallets already have Base64 decoding&#xA;available so that they can decode signed messages which also use Base64&#xA;encoding. I think it is unnecessary to introduce another encoding.&#xA;&#xA;&#xA;On 06/23/2018 11:27 AM, Peter D. Gray wrote:&#xA;&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;I think what will end up happening though is that, at least in the&#xA;beginning, PSBTs will primarily be strings that people end up copy and&#xA;pasting. Since a PSBT can get pretty large, the strings are rather&#xA;cumbersome to move around, especially as hex. At least with Base64 the&#xA;strings will be smaller.&#xA;&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;Agreed. I will include those in the BIP.&#xA;&gt; Looking forward to test vectors, and I might have more to say once my code can handle them (again).&#xA;&gt;&#xA;&gt; Feedback on the BIP as it stands now: &#xA;&gt;&#xA;&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;Okay.&#xA;&gt; - Those tables are just not working. Might want to reformat as descriptive lists, point form, or generally anything else... sorry.&#xA;I will try my best to fix that. Mediawiki sucks...&#xA;&#xA;Andrew</html></oembed>