You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tell us about your background and how it can be leveraged: *
I am a software engineer with over 8 years of experience, passionate about open-source software and Web3 development. As a member of the Dojo coding community, I am eager to begin contributing to this project.
How would you approach the problem?
To implement the feature of importing keys into a default keystore without explicitly specifying [PATH], I would:
Analyze Current Implementation: Understand how the cast wallet new command handles the [PATH] argument.
Add Default Behavior:
Introduce a flag like --use-default to import keys into the default keystore when no [PATH] is given.
If [PATH] is provided, keep the current behavior.
Determine Default Location: Define a secure location for the default keystore (e.g., ~/.cast/keystore/). Ensure it's created if missing.
Validation and Error Handling: Handle cases like missing permissions or failed writes, with clear error messages.
Update Documentation: Modify help text and add examples for using the new default option.
Testing: Write tests to verify:
Correct behavior with and without [PATH].
Proper handling of default import, permissions, and edge cases.
Component
Cast
Describe the feature you would like
Currently the keystore must be explicitly declared if one wants to import new wallet key :
Proposal:
Add flag to import into default keystore when no PATH is given.
Additional context
No response
The text was updated successfully, but these errors were encountered: