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

feat: add additional formats for parsing and outputting Out Of Band Invitations #1281

Merged
merged 10 commits into from
Aug 22, 2024

Conversation

JamesKEbert
Copy link
Contributor

Adds the ability to parse from and output to additional formats for the OutOfBandReceiver:

  • JSON
  • Base64URL
  • URL

Additionally, adds parsing from the same formats to the OutOfBandSender, as new invites should always be created as Invitation or AriesMessage or with a builder. Consequently I've also removed the unused from_string() method from OutOfBandSender.

Adds tests for these methods (some repetition between the files, so I can see if I can consolidate if there's too much repeated during review).

Does not include behavior for handling shortened URLs. I will create a followup GH issue for this item.

Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
…ing test

Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
gmulhearn
gmulhearn previously approved these changes Aug 18, 2024
Copy link
Contributor

@gmulhearn gmulhearn left a comment

Choose a reason for hiding this comment

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

LGTM, just that one remaining comment

…y method

Signed-off-by: James Ebert <jamesebert.k@gmail.com>
@JamesKEbert JamesKEbert merged commit 6887dc2 into hyperledger:main Aug 22, 2024
22 checks passed
@JamesKEbert JamesKEbert deleted the feat/addInvitationFormats branch August 22, 2024 01:48
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.

2 participants