Closed pauldelucia closed 2 weeks ago
The changes introduced in this pull request enhance the functionality of the identity management system by adding new methods, structs, and modules related to registering a DPNS name. Key modifications include the addition of the document_signing_key
method in the QualifiedIdentity
struct, the creation of a new module for registering DPNS names, and the introduction of user interface components for this registration process. Additionally, several existing methods were updated for improved handling and simplification, while unused imports were removed across various files.
File Path | Change Summary |
---|---|
src/model/qualified_identity.rs |
- Added method: pub fn document_signing_key(...) - Modified method: can_sign_with_master_key to check for IdentityType::User |
src/platform/identity/load_identity.rs |
- Updated variable signature: keys_input: _ in IdentityInputToLoad - Removed unused imports |
src/platform/identity/mod.rs |
- Added module: mod register_dpns_name; - Added struct: pub struct RegisterDpnsNameInput - Added enum variant: RegisterDpnsName in IdentityTask |
src/platform/identity/register_dpns_name.rs |
- Added method: async fn register_dpns_name(...) in AppContext |
src/ui/dpns_contested_names_screen.rs |
- Updated method: fn ui(...) to include new button for "Register Name"- Added import: use super::ScreenType; |
src/ui/identities/add_existing_identity_screen.rs |
- Updated method signature: fn load_identity_clicked(...) |
src/ui/identities/identities_screen.rs |
- Modified method: show_public_key for Purpose::TRANSFER variant |
src/ui/identities/mod.rs |
- Added module: pub mod register_dpns_name_screen; |
src/ui/identities/register_dpns_name_screen.rs |
- Added enum: pub enum RegisterDpnsNameStatus - Added struct: pub struct RegisterDpnsNameScreen - Added methods for UI and registration process |
src/ui/mod.rs |
- Added enum variant: RegisterDpnsName in ScreenType - Updated method signatures for screen handling |
In the meadow where we play,
New names for DPNS today! 🐇
With keys and screens, we leap and bound,
A joyful hop, our changes found.
Registering names, oh what a sight,
In our code, everything feels just right! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Add a button in contested resources screen to register a dpns username. It opens a new screen and allows the user to select from the qualified identities which identity to register for and then type in the desired name and broadcast.
Summary by CodeRabbit
Release Notes
New Features
User Interface Enhancements
Bug Fixes
These updates aim to enhance user interaction and streamline the registration process within the application.