-
Notifications
You must be signed in to change notification settings - Fork 18
improve error handling in webRTC-related noise function #377
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
improve error handling in webRTC-related noise function #377
Conversation
I did not see anywhere else for any improvement. I think this is ready for review |
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.
Left some comments that need to be addresses, but overall looks good 👍
…handling-in-webrtc
…ebrtc' into dami/improve-error-handling-in-webrtc
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.
LGTM! Thanks for handling this! 🙏
Closes #43 This PR:
Multiaddr
. Ensures litep2p behaves predictably even with malformed or malicious peers during the handshake phase by introducingInvalidMultihash
in theAddressError
.reply
buffer size, by checking the length before splitting inget_remote_public_key
function.I am also looking at other functions to see if there should be any improvement, i will make this a draft PR untill i finish other improvements or if i find no other improvements needed.