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