-
Notifications
You must be signed in to change notification settings - Fork 44
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
feat: Ability to generate a new identity #2760
feat: Ability to generate a new identity #2760
Conversation
6750130
to
b6def04
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2760 +/- ##
===========================================
+ Coverage 78.18% 78.21% +0.03%
===========================================
Files 310 313 +3
Lines 23071 23111 +40
===========================================
+ Hits 18038 18076 +38
- Misses 3663 3664 +1
- Partials 1370 1371 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 12 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
b6def04
to
0a788e7
Compare
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.
LGTM! I just have few minor suggestions.
var cmd = &cobra.Command{ | ||
Use: "new", | ||
Short: "Generate a new identity", | ||
Long: `Generate a new identity |
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.
suggestion: would be useful for users to have more detailed documentation on why it's needed and how to use it or something like this.
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.
Happy to take suggestions on what I should add. As for why it's needed (it's not) it's just a key pair + did generation utility command incase users ever want to generate a new identity using defradb rather than another key pair generation tool.
0a788e7
to
1af8970
Compare
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.
LGTM
Relevant issue(s)
Resolves #2554
Description
Now that the
core_acp
work is merged the identity generation becomes much more simple, with adid
instead ofsource address
. This util command can be handy to quickly generate new identity pairs with their did.Demo
Issue the command:
Output:
How has this been tested?
Specify the platform(s) on which this was tested: