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(proofs): present proof as nested protocol #972

Merged
merged 3 commits into from
Aug 11, 2022

Conversation

genaris
Copy link
Contributor

@genaris genaris commented Aug 5, 2022

As exemplified in Aries RFC 0008, there are certain situations where proofs must be exchanged as part of an inner flow, such as a credential issuance.

This PR attempts to support launching a Present Proof V1 protocol as a sub-protocol from another one, without impacting current Agent behaviour and API (apart from adding some fields and methods). It does not, however, add support for all threading concepts (such as sender_order and receiver_order), as it might introduce breaking changes and also needs to be more carefully designed.

Signed-off-by: Ariel Gentile [email protected]

@genaris genaris requested a review from a team as a code owner August 5, 2022 19:42
@TimoGlastra
Copy link
Contributor

Nice addition @genaris! I think it would be great to look at a generic way to do this (if possible, maybe we should have a base protocol implementation with handlers/records etc..), but for now this will do fine.

@TimoGlastra
Copy link
Contributor

Can you update the branch?

@genaris
Copy link
Contributor Author

genaris commented Aug 8, 2022

Thanks @TimoGlastra! And I agree that it would be nice to find an easier way to start any protocol as a child of another one (even if some of them, such as Basic Messages and Action Menu, are not originally meant to work as sub-protocols).

@TimoGlastra TimoGlastra changed the title feat(proofs): Present Proof as nested protocol feat(proofs): present proof as nested protocol Aug 11, 2022
@TimoGlastra TimoGlastra merged commit 52247d9 into openwallet-foundation:main Aug 11, 2022
@TimoGlastra
Copy link
Contributor

Reminder: this PR needs to be integrated with the PP v2 work that has changed basically everything about the implementation.

@genaris genaris deleted the feat/protocol-nesting branch August 24, 2022 17:41
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