Anthony Towns [ARCHIVE] on Nostr: 📅 Original date posted:2023-02-21 🗒️ Summary of this message: Discussion on ...
📅 Original date posted:2023-02-21
🗒️ Summary of this message: Discussion on simplifying the negotiation process for short id mapping tables in the Bitcoin protocol to improve implementation and efficiency.
📝 Original message:On Mon, Feb 20, 2023 at 03:22:30PM +0000, Pieter Wuille via bitcoin-dev wrote:
> On Sunday, February 19th, 2023 at 6:56 PM, Anthony Towns <aj at erisian.com.au> wrote:
> > On Fri, Feb 17, 2023 at 10:13:05PM +0000, Pieter Wuille via bitcoin-dev wrote:
> > > > I think it's probably less complex to close some of the doors?
> > > > 2) are short ids available/meaningful to send prior to VERACK being
> > > > completed?
> > > > Ah, I hadn't considered this nuance. If we don't care about them being available before VERACK negotiation, then it may be possible to introduce a way to negotiate a different short id mapping table without needing a mechanism for re-negotiating.
> > I think you still need/want two negotiation steps -- once to tell each
> > other what tables you know about, once to choose a mutually recognised
> > table and specify any additions.
> Right, I wasn't talking about how many steps/messages the negotiation takes. I just meant that if all negotiation of the mapping table happens just once (before VERACK) and that negotiation itself happens without use of short commands, then there is no need for re-negotiating short commands after they are already in use. Nothing concrete, but I can imagine that that may simplify some implementations.
Yeah; I was just thinking of the fact that currently the negotiation is:
* send your VERSION message
* see what their VERSION message is
* announce a bunch of features, depending on the version (or service
flags)
* send the VERACK (and GETADDR and final ALERT)
* wait for their announcements and VERACK
* negotiation is finished; we know everything; we're ready to go
which only gets you two steps if you send the short id stuff as part of
the VERSION message. Obviously you could just add an extra phase either
just before or just after the VERACK, though.
I suppose being able to choose your own short id mapping from day 0 would
mean that every bip324 node could use a single short id mapping for all
outgoing messages, which might also make implementation marginally easier
(no need to use one table for modern nodes, but also support the original
table for old bip324 implementations)...
Cheers,
aj
Published at
2023-06-07 23:19:52Event JSON
{
"id": "d3b081d222022b78d1fb9eaf99ffb1f1f2ce37fe335107e7ec27f8c679dd43bb",
"pubkey": "f0feda6ad58ea9f486e469f87b3b9996494363a26982b864667c5d8acb0542ab",
"created_at": 1686179992,
"kind": 1,
"tags": [
[
"e",
"429be874d3570713c540c47c8be4f6f1e3388c0ba98ab349c4ee16626a758167",
"",
"root"
],
[
"e",
"e1c6c53d3c694f35b5c492fc06825345cba1bd5d9d96b88402f0a5ed3da79061",
"",
"reply"
],
[
"p",
"5cb21bf5d7f25a9d46879713cbd32433bbc10e40ef813a3c28fe7355f49854d6"
]
],
"content": "📅 Original date posted:2023-02-21\n🗒️ Summary of this message: Discussion on simplifying the negotiation process for short id mapping tables in the Bitcoin protocol to improve implementation and efficiency.\n📝 Original message:On Mon, Feb 20, 2023 at 03:22:30PM +0000, Pieter Wuille via bitcoin-dev wrote:\n\u003e On Sunday, February 19th, 2023 at 6:56 PM, Anthony Towns \u003caj at erisian.com.au\u003e wrote:\n\u003e \u003e On Fri, Feb 17, 2023 at 10:13:05PM +0000, Pieter Wuille via bitcoin-dev wrote:\n\u003e \u003e \u003e \u003e I think it's probably less complex to close some of the doors?\n\u003e \u003e \u003e \u003e 2) are short ids available/meaningful to send prior to VERACK being\n\u003e \u003e \u003e \u003e completed?\n\u003e \u003e \u003e \u003e Ah, I hadn't considered this nuance. If we don't care about them being available before VERACK negotiation, then it may be possible to introduce a way to negotiate a different short id mapping table without needing a mechanism for re-negotiating.\n\u003e \u003e I think you still need/want two negotiation steps -- once to tell each\n\u003e \u003e other what tables you know about, once to choose a mutually recognised\n\u003e \u003e table and specify any additions.\n\u003e Right, I wasn't talking about how many steps/messages the negotiation takes. I just meant that if all negotiation of the mapping table happens just once (before VERACK) and that negotiation itself happens without use of short commands, then there is no need for re-negotiating short commands after they are already in use. Nothing concrete, but I can imagine that that may simplify some implementations.\n\nYeah; I was just thinking of the fact that currently the negotiation is:\n\n * send your VERSION message\n * see what their VERSION message is\n\n * announce a bunch of features, depending on the version (or service\n flags)\n * send the VERACK (and GETADDR and final ALERT)\n\n * wait for their announcements and VERACK\n * negotiation is finished; we know everything; we're ready to go\n\nwhich only gets you two steps if you send the short id stuff as part of\nthe VERSION message. Obviously you could just add an extra phase either\njust before or just after the VERACK, though.\n\nI suppose being able to choose your own short id mapping from day 0 would\nmean that every bip324 node could use a single short id mapping for all\noutgoing messages, which might also make implementation marginally easier\n(no need to use one table for modern nodes, but also support the original\ntable for old bip324 implementations)...\n\nCheers,\naj",
"sig": "b0597380a1c3b3e57715a56c635e7f4ce4424bbd228dc59ea7cd4c0bdaa1abfdc2a170c81cc8caf9c5b6d5f1fe2d46f5a2d186872aa3ed8e32a08a629631a081"
}