-
Notifications
You must be signed in to change notification settings - Fork 1
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
Radmap#3 #7
Radmap#3 #7
Conversation
Implements CommonKeypair, create_repo and get_repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, good job! Just one thing for cleaning up the group struct a little
…nagement - Removed redundant `record_key` and `id` fields, utilizing `group.id()` to reference DHT record keys directly. - Simplified the process of storing keypairs and adding groups to the internal state by using `group.id()` for both. - Adjusted group initialization to remove unnecessary secret key handling, relying on DHTRecordDescriptor for this data.
- Removed redundant `id`, `record_key`, and `secret_key` fields from the Group struct. - Implemented `id()`, `owner_key()`, and `owner_secret()` getters to extract the necessary information directly from `dht_record`. - Simplified the `get_secret_key()` method to use `owner_secret()` instead of storing a separate secret key. - Streamlined the Group initialization process by removing unnecessary parameters related to key management.
…tor changes - Refactored test cases to reference Group by `TypedKey` instead of `record_key` and removed unused variables. - Replaced direct use of `group.get_id()` with `group.id()` getter. - Updated `TypedKey::new` calls to include `CRYPTO_KIND_VLD0` for correct key initialization. - Adjusted assertions to compare `group.id()` with retrieved keypair fields, ensuring proper key handling after refactor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the tests passing still?
Tests are passing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! 🥳
Refactoring:
common.rs
lib.rs
.Implemented features:
common.rs
file.Enhancements:
encryption_key
.encryption_key
usesrandom_shared_secret
.