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

crypto/noise: Verify crypto/noise signature payload #278

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

Conversation

lexnv
Copy link
Collaborator

@lexnv lexnv commented Oct 30, 2024

This PR verifies at the litep2p level the NoiseHandshakePayload crypto/noise's signature.

@lexnv lexnv added the enhancement New feature or request label Oct 30, 2024
@lexnv lexnv self-assigned this Oct 30, 2024
Comment on lines +688 to +690
if !remote_public_key.verify(
&[STATIC_KEY_DOMAIN.as_bytes(), keypair_public].concat(),
&remote_key_signature,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a little bit confused: if remote_public_key is a network public key of a remote peer, then what is keypair_public and why we don't check them to be equal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants