mithril_aggregator/entities/
signer_ticker_message.rs

1use mithril_common::entities::PartyId;
2use serde::{Deserialize, Serialize};
3
4/// Message structure of a known signer
5#[derive(Clone, Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
6pub struct SignerTickerListItemMessage {
7    /// The signer party id
8    pub party_id: PartyId,
9
10    /// The signer pool ticker
11    #[serde(skip_serializing_if = "Option::is_none")]
12    pub pool_ticker: Option<String>,
13
14    /// True if the signer have registered at least once
15    pub has_registered: bool,
16}
17
18/// Message structure of signers known by the aggregator
19#[derive(Clone, Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
20pub struct SignersTickersMessage {
21    /// Cardano network of the aggregator
22    pub network: String,
23
24    /// Known signers
25    pub signers: Vec<SignerTickerListItemMessage>,
26}