Skip to content
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

OOB Protocol - CredentialOffer Attachment Support #1316

Merged

Conversation

shaangill025
Copy link
Contributor

@shaangill025 shaangill025 commented Jul 14, 2021

  • Extends work done by @DaevMithran in Add outofband credential-offer #1216
  • Adds a create-offer endpoint in issue-credential-v1 and issue-credential-v2 to create an offer independent of connection.
  • Support both issue-credential-v1 and issue-credential-v2 credential offer workflow
    [Faber] with auto flags, offer_sent -> request_received -> credential_issued
    [Alice] with auto flags, offer_received -> request_sent -> credential_received
  • Test coverage

@shaangill025 shaangill025 marked this pull request as ready for review July 15, 2021 12:20
@@ -172,7 +181,9 @@ async def create_invitation(
a_id,
)
message_attachments.append(
InvitationMessage.wrap_message(cred_ex_rec.cred_offer.offer())
InvitationMessage.wrap_message(
cred_ex_rec.cred_offer.serialize()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see here it's using cred_ex_rec.cred_offer but at line 175 it's using cred_ex_rec.credential_offer_dict, is that correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cred_offer in V20CredExRecord is same as credential_offer_dict in V10CredentialExchange. I think this is correct.

Signed-off-by: Shaanjot Gill <[email protected]>
@andrewwhitehead andrewwhitehead merged commit a58d7ba into openwallet-foundation:main Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants