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

feat: add signature verification #36

Merged
merged 2 commits into from
Jul 25, 2019

Conversation

jacobheun
Copy link
Collaborator

@jacobheun jacobheun commented Jul 9, 2019

BREAKING CHANGE: Older pubsub peers that do not sign messages will have their messages dropped and not forwarded. Gossipsub peers are unaffected, as message signing has been enabled since the initial release.

This adds signature verification that was introduced in the latest pubsub version libp2p/js-libp2p-pubsub#20.

@jacobheun jacobheun force-pushed the feat/verify-signatures branch from 4347942 to bc9facc Compare July 10, 2019 22:35
@codecov-io
Copy link

codecov-io commented Jul 10, 2019

Codecov Report

Merging #36 into master will increase coverage by 0.78%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #36      +/-   ##
==========================================
+ Coverage   84.86%   85.65%   +0.78%     
==========================================
  Files           8        8              
  Lines         489      495       +6     
==========================================
+ Hits          415      424       +9     
+ Misses         74       71       -3
Impacted Files Coverage Δ
src/pubsub.js 93.86% <100%> (+0.87%) ⬆️
src/index.js 81.6% <0%> (+0.94%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 609a3b1...41f9c68. Read the comment docs.

@jacobheun jacobheun force-pushed the feat/verify-signatures branch from bc9facc to f3badc8 Compare July 12, 2019 17:12
@jacobheun jacobheun force-pushed the feat/verify-signatures branch from 41f9c68 to d6bd0b9 Compare July 24, 2019 14:51
@jacobheun jacobheun marked this pull request as ready for review July 24, 2019 15:18
Copy link
Collaborator

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

LGTM!

@wemeetagain wemeetagain merged commit b99aad4 into ChainSafe:master Jul 25, 2019
@jacobheun jacobheun deleted the feat/verify-signatures branch July 25, 2019 08:04
fryorcraken pushed a commit to fryorcraken/js-libp2p-gossipsub that referenced this pull request Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants