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-pnet here #1465

Merged
merged 43 commits into from
May 3, 2022
Merged

move go-libp2p-pnet here #1465

merged 43 commits into from
May 3, 2022

Conversation

marten-seemann
Copy link
Contributor

Part of #1187.

Kubuxu and others added 30 commits October 26, 2016 12:14
Add more docs, switch errors to ipnet.NewError
io.ReadFull is garantueed to read the complete length of the buffer (or
to return an error if that fails). This way, reading the nonce also
succeeds when multiple Read calls are necessary.
read nonces, even if they are fragmented
use the global one
* pull through libp2p-transport update
* update moved go-libp2p-dummy-conn
Read can read data *and* return an error.
annotate the "malformed key" error from pnet protector
We now "protect" below the transport layer.

Also, make the tests work without the dummy conn package (one fewer deps).
wrap net conns, not transport conns
We can xor in-place (this is what secio does).
It has a nicer interface and we don't even need the rest of the msgio stuff.
It's unmaintained and pulls in github.com/whyrusleeping/cbor. This patch
explicitly re-implements the minimally needed features.

Also fixes #12.
@marten-seemann marten-seemann mentioned this pull request Apr 27, 2022
65 tasks
@BigLep BigLep linked an issue Apr 27, 2022 that may be closed by this pull request
@marten-seemann marten-seemann merged commit dea8537 into master May 3, 2022
@marten-seemann marten-seemann deleted the merge-pnet branch November 8, 2022 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Repo Consolidation: Transports
5 participants