-
Notifications
You must be signed in to change notification settings - Fork 83
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
Issue Credential V2.0 message structures #990
Issue Credential V2.0 message structures #990
Conversation
Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #990 +/- ##
==========================================
- Coverage 30.02% 29.83% -0.19%
==========================================
Files 415 424 +9
Lines 26916 27082 +166
Branches 5243 5290 +47
==========================================
Hits 8081 8081
- Misses 16639 16802 +163
- Partials 2196 2199 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
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 overall.
The only thing I'd change would be renaming/compartmentalizing stuff related to the V1 protocol version a bit better, since now there's V2 stuff laying around.
@gmulhearn-anonyome I'll try to put together some guidelines for the message crate in a README file to maybe clarify how things get pieced together. But if you have any specific questions before then, feel free to ask here. |
Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
@bobozaur thanks for the feedback. let me know what you think about this latest revision |
messages/src/msg_fields/protocols/cred_issuance/v2/issue_credential.rs
Outdated
Show resolved
Hide resolved
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.
Almost there.
The only nitpick I have is about the conversions that arise from introducing the CredentialIssuance
wrapper enum (since there are two versions now).
There are all these intermediate enums throughout the crate which are really there simply for composition purposes. You should rarely have to work with the CredentialIssuanceV1
enum directly.
The actual messages all have implementations of From
(through the transit_to_aries_msg
macro) to convert them to an AriesMessage
directly specifically to avoid the need to deal with all the nested enums.
Signed-off-by: George Mulhearn <[email protected]>
Signed-off-by: George Mulhearn <[email protected]>
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. If CI passes then it's all good on my end.
NOTE: I've gone with v2.0 (as opposed to v2.1 & v2.2), this is primarily because it seems to be what others (aca-py & AFJ) are targeting and expect. similarly, V2.0 is what AIP2.0 lists as it's requirement: https://github.com/hyperledger/aries-rfcs/blob/main/concepts/0302-aries-interop-profile/README.md#base-requirements
Also note, I'm consuming these messages in the Issuer and Holder V2 impl: #987
Also also note, have tested holderv2 against aca-py for issue-credential-v2, which should confirm that the message structures are interoperable with acapy