@@ -3,15 +3,13 @@ use chrono::Utc;
3
3
use slog:: { debug, Logger } ;
4
4
use std:: sync:: Arc ;
5
5
6
- use mithril_common:: entities:: {
7
- ProtocolMessage , SignedEntityConfig , SignedEntityType , SingleSignatures , TimePoint ,
8
- } ;
6
+ use mithril_common:: entities:: { ProtocolMessage , SignedEntityConfig , SignedEntityType , TimePoint } ;
9
7
use mithril_common:: logging:: LoggerExtensions ;
10
8
use mithril_common:: StdResult ;
11
9
use mithril_signed_entity_lock:: SignedEntityTypeLock ;
12
10
13
11
use crate :: entities:: BeaconToSign ;
14
- use crate :: services:: SingleSigner ;
12
+ use crate :: services:: { SignaturePublisher , SingleSigner } ;
15
13
16
14
/// Certifier Service
17
15
///
@@ -54,19 +52,6 @@ pub trait SignedBeaconStore: Sync + Send {
54
52
async fn mark_beacon_as_signed ( & self , entity : & BeaconToSign ) -> StdResult < ( ) > ;
55
53
}
56
54
57
- /// Publishes computed single signatures to a third party.
58
- #[ cfg_attr( test, mockall:: automock) ]
59
- #[ async_trait]
60
- pub trait SignaturePublisher : Send + Sync {
61
- /// Publish computed single signatures.
62
- async fn publish (
63
- & self ,
64
- signed_entity_type : & SignedEntityType ,
65
- signatures : & SingleSignatures ,
66
- protocol_message : & ProtocolMessage ,
67
- ) -> StdResult < ( ) > ;
68
- }
69
-
70
55
/// Implementation of the [Certifier Service][CertifierService] for the Mithril Signer.
71
56
pub struct SignerCertifierService {
72
57
signed_beacon_store : Arc < dyn SignedBeaconStore > ,
@@ -177,7 +162,7 @@ mod tests {
177
162
} ;
178
163
use mithril_common:: test_utils:: fake_data;
179
164
180
- use crate :: services:: MockSingleSigner ;
165
+ use crate :: services:: { MockSignaturePublisher , MockSingleSigner } ;
181
166
182
167
use super :: { tests:: tests_tooling:: * , * } ;
183
168
0 commit comments