-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The network key should periodically change #44
Comments
Right now, it is intended that the network key gets regenerated every time the light client is loaded. This doesn't work due to the issue found by paritytech/smoldot#3095 However, this is IMO not enough. Smoldot could in principle run for days or weeks, in which case the network key should indeed get periodically regenerated. |
The modifications needed for this issue probably overlap with #111 |
I can see three ways of implementing the rotation:
As a reminder, the objective is to avoid giving the possibility for full nodes to maintain a map of Solution 3 seems strictly superior in all ways to solution 1, assuming that the key rotation period is small enough to not give the time for the user to travel somewhere and maintain the same key. We could also do solution 3, but rotate the key both periodically and when we hit 0 peers. One thing that could unfortunately happen is: the user is on a fixed location IP that is geotracable, then switches to mobile IP while keeping the same PeerId, then switches again to another fixed location IP that is geotracable while keeping the same PeerId. Even if the PeerId rotates, as long as it doesn't rotate precisely when the IP address changes, the full node can trace the movement between the two fixed location IPs. However I think that we can simply ignore this corner case, and do this on a best effort rather than reliably. |
One tricky issue I didn't think of is how to handle the Kademlia protocol. This is to be brain stormed. |
I think that it's actually a non-issue. |
After #1255 this is done for the light client. |
paritytech/smoldot#3077
The text was updated successfully, but these errors were encountered: