Skip to main content

derive_interaction_id

Function derive_interaction_id 

Source
pub fn derive_interaction_id(turn_id: &TurnId, key: &str) -> InteractionId
Expand description

Derives the identifier of the card key of turn.

Deterministic on purpose: a turn replayed after a crash re-creates the same card under the same identifier instead of a second one the client would show twice (I20, spec ยง23.1).