Struct mpc_websocket::Session
source · pub struct Session {
pub uuid: Uuid,
pub kind: SessionKind,
pub value: Option<Value>,
/* private fields */
}
Expand description
Session used for key generation or signing communication.
Fields§
§uuid: Uuid
Unique identifier for the session.
kind: SessionKind
Kind of the session.
value: Option<Value>
Public value associated with the session.
The owner of a session will assign this when the session is created and other participants in the session can read this value.
This can be used to assign public data like the message or transaction that will be signed during a signing session.
Implementations§
source§impl Session
impl Session
sourcepub fn signup(&mut self, conn: usize) -> u16
pub fn signup(&mut self, conn: usize) -> u16
Signup to a session.
This marks a connected client as actively participating in this session and issues them a unique party signup number.