From db60ed35392b3534ab1341a003e6c47a5ab4beb6 Mon Sep 17 00:00:00 2001 From: ryardley Date: Fri, 13 Sep 2024 18:56:00 +1000 Subject: [PATCH] Fix up comments --- packages/ciphernode/core/src/events.rs | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/packages/ciphernode/core/src/events.rs b/packages/ciphernode/core/src/events.rs index 6b76d7a5..09b66e35 100644 --- a/packages/ciphernode/core/src/events.rs +++ b/packages/ciphernode/core/src/events.rs @@ -95,10 +95,11 @@ pub enum EnclaveEvent { CiphernodeRemoved { id: EventId, data: CiphernodeRemoved, - }, // CommitteeSelected, - // OutputDecrypted, - // CiphernodeRegistered, - // CiphernodeDeregistered, + }, + // CommitteeSelected, + // OutputDecrypted, + // CiphernodeRegistered, + // CiphernodeDeregistered, } impl EnclaveEvent { @@ -115,6 +116,7 @@ impl EnclaveEvent { } pub fn is_local_only(&self) -> bool { + // Add a list of local events match self { EnclaveEvent::CiphernodeSelected { .. } => true, _ => false, @@ -267,14 +269,16 @@ pub struct CommitteeRequested { pub nodecount: usize, pub threshold: usize, pub sortition_seed: u64, // Should actually be much larger eg [u8;32] + // fhe params pub moduli: Vec, pub degree: usize, pub plaintext_modulus: u64, - pub crp: Vec, // computation_type: ??, // TODO: - // execution_model_type: ??, // TODO: - // input_deadline: ??, // TODO: - // availability_duration: ??, // TODO: + pub crp: Vec, + // computation_type: ??, // TODO: + // execution_model_type: ??, // TODO: + // input_deadline: ??, // TODO: + // availability_duration: ??, // TODO: } #[derive(Message, Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]