From e9c88136764adc960aa5c3a23f9f8bc2ef292d8f Mon Sep 17 00:00:00 2001 From: crStiv Date: Sat, 26 Jul 2025 21:05:59 +0200 Subject: [PATCH 1/5] Update Server.cpp --- BMR/network/Server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMR/network/Server.cpp b/BMR/network/Server.cpp index c5263df8..1f448980 100644 --- a/BMR/network/Server.cpp +++ b/BMR/network/Server.cpp @@ -122,7 +122,7 @@ void Server::_listen_to_client(int id){ // printf("Server:: received %d: \n", msg_len); _updatable->NewMsg(msg, &_clients_addr[id]); } - printf("stop listenning to %d\n", id); + printf("stop listening to %d\n", id); } bool Server::_handle_recv_len(int id, size_t actual_len, size_t expected_len) { From 3060aa6355401cc3ac7ce93dd46a95b36a850264 Mon Sep 17 00:00:00 2001 From: crStiv Date: Sat, 26 Jul 2025 21:06:11 +0200 Subject: [PATCH 2/5] Update Party.h --- BMR/Party.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMR/Party.h b/BMR/Party.h index 78d95e4e..1c407dc3 100644 --- a/BMR/Party.h +++ b/BMR/Party.h @@ -21,7 +21,7 @@ #include "Tools/Worker.h" #define SERVER_ID (0) -#define INPUT_KEYS_MSG_TYPE_SIZE (16) // so memory will by alligned +#define INPUT_KEYS_MSG_TYPE_SIZE (16) // so memory will by aligned #ifndef N_EVAL_THREADS // Default Intel desktop processor has 8 half cores. From e8312b980cbe37efb6e91d05b7023a0473008a77 Mon Sep 17 00:00:00 2001 From: crStiv Date: Sat, 26 Jul 2025 21:08:11 +0200 Subject: [PATCH 3/5] Update types.py --- Compiler/GC/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Compiler/GC/types.py b/Compiler/GC/types.py index 3c396a88..a741f886 100644 --- a/Compiler/GC/types.py +++ b/Compiler/GC/types.py @@ -499,7 +499,7 @@ class sbits(bits): res = cls() inst.inputb(player, n_bits, 0, res) return res - # compatiblity to sint + # compatibility to sint get_raw_input_from = get_input_from @classmethod def load_dynamic_mem(cls, address): From 26abe35dd3641761c5cdffff6e198ce539052cf8 Mon Sep 17 00:00:00 2001 From: crStiv Date: Sat, 26 Jul 2025 21:13:33 +0200 Subject: [PATCH 4/5] Update comparison.py --- Compiler/comparison.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Compiler/comparison.py b/Compiler/comparison.py index e0584300..0adae68a 100644 --- a/Compiler/comparison.py +++ b/Compiler/comparison.py @@ -412,7 +412,7 @@ def BitLTC1(u, a, b): return p, a_bits, d, s, t, c, b, pre_input def carry(b, a, compute_p=True): - """ Carry propogation: + """ Carry propagation: return (p,g) = (p_2, g_2)o(p_1, g_1) -> (p_1 & p_2, g_2 | (p_2 & g_1)) """ if a is None: From e88254f1d9968fa21a42b258619d492459f4e994 Mon Sep 17 00:00:00 2001 From: crStiv Date: Sat, 26 Jul 2025 21:14:49 +0200 Subject: [PATCH 5/5] Update compilerLib.py --- Compiler/compilerLib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Compiler/compilerLib.py b/Compiler/compilerLib.py index f8b09020..867480f7 100644 --- a/Compiler/compilerLib.py +++ b/Compiler/compilerLib.py @@ -187,7 +187,7 @@ class Compiler: "--prime", dest="prime", default=defaults.prime, - help="use bit decomposition with a specifed prime modulus " + help="use bit decomposition with a specified prime modulus " "for non-linear computation (default: use the masking approach). " "Don't use this unless you're certain that you need it.", ) @@ -432,7 +432,7 @@ class Compiler: class dummy: def __init__(self, *args): raise CompilerError(self.error) - dummy.error = i + " not availabe with binary circuits" + dummy.error = i + " not available with binary circuits" if i in ("cint", "cfix"): dummy.error += ". See https://mp-spdz.readthedocs.io/en/" \ "latest/Compiler.html#Compiler.types." + i @@ -565,7 +565,7 @@ class Compiler: if not (hasattr(self, "compile_name") and hasattr(self, "compile_func")): raise CompilerError( "No function to compile. " - "Did you decorate a function with @register_fuction(name)?" + "Did you decorate a function with @register_function(name)?" ) self.prep_compile(self.compile_name) print(