Skip to content

chore: migrate to libp2p_mix package#3842

Open
chaitanyaprem wants to merge 1 commit into
mix-lioness-simfrom
migrate-to-libp2p_mix
Open

chore: migrate to libp2p_mix package#3842
chaitanyaprem wants to merge 1 commit into
mix-lioness-simfrom
migrate-to-libp2p_mix

Conversation

@chaitanyaprem
Copy link
Copy Markdown
Contributor

Summary

Mix has been extracted from nim-libp2p into its own package at
logos-co/nim-libp2p-mix.
Update all imports, add the new package as a vendored submodule + nimble
dep, and bump the mix-rln-spam-protection-plugin submodule to its
matching migration branch.

Changes

  • 9 source files: libp2p/protocols/mix*libp2p_mix* import path updates
  • waku.nimble: add "libp2p_mix" to requires
  • New submodule: vendor/nim-libp2p-mix tracking master
  • vendor/mix-rln-spam-protection-plugin submodule bumped to migrate-to-libp2p_mix branch

12 files, +24 / −18, plus the new submodule.

Test plan

  • make wakunode2 builds cleanly
  • make chat2mix builds cleanly
  • 5-node mixnet (simulations/mixnet/run_mix_node{,1..4}.sh) — all instances mount /mix/1.0.0 successfully
  • RLN spam-protection loads and registers (membership tree restored from disk)
  • chat2mix connects to bootstrap mix node, publishes via lightpush with mixify=true
  • Cover traffic runs at the configured 20-second interval, spec-conformant
  • Sphinx packets observed flowing through the network (cover packets received and discarded at exit nodes)

Companion PR

  • logos-co/mix-rln-spam-protection-plugin#migrate-to-libp2p_mix — referenced by the submodule bump in this PR

Mix has been extracted from nim-libp2p into its own package at
logos-co/nim-libp2p-mix. Update all imports of libp2p/protocols/mix*
to use libp2p_mix*, add the new package as a vendored submodule and
nimble dep, and bump the mix-rln-spam-protection-plugin submodule to
its corresponding migration branch.

Verified end-to-end with simulations/mixnet (5-node mixnet + chat2mix):
- All 5 wakunode2 instances mount /mix/1.0.0 successfully
- RLN spam-protection loads and registers
- chat2mix publishes via lightpush with mixify=true
- Cover traffic runs at the configured 20s interval
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.

1 participant