Skip to content
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

p2p/discover/v5wire: use Whoareyou.ChallengeData instead of storing encoded packet #31547

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

fjl
Copy link
Contributor

@fjl fjl commented Apr 2, 2025

This changes the challenge resend logic again to use the existing ChallengeData field of v5wire.Whoareyou instead of storing a second copy of the packet in Whoareyou.Encoded. It's more correct this way since ChallengeData is supposed to be the data that is used by the ID verification procedure.

Also adapts the cross-client test to verify this behavior.

Follow-up to #31543

fjl added 2 commits April 2, 2025 17:04
…packet

This changes the challenge resend logic again to use the existing ChallengeData field of
v5wire.Whoareyou instead of storing a second copy of the packet in Whoareyou.Encoded. It's
more correct this way since ChallengeData is supposed to be the data that is used by the
ID verification procedure.
@fjl fjl added the shisui Portal Network label Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
shisui Portal Network
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant