pub struct CertificateMessage {
pub hash: String,
pub previous_hash: String,
pub epoch: i64,
pub beacon: Option<CardanoDbBeacon>,
pub signed_entity_type: HashMap<String, Value>,
pub metadata: Box<CertificateMetadata>,
pub protocol_message: Box<ProtocolMessage>,
pub signed_message: String,
pub aggregate_verification_key: String,
pub multi_signature: String,
pub genesis_signature: String,
}Expand description
CertificateMessage : Certificate represents a Mithril certificate embedding a Mithril STM multi signature
Fields§
§hash: StringHash of the current certificate
previous_hash: StringHash of the previous certificate
epoch: i64Cardano chain epoch number
beacon: Option<CardanoDbBeacon>§signed_entity_type: HashMap<String, Value>Entity type of the message that is signed
metadata: Box<CertificateMetadata>§protocol_message: Box<ProtocolMessage>§signed_message: StringHash of the protocol message that is signed by the signer participants
aggregate_verification_key: StringAggregate verification key used to verify the multi signature
multi_signature: StringSTM multi signature created from a quorum of single signatures from the signers
genesis_signature: StringGenesis signature created to bootstrap the certificate chain with the Cardano Genesis Keys
Implementations§
Source§impl CertificateMessage
impl CertificateMessage
Sourcepub fn new(
hash: String,
previous_hash: String,
epoch: i64,
signed_entity_type: HashMap<String, Value>,
metadata: CertificateMetadata,
protocol_message: ProtocolMessage,
signed_message: String,
aggregate_verification_key: String,
multi_signature: String,
genesis_signature: String,
) -> CertificateMessage
pub fn new( hash: String, previous_hash: String, epoch: i64, signed_entity_type: HashMap<String, Value>, metadata: CertificateMetadata, protocol_message: ProtocolMessage, signed_message: String, aggregate_verification_key: String, multi_signature: String, genesis_signature: String, ) -> CertificateMessage
Certificate represents a Mithril certificate embedding a Mithril STM multi signature
Trait Implementations§
Source§impl Clone for CertificateMessage
impl Clone for CertificateMessage
Source§fn clone(&self) -> CertificateMessage
fn clone(&self) -> CertificateMessage
Returns a copy of the value. Read more
1.0.0 · 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 CertificateMessage
impl Debug for CertificateMessage
Source§impl Default for CertificateMessage
impl Default for CertificateMessage
Source§fn default() -> CertificateMessage
fn default() -> CertificateMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CertificateMessage
impl<'de> Deserialize<'de> for CertificateMessage
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
Source§impl PartialEq for CertificateMessage
impl PartialEq for CertificateMessage
Source§impl Serialize for CertificateMessage
impl Serialize for CertificateMessage
impl StructuralPartialEq for CertificateMessage
Auto Trait Implementations§
impl Freeze for CertificateMessage
impl RefUnwindSafe for CertificateMessage
impl Send for CertificateMessage
impl Sync for CertificateMessage
impl Unpin for CertificateMessage
impl UnwindSafe for CertificateMessage
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