You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Await::forallpspr (st::ps) fma.
( StateTokenIst
, ActiveStatest
)
=>TheyHaveAgencyProofprst--^ agency singleton-> (forall (st'::ps).fst--^ associated local state to the source protocol state 'st'->Messagepsstst'-> ( Peerpsprst'fma
, fst'
)
--^ continuation and associated local state to the target protocol-- state `st'`
)
--^ continuation->Peerpsprstfma
It only allows for pure transitions of local state, e.g. f st -> f st'. We argue that this isn't actually a major limiting factor. The transition f st -> f st' has access to Message ps st st' which might contain information we want to contain in the local state (as we do in the ReqResp example). The local state hasn't been designed to store another type of information (e.g. IO state), which can be preserved by other means, although it won't be available in the codecs.
stateful-apiissues / PRs related to the stateful API
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently we expose
Await
of this shape:It only allows for pure transitions of local state, e.g.
f st -> f st'
. We argue that this isn't actually a major limiting factor. The transitionf st -> f st'
has access toMessage ps st st'
which might contain information we want to contain in the local state (as we do in theReqResp
example). The local state hasn't been designed to store another type of information (e.g. IO state), which can be preserved by other means, although it won't be available in the codecs.Beta Was this translation helpful? Give feedback.
All reactions