Mike Hearn [ARCHIVE] on Nostr: 📅 Original date posted:2015-01-19 📝 Original message:> > I'm a bit confused. ...
📅 Original date posted:2015-01-19
📝 Original message:>
> I'm a bit confused. It's been a long time since I looked at protobuf (and
> will have to dig into it soon), but I seem to recall it doesn't have any of
> the determinism properties you guys just said.
>
It's not guaranteed no, which is why we store signed sub-messages as byte
arrays instead of typed submessages. In practice though, most
implementations do seem to serialise things the same way. I recall Python
used to be an odd one out, unsure if it still is.
OK, I guess we can boil this down more simply. BIP 70 uses protocol buffers
because I designed it and implemented the original prototype (with lots of
input from Gavin and an earlier proposal by sipa). I used protocol buffers
because, beyond all their nice properties, I used to work at Google and so
was very familiar with them.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20150119/bbd8b7d4/attachment.html>
Published at
2023-06-07 15:28:37Event JSON
{
"id": "aecc30144824dcc62ac77bb5ee8396ae4bab88aabbe10cfe6d504d69bea12bf5",
"pubkey": "f2c95df3766562e3b96b79a0254881c59e8639f23987846961cf55412a77f6f2",
"created_at": 1686151717,
"kind": 1,
"tags": [
[
"e",
"e1f7de9a3cc96853dcc43455df7f54523449e553ee4cde336d6870fe0e40792d",
"",
"root"
],
[
"e",
"e424079b56c12ca624335497396978cadd3fd1ad2f6bfe768650268fc0e3514f",
"",
"reply"
],
[
"p",
"daa2fc676a25e3b5b45644540bcbd1e1168b111427cd0e3cf19c56194fb231aa"
]
],
"content": "📅 Original date posted:2015-01-19\n📝 Original message:\u003e\n\u003e I'm a bit confused. It's been a long time since I looked at protobuf (and\n\u003e will have to dig into it soon), but I seem to recall it doesn't have any of\n\u003e the determinism properties you guys just said.\n\u003e\n\nIt's not guaranteed no, which is why we store signed sub-messages as byte\narrays instead of typed submessages. In practice though, most\nimplementations do seem to serialise things the same way. I recall Python\nused to be an odd one out, unsure if it still is.\n\nOK, I guess we can boil this down more simply. BIP 70 uses protocol buffers\nbecause I designed it and implemented the original prototype (with lots of\ninput from Gavin and an earlier proposal by sipa). I used protocol buffers\nbecause, beyond all their nice properties, I used to work at Google and so\nwas very familiar with them.\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20150119/bbd8b7d4/attachment.html\u003e",
"sig": "ef3003ad7c078ec435800ef9e16f9f4683957017c5bb88360592529f05c720c94180cbff5a9a4b539462399433d984835de2c12fec57cc6bc1b807f905836476"
}