-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document simulated device and reader interaction for all states and t…
…ransitions (#90) Documented several members - `presentation::*` - `presentation::device::*` - `presentation::reader::*` - some from `definitions::device_response` CI: - Run `cargo doc` in `ci` to catch warning for `rustdoc` - Add `workflow_dispatch` so we can manually run on any branch, useful for PR that are to other branches than `main`
- Loading branch information
1 parent
9d99da6
commit a017b66
Showing
20 changed files
with
899 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
+---------+ | ||
| | | ||
| | | ||
| User | | ||
| | | ||
| | | ||
+---+-----+ | ||
| | ||
| | ||
+----------------------------------------------------v--------------------------------------------------------------+ | ||
| Device | | ||
| | | ||
| +-------------------+ | | ||
| | | | | ||
| |SessionManagerInit | | | ||
| | | | | ||
| +---------------------------------+ +-------------+ | | ||
| | | | | | | ||
| | | | | | | ||
| | +-------------------+ | | | ||
| | | | | ||
| | qr_engagement | | ||
| | | | | ||
| | | | | ||
| qr_engagement | | | ||
| | | | | ||
| | +----------v------------+ | | ||
| | | | | | ||
| | | SessionManagerEngaged <-------------+ | | ||
| | +----------+ | | | | ||
| | | | | | | | ||
| | | +-----------------------+ | | | ||
| | | | | | ||
| | | | | | ||
| | | | | | ||
| | | | | | ||
| | | | | | ||
| | | | | | ||
| | | | | | ||
| | process_session_establishment | | | ||
| | | | | | ||
| | +--------------------------------------v----------------------------------+ | | | ||
| | | SessionManager | | | | ||
| | | | | | | ||
| | | +--------------------+ | | | | ||
| | | | | | | | | ||
| | | +-----------------------+ AwaitingRequest <----------------+ | | | | ||
| | | | | | | | | | | ||
| | | | +-----------+ | | | | | | ||
| | |prepare_response | +--------------------+ | | | | | ||
| | | | | | | | | | ||
| | | | | | | establish_session | | ||
| | | | | | | | | | ||
| | | | handle_request | | | | | ||
| | | | | | | | | | ||
| | | | | | | | | | ||
| | | +--v-----------v--------+ retrieve_response | | | | ||
| | | | +--------- | | | | | ||
| | | | Signing | get_next_signature_payload | | | | | ||
| | | | <--------- | | | | | ||
| | | +---------+-------------+ | | | | | ||
| | | | | | | | | ||
| | | | | | | | | ||
| | | | | | | | | ||
| | | submit_next_signature | | | | | ||
| | | | | | | | | ||
| | | | +----------------------+ | | | | | ||
| | | | | | | | | | | ||
| | | | | ReadyToRespond | | | | | | ||
| | | +-----------------> +-------------+ | | | | ||
| | | | | | | | | ||
| | | +----------+-----------+ | | | | ||
| | | | | | | | ||
| | +-----------------------------------------+-------------------------------+ | | | ||
| | handle_response | | | ||
+-------+------------------------------------------------+---------------------------------------------+------------+ | ||
| | | | ||
| +-------v-------+ | | ||
| | Reader | | | ||
| | | | | ||
| | | | | ||
+----------------------------------------> +-------------------------------------+ | ||
| | | ||
| | | ||
| | | ||
+---------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
+--------+ | ||
| | | ||
| User | | ||
| | | ||
+---+----+ | ||
| | ||
| | ||
+---v-----+ | ||
| | | ||
| Device | | ||
+---------+ |<----------------+ | ||
| | | | | ||
| | | | | ||
| +--+--^---+ | | ||
| | | | | ||
| | | establish_session | | ||
|qr_engagement | | | | ||
| | | | new_request | ||
| | | | | ||
+-v--------------v--+-------------------+---+ | ||
| Reader | | ||
| | | ||
| +--------------------+ handle_response | | ||
| | +---------------+ | | ||
| | SessionManager | | | | ||
| | |<--------------+ | | ||
| +--------------------+ | | ||
| | | ||
+-------------------------------------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
+---------------------+ +----------------------+ | ||
| | | | | ||
| | | | | ||
| Device | | Reader | | ||
| | | | | ||
| | | | | ||
+---------+-----------+ +----------+-----------+ | ||
| | | ||
Initialize session | | ||
| | | ||
| | | ||
Create QR code engagement | | ||
| | | ||
+-------------+ | | ||
| | | | ||
| | | | ||
<-------------+ | | ||
| | | ||
| Send QR code | | ||
+-----------------------------------------------------------------> | ||
| | | ||
| | Establish session | ||
| +-----------+ | ||
| | | | ||
| | | | ||
| +-----------+ | ||
| Request age_over_21 | | ||
<-----------------------------------------------------------------+ | ||
| | | ||
| | | ||
| | | ||
| Send age_over_21 | | ||
+-----------------------------------------------------------------> | ||
| | | ||
| | | ||
| | Process age_over_21 | ||
| +-----------+ | ||
| | | | ||
| | | | ||
| +-----------+ | ||
| | | ||
| | | ||
| | | ||
| Session finished | | ||
| | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.