ZmnSCPxj [ARCHIVE] on Nostr: 📅 Original date posted:2019-04-01 📝 Original message: Good morning Rene, > > ...
📅 Original date posted:2019-04-01
📝 Original message:
Good morning Rene,
>
> Maybe I oversee something - in that case sorry for spamming the list - but I don't understand how you could know the distance from yourself if you don't know the entire topology? (unless u use it on the pruned view as you suggested)
That is correct, and the reason that it would still lose determinism (and thus be hard to test anyway), as I lamented.
At least for a pruning heuristic like you proposed (i.e. probabilistically prune channels) it is possible to make deterministic with a fixed RNG seed.
For instance a node might concatenate its own public key with the short-channel-id (in some fixed byte order) of the channel, hash the concatenation, then use the hash as the seed of an RNG that gives 1 bit, and prune the channel if the bit is cleared (to remove half the channels in the routemap).
>
> On the other hand querying for a certain depth would be possible with the suggested `query ask egonetwork` in case for depth 3 one would have to peer with the nodes from the friend of a friend network.
But for this, you would require that every node also keep every channel with depth less than your maximum query amount.
Perhaps for friend-of-friend, it might be sufficient to just query a peer to give its own direct public channels, which it needs to remember anyway.
But that is basically only a depth of 2 (if we count depth of 1 as your direct channels).
Regards,
ZmnSCPxj
Published at
2023-06-09 12:54:42Event JSON
{
"id": "2a9cc1746409b8edc69f5ade412cd7a79848dad162f1b912eb24d6a1a606d658",
"pubkey": "4505072744a9d3e490af9262bfe38e6ee5338a77177b565b6b37730b63a7b861",
"created_at": 1686315282,
"kind": 1,
"tags": [
[
"e",
"8e4c35cd4e4d6b988c371e901727ca2c2b53df6f6e16dbaf0daabadc6349028e",
"",
"root"
],
[
"e",
"62554735f5214fd604c3ebbbc5d6f1c68c43025d92f1193fc8e4e4891ae102e5",
"",
"reply"
],
[
"p",
"4505072744a9d3e490af9262bfe38e6ee5338a77177b565b6b37730b63a7b861"
]
],
"content": "📅 Original date posted:2019-04-01\n📝 Original message:\nGood morning Rene,\n\n\u003e\n\u003e Maybe I oversee something - in that case sorry for spamming the list - but I don't understand how you could know the distance from yourself if you don't know the entire topology? (unless u use it on the pruned view as you suggested) \n\nThat is correct, and the reason that it would still lose determinism (and thus be hard to test anyway), as I lamented.\nAt least for a pruning heuristic like you proposed (i.e. probabilistically prune channels) it is possible to make deterministic with a fixed RNG seed.\n\nFor instance a node might concatenate its own public key with the short-channel-id (in some fixed byte order) of the channel, hash the concatenation, then use the hash as the seed of an RNG that gives 1 bit, and prune the channel if the bit is cleared (to remove half the channels in the routemap).\n\n\u003e\n\u003e On the other hand querying for a certain depth would be possible with the suggested `query ask egonetwork` in case for depth 3 one would have to peer with the nodes from the friend of a friend network. \n\nBut for this, you would require that every node also keep every channel with depth less than your maximum query amount.\n\nPerhaps for friend-of-friend, it might be sufficient to just query a peer to give its own direct public channels, which it needs to remember anyway.\nBut that is basically only a depth of 2 (if we count depth of 1 as your direct channels).\n\nRegards,\nZmnSCPxj",
"sig": "70bbdaf4b3a413c3ccf250bbd29d141390ccb842a757560fcae28d97bf119eb038f97f13b04517812cd93adaf47287df47b128b973a4c49a1533571d2d675bfe"
}