Andrew Chow [ARCHIVE] on Nostr: 📅 Original date posted:2018-06-23 📝 Original message:On 06/23/2018 10:00 AM, ...
📅 Original date posted:2018-06-23
📝 Original message:On 06/23/2018 10:00 AM, William Casarin wrote:
> Since we're still considering the encoding, I wonder if it would be a
> good idea to have a human-readible part like lightning invoices[1]?
I don't think that is necessary.
> Then perhaps you could drop the magic code as well?
The magic is still necessary for the binary format in order to prevent
normal transaction deserializers from accidentally deserializing a psbt.
> Also we could do a base encoding that excludes + and / characters, such
> as base62 (gmp-style). It's easier to copy/paste (double clicking a
> string stops at / or + in base64 encodings).
While that would be ideal, I think it is better to use an encoding that
most wallets already support. Most wallets already have Base64 decoding
available so that they can decode signed messages which also use Base64
encoding. I think it is unnecessary to introduce another encoding.
On 06/23/2018 11:27 AM, Peter D. Gray wrote:
> Personally, I don't think you should spec an encoding. It should be binary only and hex for developers and JSON interfaces. My thinking is that PSBT's are not user-visible things. They have a short lifetime and are nothing something that is "stored" or referenced much later. Hex is good enough and has no downsides as an excoding except for density.
I think what will end up happening though is that, at least in the
beginning, PSBTs will primarily be strings that people end up copy and
pasting. Since a PSBT can get pretty large, the strings are rather
cumbersome to move around, especially as hex. At least with Base64 the
strings will be smaller.
> 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's a lot more important for interoperability at this point, than an encoding.
Agreed. I will include those in the BIP.
> Looking forward to test vectors, and I might have more to say once my code can handle them (again).
>
> Feedback on the BIP as it stands now:
>
> - 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't all define our own symbols and/or use numeric constants in our code.
Okay.
> - Those tables are just not working. Might want to reformat as descriptive lists, point form, or generally anything else... sorry.
I will try my best to fix that. Mediawiki sucks...
Andrew
Published at
2023-06-07 18:13:10Event JSON
{
"id": "7c2993fe657ceb3fd2f190559d4a086fa69211440086e34def7fc9dd3f760140",
"pubkey": "4a273da3c9ab85c096f859e6ca066d2fdfe762406cadc2f4d58aa75468aca8d0",
"created_at": 1686161590,
"kind": 1,
"tags": [
[
"e",
"cde3c2f1af5ec4e3200e32c7fdbcba54b58741a9d65d38dd383e78325ee0ffcd",
"",
"root"
],
[
"e",
"7884f4e652946bfdea4080b011545ef34562a6ea585768600696fc9c6544f222",
"",
"reply"
],
[
"p",
"6fb2fd1f8df298fef3464d220666d5ae7184dfe89dc5cc7d3a177579986c31cb"
]
],
"content": "📅 Original date posted:2018-06-23\n📝 Original message:On 06/23/2018 10:00 AM, William Casarin wrote:\n\u003e Since we're still considering the encoding, I wonder if it would be a\n\u003e good idea to have a human-readible part like lightning invoices[1]?\nI don't think that is necessary.\n\u003e Then perhaps you could drop the magic code as well?\nThe magic is still necessary for the binary format in order to prevent\nnormal transaction deserializers from accidentally deserializing a psbt.\n\u003e Also we could do a base encoding that excludes + and / characters, such\n\u003e as base62 (gmp-style). It's easier to copy/paste (double clicking a\n\u003e string stops at / or + in base64 encodings).\nWhile that would be ideal, I think it is better to use an encoding that\nmost wallets already support. Most wallets already have Base64 decoding\navailable so that they can decode signed messages which also use Base64\nencoding. I think it is unnecessary to introduce another encoding.\n\n\nOn 06/23/2018 11:27 AM, Peter D. Gray wrote:\n\u003e Personally, I don't think you should spec an encoding. It should be binary only and hex for developers and JSON interfaces. My thinking is that PSBT's are not user-visible things. They have a short lifetime and are nothing something that is \"stored\" or referenced much later. Hex is good enough and has no downsides as an excoding except for density.\nI think what will end up happening though is that, at least in the\nbeginning, PSBTs will primarily be strings that people end up copy and\npasting. Since a PSBT can get pretty large, the strings are rather\ncumbersome to move around, especially as hex. At least with Base64 the\nstrings will be smaller.\n\u003e 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's a lot more important for interoperability at this point, than an encoding.\nAgreed. I will include those in the BIP.\n\u003e Looking forward to test vectors, and I might have more to say once my code can handle them (again).\n\u003e\n\u003e Feedback on the BIP as it stands now: \n\u003e\n\u003e - 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't all define our own symbols and/or use numeric constants in our code.\nOkay.\n\u003e - Those tables are just not working. Might want to reformat as descriptive lists, point form, or generally anything else... sorry.\nI will try my best to fix that. Mediawiki sucks...\n\nAndrew",
"sig": "56a886130ef8083fadd8038b00182f1b21894355cbf34fdcfc41f957f4cf02455ae293b7dd060bf01473d7dd821fe298e4f6a43d34b8f8f47c0dd5aedf917d0f"
}