From 4d920ab96c210c7aa69a59e100f66f2085e596f6 Mon Sep 17 00:00:00 2001 From: f7ed Date: Thu, 26 Sep 2024 15:06:21 +0800 Subject: [PATCH] minor --- libspu/mpc/shamir/conversion.cc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/libspu/mpc/shamir/conversion.cc b/libspu/mpc/shamir/conversion.cc index f28e3e98..b55b21d7 100644 --- a/libspu/mpc/shamir/conversion.cc +++ b/libspu/mpc/shamir/conversion.cc @@ -66,13 +66,6 @@ NdArrayRef wrap_mul_p(SPUContext* ctx, const NdArrayRef& x, const NdArrayRef& y) return UnwrapValue(mul_aa_p(ctx, WrapValue(x), WrapValue(y))); } -void reveal(SPUContext* ctx, const NdArrayRef& x, std::string_view name) { - auto x_p = wrap_a2p(ctx, x); - if(ctx->getState()->getRank() == 0) { - ring_print(x_p, name); - } -} - NdArrayRef wrap_mul(SPUContext* ctx, const NdArrayRef& x, const NdArrayRef& y) { if (is_public(x) && is_public(y)) { return UnwrapValue(mul_pp(ctx, WrapValue(x), WrapValue(y))); @@ -816,9 +809,6 @@ NdArrayRef MulAATrunc::proc(KernelEvalContext* ctx, const NdArrayRef& x, const N } r_2t = wrap_add(sctx, r_2t, zero_shares); - reveal(sctx, r, "r"); - reveal(sctx, r_2t, "r_2t"); - // k2 = 2^(l-2) auto k2 =