-
Notifications
You must be signed in to change notification settings - Fork 263
LP: mixnet reg fixes #6356
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
base: develop
Are you sure you want to change the base?
LP: mixnet reg fixes #6356
Conversation
3325491 to
c862061
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
simonwicky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non of these comments are blocking on that PR per se, but are points that I think should be addressed before the release
| pub use nym_registration_common::{ | ||
| LpGatewayData, LpRegistrationRequest, LpRegistrationResponse, RegistrationMode, | ||
| LpDvpnRegistrationRequest, LpMixnetGatewayData, LpMixnetRegistrationRequest, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the re-export in the first place? It's used in a place where registration-common is already imported anyway
| inc!("lp_registration_dvpn_attempts"); | ||
|
|
||
| // Check for idempotent re-registration (same WG key already registered) | ||
| // This allows clients to retry registration after network failures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't, at this point, LPDvpnRegistrationRequest already contains a credential.
A malicious could say "Oh you're already registered", keep the credential to create a double spending when the client tries to use the same credential somewhere else
c862061 to
503904e
Compare
503904e to
1b8fc4e
Compare
1b8fc4e to
4edb60d
Compare
this PR does the following:
LpInputvariant to ignore the encodingThis change is