From ee62137844fb88e00c9e6804b3cf59682ebaa38e Mon Sep 17 00:00:00 2001 From: zhdllwyc Date: Tue, 30 Aug 2022 00:43:01 -0500 Subject: [PATCH] update folder name --- tss/ecdsa/{ot => dkls}/fmul/fmulLocal.go | 8 ++++++++ tss/ecdsa/{ot => dkls}/fmul/fmulParty.go | 0 tss/ecdsa/{ot => dkls}/fmul/fmul_test.go | 8 -------- 3 files changed, 8 insertions(+), 8 deletions(-) rename tss/ecdsa/{ot => dkls}/fmul/fmulLocal.go (96%) rename tss/ecdsa/{ot => dkls}/fmul/fmulParty.go (100%) rename tss/ecdsa/{ot => dkls}/fmul/fmul_test.go (95%) diff --git a/tss/ecdsa/ot/fmul/fmulLocal.go b/tss/ecdsa/dkls/fmul/fmulLocal.go similarity index 96% rename from tss/ecdsa/ot/fmul/fmulLocal.go rename to tss/ecdsa/dkls/fmul/fmulLocal.go index dd7ae2bd5..0ad7d13ae 100644 --- a/tss/ecdsa/ot/fmul/fmulLocal.go +++ b/tss/ecdsa/dkls/fmul/fmulLocal.go @@ -10,6 +10,14 @@ import ( "golang.org/x/sync/errgroup" ) +// Input: myGroup, the group we operate in +// Input: securityParameter +// Output: The number of SimOT needed +func DecideNumOT(myGroup group.Group, sp int) int { + numSimOT := int(myGroup.Params().ScalarLength*8) + sp + return numSimOT +} + // ---- Sender Initialization ---- // Input: myGroup, the group we operate in diff --git a/tss/ecdsa/ot/fmul/fmulParty.go b/tss/ecdsa/dkls/fmul/fmulParty.go similarity index 100% rename from tss/ecdsa/ot/fmul/fmulParty.go rename to tss/ecdsa/dkls/fmul/fmulParty.go diff --git a/tss/ecdsa/ot/fmul/fmul_test.go b/tss/ecdsa/dkls/fmul/fmul_test.go similarity index 95% rename from tss/ecdsa/ot/fmul/fmul_test.go rename to tss/ecdsa/dkls/fmul/fmul_test.go index 896983cdf..ca8ebefd6 100644 --- a/tss/ecdsa/ot/fmul/fmul_test.go +++ b/tss/ecdsa/dkls/fmul/fmul_test.go @@ -15,14 +15,6 @@ import ( const testFmulCount = 50 -// Input: myGroup, the group we operate in -// Input: securityParameter -// Output: The number of SimOT needed -func DecideNumOT(myGroup group.Group, sp int) int { - numSimOT := int(myGroup.Params().ScalarLength*8) + sp - return numSimOT -} - // Input: aInput, bInput, the private input from both sender and receiver // Input: myGroup, the group we operate in // Input: n, the total number of SimOT