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

SPIKE Nexus Shard Creation and Distribution Needs Unit Tests #83

Open
v0lkan opened this issue Jan 17, 2025 · 0 comments
Open

SPIKE Nexus Shard Creation and Distribution Needs Unit Tests #83

v0lkan opened this issue Jan 17, 2025 · 0 comments
Labels
good first issue Good for newcomers

Comments

@v0lkan
Copy link
Contributor

v0lkan commented Jan 17, 2025

During its bootstrapping flow SPIKE Nexus does the following:

  1. Create a root key
  2. Split the root key to shards to send to SPIKE Keepers
  3. Find which shard to send to which keeper instance
  4. distribute shards
  5. periodically re-send the shards to keep SPIKE keepers hydrated.

SPIKE Nexus allocates the right shard to the right keeper by sorting the ids of the keeper
but this feature does not have accompanying unit tests.

We need unit tests to ensure that

  1. SPIKE Keeper creates the same shards if we provide the same root key.
  2. The shards are in the same order during each creation.
  3. Each keeper receives the correct shard.
@v0lkan v0lkan added the good first issue Good for newcomers label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant