-
Notifications
You must be signed in to change notification settings - Fork 126
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
🔐 Allow choose proof purpose when signing VC #727
Conversation
WalkthroughThe recent updates enhance the command-line interface for signing verifiable credentials by introducing a new flag, Changes
Possibly related issues
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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ @@ Coverage Diff @@
## main #727 +/- ##
=======================================
Coverage 54.49% 54.49%
=======================================
Files 73 73
Lines 2905 2905
=======================================
Hits 1583 1583
Misses 1228 1228
Partials 94 94 |
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.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files ignored due to path filters (1)
docs/command/axoned_credential_sign.md
is excluded by!docs/command/**/*.md
Files selected for processing (1)
- client/credential/sign.go (6 hunks)
Additional comments not posted (4)
client/credential/sign.go (4)
39-39
: LGTM! TheflagPurpose
declaration is appropriate.The
flagPurpose
is well-defined with a clear description and a suitable default value.
69-71
: LGTM! TheflagPurpose
integration inSignCmd
is correct.The
flagPurpose
is correctly added to the command flags with a clear description and default value.
128-133
: LGTM! The handling offlagPurpose
inrunSignCmd
is correct.The
flagPurpose
is retrieved and passed to thesignVerifiableCredential
function appropriately.
Line range hint
258-287
: LGTM! The integration ofpurpose
insignVerifiableCredential
is correct.The
purpose
parameter is correctly integrated into the function and used in the linked data proof context, enhancing security.
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.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- client/credential/sign.go (7 hunks)
Files skipped from review as they are similar to previous changes (1)
- client/credential/sign.go
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 good thanks :)
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.
👍
Implements #724
Summary by CodeRabbit
flagPurpose
, allowing users to specify the purpose of signed verifiable credentials for enhanced clarity and security.