@@ -49,14 +49,15 @@ SigManager* SigManager::instance() {
4949
5050void SigManager::reset (std::shared_ptr<SigManager> other) { s_sm = other; }
5151
52- std::shared_ptr<SigManager> SigManager::init (ReplicaId myId,
53- const Key& mySigPrivateKey,
54- const std::set<std::pair<PrincipalId, const std::string>>& publicKeysOfReplicas,
55- KeyFormat replicasKeysFormat,
56- const std::set<std::pair<const std::string, std::set<uint16_t >>>* publicKeysOfClients,
57- KeyFormat clientsKeysFormat,
58- const std::optional<std::tuple<PrincipalId, Key, concord::crypto::KeyFormat>>& operatorKey,
59- const ReplicasInfo& replicasInfo) {
52+ std::shared_ptr<SigManager> SigManager::init (
53+ ReplicaId myId,
54+ const Key& mySigPrivateKey,
55+ const std::set<std::pair<PrincipalId, const std::string>>& publicKeysOfReplicas,
56+ KeyFormat replicasKeysFormat,
57+ const std::set<std::pair<const std::string, std::set<uint16_t >>>* publicKeysOfClients,
58+ KeyFormat clientsKeysFormat,
59+ const std::optional<std::tuple<PrincipalId, Key, concord::crypto::KeyFormat>>& operatorKey,
60+ const ReplicasInfo& replicasInfo) {
6061 vector<pair<Key, KeyFormat>> publickeys;
6162 map<PrincipalId, SigManager::KeyIndex> publicKeysMapping;
6263 size_t lowBound, highBound;
@@ -102,14 +103,14 @@ std::shared_ptr<SigManager> SigManager::init(ReplicaId myId,
102103 }
103104
104105 LOG_INFO (GL, " Done Compute Start ctor for SigManager with " << KVLOG (publickeys.size (), publicKeysMapping.size ()));
105- auto ret = std::shared_ptr<SigManager>{new SigManager (
106- myId,
107- make_pair (mySigPrivateKey, replicasKeysFormat),
108- publickeys,
109- publicKeysMapping,
110- ((ReplicaConfig::instance ().clientTransactionSigningEnabled ) && (publicKeysOfClients != nullptr )),
111- operatorKey,
112- replicasInfo)};
106+ auto ret = std::shared_ptr<SigManager>{
107+ new SigManager ( myId,
108+ make_pair (mySigPrivateKey, replicasKeysFormat),
109+ publickeys,
110+ publicKeysMapping,
111+ ((ReplicaConfig::instance ().clientTransactionSigningEnabled ) && (publicKeysOfClients != nullptr )),
112+ operatorKey,
113+ replicasInfo)};
113114
114115 reset (ret);
115116 return ret;
@@ -120,7 +121,7 @@ SigManager::SigManager(PrincipalId myId,
120121 const vector<pair<Key, KeyFormat>>& publickeys,
121122 const map<PrincipalId, KeyIndex>& publicKeysMapping,
122123 bool clientTransactionSigningEnabled,
123- const std::optional<std::tuple<PrincipalId, Key, concord::crypto::KeyFormat>>& operatorKey
124+ const std::optional<std::tuple<PrincipalId, Key, concord::crypto::KeyFormat>>& operatorKey,
124125 const ReplicasInfo& replicasInfo)
125126 : myId_(myId),
126127 clientTransactionSigningEnabled_ (clientTransactionSigningEnabled),
0 commit comments