Skip to content

Commit

Permalink
PR Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Alenar committed Mar 28, 2024
1 parent 924ba55 commit a87ff74
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mithril-common/src/entities/certificate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub enum CertificateSignature {
GenesisSignature(ProtocolGenesisSignature),

/// STM multi signature created from a quorum of single signatures from the signers
/// aka MULTI_SIG(H(MSG(p,n) || AVK(n-1)))
/// aka (BEACON(p,n), MULTI_SIG(H(MSG(p,n) || AVK(n-1))))
MultiSignature(SignedEntityType, ProtocolMultiSignature),
}

Expand Down
2 changes: 1 addition & 1 deletion mithril-common/src/messages/certificate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ pub struct CertificateMessage {
pub epoch: Epoch,

/// The signed entity type of the message.
/// aka BEACON(p,n)
pub signed_entity_type: SignedEntityType,

/// Mithril beacon on the Cardano chain
/// aka BEACON(p,n)
#[deprecated(since = "0.3.21", note = "use epoch and/or signed_entity_type instead")]
pub beacon: CardanoDbBeacon,

Expand Down
3 changes: 2 additions & 1 deletion mithril-common/src/messages/certificate_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub type CertificateListMessage = Vec<CertificateListItemMessage>;
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct CertificateListItemMessageMetadata {
/// Cardano network
/// part of METADATA(p,n)
pub network: String,

/// Protocol Version (semver)
Expand Down Expand Up @@ -60,10 +61,10 @@ pub struct CertificateListItemMessage {
pub epoch: Epoch,

/// The signed entity type of the message.
/// aka BEACON(p,n)
pub signed_entity_type: SignedEntityType,

/// Mithril beacon on the Cardano chain
/// aka BEACON(p,n)
#[deprecated(since = "0.3.21", note = "use epoch and/or signed_entity_type instead")]
pub beacon: CardanoDbBeacon,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct CertificateMetadataMessagePart {
/// Cardano network
/// part of METADATA(p,n)
pub network: String,

/// Protocol Version (semver)
Expand Down

0 comments on commit a87ff74

Please sign in to comment.