Skip to content

Commit b9a97ac

Browse files
committed
PR Review feedback
1 parent 7cac805 commit b9a97ac

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

mithril-common/src/entities/certificate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub enum CertificateSignature {
1717
GenesisSignature(ProtocolGenesisSignature),
1818

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

mithril-common/src/messages/certificate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ pub struct CertificateMessage {
3232
pub epoch: Epoch,
3333

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

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

mithril-common/src/messages/certificate_list.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub type CertificateListMessage = Vec<CertificateListItemMessage>;
1414
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
1515
pub struct CertificateListItemMessageMetadata {
1616
/// Cardano network
17+
/// part of METADATA(p,n)
1718
pub network: String,
1819

1920
/// Protocol Version (semver)
@@ -60,10 +61,10 @@ pub struct CertificateListItemMessage {
6061
pub epoch: Epoch,
6162

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

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

mithril-common/src/messages/message_parts/certificate_metadata.rs

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use serde::{Deserialize, Serialize};
77
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
88
pub struct CertificateMetadataMessagePart {
99
/// Cardano network
10+
/// part of METADATA(p,n)
1011
pub network: String,
1112

1213
/// Protocol Version (semver)

0 commit comments

Comments
 (0)