Skip to content

Add shared derivation material support for thread-safe key generation, use with NM clients #5854

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

durch
Copy link
Contributor

@durch durch commented Jun 12, 2025

  • Add serialization support to DerivationMaterial for persistence/sharing
  • Implement shared derivation material in BaseClientBuilder with Arc<Mutex<>> for thread safety
  • Add network monitor support for deterministic key generation from file
  • Extend MixnetClientBuilder with shared derivation material functionality
  • Add comprehensive documentation explaining thread-safe sharing and key generation priority

This enables multiple clients to derive keys from the same source material while maintaining thread safety, particularly useful for network monitoring where consistent client identities are needed across multiple instances.


This change is Reviewable

- Add serialization support to DerivationMaterial for persistence/sharing
- Implement shared derivation material in BaseClientBuilder with Arc<Mutex<>> for thread safety
- Add network monitor support for deterministic key generation from file
- Extend MixnetClientBuilder with shared derivation material functionality
- Add comprehensive documentation explaining thread-safe sharing and key generation priority

This enables multiple clients to derive keys from the same source material while maintaining
thread safety, particularly useful for network monitoring where consistent client identities
are needed across multiple instances.
@durch durch requested a review from jstuczyn as a code owner June 12, 2025 15:25
@durch durch removed the request for review from jstuczyn June 12, 2025 15:25
@durch durch added this to the Emmental milestone Jun 12, 2025
@durch durch requested review from jstuczyn and simonwicky June 12, 2025 15:26
@durch durch changed the title Add shared derivation material support for thread-safe key generation Add shared derivation material support for thread-safe key generation, use with NM clients Jun 12, 2025
Copy link

vercel bot commented Jun 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nym-explorer-v2 🛑 Canceled (Inspect) Jun 12, 2025 3:39pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-nextra ⬜️ Ignored (Inspect) Visit Preview Jun 12, 2025 3:39pm
nym-next-explorer ⬜️ Ignored (Inspect) Visit Preview Jun 12, 2025 3:39pm

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