-
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
Extract message sending from prover & verifier SMs #965
Conversation
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
Codecov Report
@@ Coverage Diff @@
## main #965 +/- ##
==========================================
- Coverage 39.25% 39.23% -0.03%
==========================================
Files 417 415 -2
Lines 28959 28867 -92
Branches 6186 6173 -13
==========================================
- Hits 11368 11325 -43
+ Misses 14250 14202 -48
+ Partials 3341 3340 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
…presentation Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
…ame to set_presentation_request Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
…rom verify_presentation and return final message Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
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.
Left some comments, consider them, but generally lgtm.
In line with Connection protocol, Didexchange protocol, changes done in Issuer/Verifier I'd suggest to get rid of marker states, but that's again something that can be discussed and addressed outside of this PR.
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
* Extract message sending from prover & verifier SMs (#965) Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa> Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Extracts message sending out of prover and verifier state machines and handlers. Transition functions are now returning messages constructed to be sent and are not accepting message-sending closures.
Prover
Handlers
send_proposal
->build_presentation_proposal
send_presentation
->mark_presentation_sent
set_presentation
State machine
send_presentation_proposal
->build_presentation_proposal
send_presentation
->mark_presentation_sent
(now throws in invalid state)get_problem_report
,get_presentation_proposal
set_presentation
Verifier
Handlers
send_presentation_request
->mark_presentation_request_sent
(now throws in invalid state, TODO: better name)set_request
->set_presentation_request
mark_presentation_request_msg_sent
,get_presentation_request
State machine
set_request
->set_presentation_request
mark_presentation_request_msg_sent
->mark_presentation_request_sent
get_final_message
verify_presentation
now generates and stores either presentation or problem report, which can then be retrieved viaget_final_message
.