Skip to content

feat: shard_key method implementation #41

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 14 commits into
base: main
Choose a base branch
from

Conversation

AnonO6
Copy link

@AnonO6 AnonO6 commented Jul 6, 2025

Description

The shard_key method has been implemented to handle key sharding. This method now takes over the key sharding logic that was previously in generate.py.

New Features and Changes

  • The key sharding logic has been moved from generate.py to a new module, shard_key.py.
  • The generate method now calls the shard_key method for key sharding functionality.
    -The shard_key method can generate key shards for a valid 64-character hexadecimal string.

Test Cases Include

-Valid 32-byte keys.
-Invalid keys (e.g., length shorter than 32 bytes or malformed keys).
-Various threshold and keyCount combinations.

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.

2 participants