William Casarin [ARCHIVE] on Nostr: 📅 Original date posted:2018-06-26 📝 Original message:matejcik via bitcoin-dev ...
📅 Original date posted:2018-06-26
📝 Original message:matejcik via bitcoin-dev <bitcoin-dev at lists.linuxfoundation.org> writes:
> BIP174 is a ad-hoc format, simple to parse by hand; but that results
> in _having to_ parse it by hand. In contrast, protobuf has a huge
> collection of implementations that will do the job of sorting record
> types into relevant struct fields, proper delimiting of records, etc.
seems a bit overkill for how simple the format is, and pulling in a
large dependency just for this is a bit silly. Although making it
protobuf-compatible is an interesting idea, but I fear would be more
work than is worth? I haven't looked closed enough at the protobuf
encoding to be sure.
> ...while at the same time, implementing "protobuf-based-BIP174" by
> hand is roughly equally difficult as implementing the current BIP174.
as a data point, I was able to build a simple serializer[1] in about an
afternoon. I would much prefer to use this lib in say, clightning (my
original goal), without having to have the larger protobuf dependency.
Cheers,
[1]
https://github.com/jb55/libpsbt--
https://jb55.comPublished at
2023-06-07 18:13:12Event JSON
{
"id": "4dd215ccd19ab147413e47cd94362f827b36d3bde05354ef007c102a4aa8ac49",
"pubkey": "6fb2fd1f8df298fef3464d220666d5ae7184dfe89dc5cc7d3a177579986c31cb",
"created_at": 1686161592,
"kind": 1,
"tags": [
[
"e",
"cde3c2f1af5ec4e3200e32c7fdbcba54b58741a9d65d38dd383e78325ee0ffcd",
"",
"root"
],
[
"e",
"85fa468e0f4aecb57f50f78a889ee5b5bac64e46c749d4121c15e2e212cc3980",
"",
"reply"
],
[
"p",
"3a1f55a6a0e37109f7404e07ba52112f4c689363e4c7aa20d99d4785ede262ab"
]
],
"content": "📅 Original date posted:2018-06-26\n📝 Original message:matejcik via bitcoin-dev \u003cbitcoin-dev at lists.linuxfoundation.org\u003e writes:\n\n\u003e BIP174 is a ad-hoc format, simple to parse by hand; but that results\n\u003e in _having to_ parse it by hand. In contrast, protobuf has a huge\n\u003e collection of implementations that will do the job of sorting record\n\u003e types into relevant struct fields, proper delimiting of records, etc.\n\nseems a bit overkill for how simple the format is, and pulling in a\nlarge dependency just for this is a bit silly. Although making it\nprotobuf-compatible is an interesting idea, but I fear would be more\nwork than is worth? I haven't looked closed enough at the protobuf\nencoding to be sure.\n\n\u003e ...while at the same time, implementing \"protobuf-based-BIP174\" by\n\u003e hand is roughly equally difficult as implementing the current BIP174.\n\nas a data point, I was able to build a simple serializer[1] in about an\nafternoon. I would much prefer to use this lib in say, clightning (my\noriginal goal), without having to have the larger protobuf dependency.\n\nCheers,\n\n[1] https://github.com/jb55/libpsbt\n\n\n--\nhttps://jb55.com",
"sig": "3c18dad90c2e9d7807b710bb4ca7dc68d5862398383529e364621e0a96f8f8da28c8e82097c9e6e76090d9ba1c5228842a75efd96873aa23fb4b63524e0fa62a"
}