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

Emitting packets from mixclient using libp2p stream #588

Merged
merged 19 commits into from
Mar 8, 2024

Conversation

youngjoon-lee
Copy link
Contributor

  • Assuming that MixClient module returns packets periodically (according to the Poisson distribution), this PR implements sending those packets to mixnodes using libp2p stream.
    • This PR doesn't cover the internal of MixClient yet.

NOTE: Tests will fail because I split the whole implementation into small PRs. All tests will pass at the last PR that I'll open.

mixnet/src/client.rs Show resolved Hide resolved
mixnet/src/packet.rs Outdated Show resolved Hide resolved
nomos-services/network/src/backends/libp2p/mod.rs Outdated Show resolved Hide resolved
nomos-services/network/src/backends/libp2p/mod.rs Outdated Show resolved Hide resolved
Base automatically changed from mixnet-v1-stream to mixnet-v1 March 7, 2024 11:45
@youngjoon-lee youngjoon-lee merged commit 07d2a47 into mixnet-v1 Mar 8, 2024
7 checks passed
@youngjoon-lee youngjoon-lee deleted the mixnet-v1-client-output branch March 8, 2024 11:35
youngjoon-lee added a commit that referenced this pull request Mar 12, 2024
* base

* Remove mixnet client from libp2p network backend (#572)

* Mixnet v1: Remove all mixnet legacies: mixnet crate, mixnode binary, tests, and docker (#573)

* Mixnet v1: Skeleton (#570)

* Use QUIC for libp2p (#580)

* Add Poisson interval function for Mixnet (#575)

* Mixnet network backend skeleton (#586)

* Libp2p stream read/write (#587)

* Emitting packets from mixclient using libp2p stream (#588)

* Handle outputs from mixnode using libp2p stream/gossipsub (#589)

* Refactor poisson (#590)

* Mix client Poisson emission (#591)

* Mix node packet handling (#592)

* Mix Packet / Fragment logic (#593)

* Move FisherYates to `nomos-utils` (#594)

* Mixnet topology (#595)

* Mix client/node unit tests (#596)

* change multiaddr from tcp to udp with quic-v1 (#607)

---------

Co-authored-by: Al Liu <scygliu1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants