Skip to main content

Module session

Module session 

Source
Expand description

One side of a transfer as a pure state machine: messages in, messages and outcomes out. The network loop feeds it; the tests drive two or three of them by hand.

The joiner commits to its SPAKE2 message before it sees the shower’s, and the shower sends its own before it sees the joiner’s, so a party that knows the code still can’t steer the number the two screens show. Any third device in the room ends the session. The identity itself travels under SPAKE2’s secret and an ML-KEM-1024 secret together: the receiver’s encapsulation key rides in its sealed hello, and the sender encapsulates to it when the user approves.

Structs§

Bundle
The identity a sender hands over.
Session

Enums§

ApproveError
Failure
Out
Presentation
Role