The manager of this interaction
A unique identifier for this interaction
the {@link InteractionType} of this interaction, which must match one of the known initial flow message types registered in {@link interactionFlowForMessage}
reference to an open transport to reach the Interaction.participants
The id
is currently the {@link JSONWebToken.nonce} of the first token
A map of all interaction participants to {@link jolocom-lib/js/identity/identity#Identity} objects. This is incrementally built up as the interaction receives new messages.
Validate an interaction token and process it to update the interaction state (via the associated Flow)
the token to
Promise
Returns an Interaction with state calculated from the given list of messages
List of messages to calculate interaction state from
The manager of this interaction
A unique identifier for this interaction
reference to an open transport to reach the Interaction.participants
Generated using TypeDoc
This class is instantiated by the InteractionManager when it needs to keep track of an ongoing interaction with another identity. It provides the main API to respond to and get information about an ongoing interaction.
Two identities interact by sending each other signed messages wrapped in {@link JSONWebToken}. The messages have to have correct types and follow the sequence expected by one of the predefined Flows.
Interaction objects hold a list of tokens exchanged in the interaction, and an instance of the appropriate Flow class to handle this interaction. Consumers of this object should generally not need to directly interaction with the Flow instance.