pub enum ProtocolMessage {
Show 17 variants
Register {
signer_id: SignerId,
quorum_id: String,
},
Registered {
signer_id: SignerId,
},
CreateSession {
quorum_id: String,
scheme: String,
message: Vec<u8>,
threshold: u32,
num_parties: u32,
},
SessionCreated {
session_id: String,
},
SessionPending {
session_id: String,
message: Vec<u8>,
threshold: u32,
},
Commitment {
session_id: String,
signer_id: SignerId,
bytes: Vec<u8>,
signature: Vec<u8>,
},
CommitmentsReady {
session_id: String,
},
Share {
session_id: String,
signer_id: SignerId,
bytes: Vec<u8>,
signature: Vec<u8>,
},
Signature {
session_id: String,
bytes: Vec<u8>,
algorithm: String,
contributing_signers: Vec<SignerId>,
},
Ack {
session_id: String,
},
Error {
message: String,
},
GetStatus {
session_id: Option<String>,
},
Status {
session_id: String,
state: String,
},
HealthCheck,
HealthStatus {
alive: bool,
ready: bool,
session_count: usize,
uptime_seconds: u64,
},
MetricsQuery,
MetricsResponse {
text: String,
},
}Expand description
Protocol message exchanged over TCP between coordinator, signers, and clients.
Variants§
Register
Signer registers with coordinator.
Registered
Coordinator acknowledges registration.
CreateSession
Client requests session creation.
Fields
SessionCreated
Coordinator confirms session created.
SessionPending
Coordinator notifies signers of pending session.
Commitment
Signer submits commitment.
Fields
CommitmentsReady
Coordinator notifies that commitments are collected.
Signer submits share.
Signature
Coordinator returns aggregated signature.
Fields
Ack
Acknowledgement (commitment or share accepted, no further action needed).
Error
Error response.
GetStatus
Status query.
Status
Status response.
HealthCheck
Liveness/readiness probe.
HealthStatus
Health status response.
Fields
MetricsQuery
Prometheus metrics query.
MetricsResponse
Prometheus metrics response (text exposition format).
Trait Implementations§
Source§impl Clone for ProtocolMessage
impl Clone for ProtocolMessage
Source§fn clone(&self) -> ProtocolMessage
fn clone(&self) -> ProtocolMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProtocolMessage
impl Debug for ProtocolMessage
Source§impl<'de> Deserialize<'de> for ProtocolMessage
impl<'de> Deserialize<'de> for ProtocolMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProtocolMessage
impl RefUnwindSafe for ProtocolMessage
impl Send for ProtocolMessage
impl Sync for ProtocolMessage
impl Unpin for ProtocolMessage
impl UnsafeUnpin for ProtocolMessage
impl UnwindSafe for ProtocolMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more