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

sds: Create participant state data structures #2228

Open
adklempner opened this issue Jan 27, 2025 · 0 comments
Open

sds: Create participant state data structures #2228

adklempner opened this issue Jan 27, 2025 · 0 comments

Comments

@adklempner
Copy link
Member

  1. Generate a Message interface from protobuf definition per the specification: https://github.com/vacp2p/rfc-index/blob/main/vac/raw/sds.md#message

  2. Create ParticipantState class/interface to track:

    • Local Lamport timestamps per channel (Map<string, number>)
    • Bloom filters per channel (Map<string, BloomFilter>)
    • Outgoing message buffer per channel (Map<string, OutgoingMessage[]>)
    • Incoming message buffer per channel (Map<string, IncomingMessage[]>)
    • Local message ID logs per channel (Map<string, string[]>)
  3. Add helper methods for state management:

    • Initialize state for new channels
    • Clean up state for removed channels
    • Access and update state efficiently
    • Maintain sorted order for message logs
@chair28980 chair28980 added this to Waku Jan 27, 2025
@weboko weboko moved this to To Do in Waku Jan 30, 2025
@adklempner adklempner moved this from To Do to In Progress in Waku Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

1 participant