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

move go-libp2p-noise here #1462

Merged
merged 149 commits into from
Apr 27, 2022
Merged

move go-libp2p-noise here #1462

merged 149 commits into from
Apr 27, 2022

Conversation

marten-seemann
Copy link
Contributor

Part of #1187.

aarshkshah1992 and others added 22 commits May 7, 2020 11:20
Further Optimizations and refactor benchmarking code.
Previously, each noise message read would make two syscalls:
1. one to read the length prefix.
2. one to read the encrypted payload.

This patch adds bufio.Reader mediation to cushion syscalls, and
significantly enhaces throughput in read-dominated connections, such
as file transfers.
chore: relicense MIT/Apache-2.0
And rebuild protobuf definitions.
Update github.com/flynn/noise to address nonce handling security issues
fix: remove deprecated call to pk.Bytes
update go-libp2p-core, remove integration test
@marten-seemann marten-seemann mentioned this pull request Apr 26, 2022
65 tasks
@Stebalien
Copy link
Member

Probably need to tell something to ignore the warnings.

@marten-seemann
Copy link
Contributor Author

Probably need to tell something to ignore the warnings.

  1. These warning occur because go-libp2p includes a more recent version than go-libp2p-noise.
  2. The only thing we're using from golang.org/x/crypto/poly1305 is the TagSize constant. As far as I can tell, this should be equivalent to the golang.org/x/crypto/chacha20poly1305 constant named Overhead.

I'll just switch over to the other package.

@marten-seemann marten-seemann merged commit 8de2efd into master Apr 27, 2022
@marten-seemann marten-seemann deleted the merge-noise branch November 8, 2022 13:57
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.

9 participants