-
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
Remove msg-sending IO for issuer and holder #946
Conversation
ecedd53
to
88a7f2f
Compare
Codecov Report
@@ Coverage Diff @@
## main #946 +/- ##
==========================================
+ Coverage 39.23% 39.32% +0.09%
==========================================
Files 415 414 -1
Lines 28867 28863 -4
Branches 6173 6183 +10
==========================================
+ Hits 11325 11350 +25
+ Misses 14202 14174 -28
+ Partials 3340 3339 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
97f2a81
to
9ae5dd0
Compare
b8242f0
to
b1ff537
Compare
d60304a
to
3577527
Compare
de2c53c
to
4fb71e5
Compare
288c736
to
e7e7f0c
Compare
e7e7f0c
to
9291228
Compare
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.
Seems OK to me so far. Left some comments outside of the review.
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.
Issuer: If constructing anoncreds credential / issue-credential message fails, the state machine transitions to failed Finished state, but doesn't sends the problem report. You have to check the state and send problem report yourself.
Holder: if construction anoncreds credential-request / request-credential message fails, the state machine transitions to failed Finished state, but doesn't sends the problem report. You have to check the state and send problem report yourself.
How and where is the potential problem report to be constructed? It is currently just not being sent (unless I am missing something)?
9291228
to
354d3d0
Compare
3dd2d47
to
7d6e306
Compare
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
…ential_request'; rename 'build_credential_request' to 'prepare_credential_request' Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
…ack whether ack was requested Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
6ecefb3
to
6e48283
Compare
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
* Remove msg-sending IO for issuer and holder (#946) Signed-off-by: Patrik Stas <patrik.stas@absa.africa> Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Strategy
Changes
aries-vcx
user, there's breaking changes in terms of sending messages. You have to send replies to counterparty yourself.libvcx
andrust-agent
built on top ofaries-vcx
, which preserve original behaviour and assure message sending themselves.Issuer: Removed state
OfferSent
OfferSent
state, keep onlyOfferSet
; treatOfferSet
asOfferSent
send_credential_offer
which unlike before, does not modify state. Hence existing code should still keep working.Issuer: Removed state
CredentialSent
CredentialSent
, introduced stateCredentialSet
insteadCredentialSet
has additional fieldmsg_issue_credential: IssueCredential
to decouple construction of credential from sendingissue-credential
msgHolder: Removed state
RequestSent
,ProposalSent
RequestSent
, introduced stateRequestSet
insteadProposalSent
, introduced stateProposalSet
insteadHolder: credential-ack
issue-credential
, sender would previously automatically sendcredential-ack
message, if ack was requested by the issuer. This no longer happens. Instead, after processingissue-credential
msg, you should callget_final_message
which can give you back aries messageOption<AriesMessage>
you shall send back to counterparty. The message might becredential-ack
orproblem-report
(if processingissue-credential
message failed)Issuer & Holder: problem reports