Skip to content
Snippets Groups Projects
Commit af2f83eb authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

fixes to comments

parent 6bd26a5b
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,7 @@ func GenerateRounds(nodeCount int, BatchSize uint64, ...@@ -109,7 +109,7 @@ func GenerateRounds(nodeCount int, BatchSize uint64,
} }
maxInt := grp.NewMaxInt() maxInt := grp.NewMaxInt()
// RunFirstNode the GENERATION step // Run the GENERATION step
generations := make([]*services.ThreadController, nodeCount) generations := make([]*services.ThreadController, nodeCount)
for i := 0; i < nodeCount; i++ { for i := 0; i < nodeCount; i++ {
// Since round.Z is generated on creation of the Generation precomp, // Since round.Z is generated on creation of the Generation precomp,
...@@ -344,7 +344,7 @@ func MultiNodePrecomp(nodeCount int, BatchSize uint64, ...@@ -344,7 +344,7 @@ func MultiNodePrecomp(nodeCount int, BatchSize uint64,
//go DecryptPermuteTranslate(decrypts[nodeCount-1].OutChannel, //go DecryptPermuteTranslate(decrypts[nodeCount-1].OutChannel,
// permutes[0].InChannel) // permutes[0].InChannel)
// RunFirstNode Share -- Then save the result to both rounds // Run Share -- Then save the result to both rounds
// Note that the outchannel for N1Share is the input channel for N2share // Note that the outchannel for N1Share is the input channel for N2share
shareMsg := services.Slot(&precomputation.SlotShare{ shareMsg := services.Slot(&precomputation.SlotShare{
PartialRoundPublicCypherKey: grp.GetGCyclic()}) PartialRoundPublicCypherKey: grp.GetGCyclic()})
...@@ -593,7 +593,7 @@ func PrecompIterations(nodeCount int, batchSize uint64, iterations int) { ...@@ -593,7 +593,7 @@ func PrecompIterations(nodeCount int, batchSize uint64, iterations int) {
*/ */
} }
// RunFirstNode realtime simulation for given number of of iterations // Run realtime simulation for given number of of iterations
func RealtimeIterations(nodeCount int, batchSize uint64, iterations int) { func RealtimeIterations(nodeCount int, batchSize uint64, iterations int) {
/* prime := large.NewInt(0) /* prime := large.NewInt(0)
prime.SetString(PRIME, 16) prime.SetString(PRIME, 16)
......
...@@ -43,7 +43,7 @@ func init() { ...@@ -43,7 +43,7 @@ func init() {
var benchmarkCmd = &cobra.Command{ var benchmarkCmd = &cobra.Command{
Use: "benchmark", Use: "benchmark",
Short: "Server benchmarking tests", Short: "Server benchmarking tests",
Long: "RunFirstNode internal benchmark funcs by specifying node & batch sizes", Long: "Run internal benchmark funcs by specifying node & batch sizes",
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("Running benchmarks for %d nodes with %d batch "+ fmt.Printf("Running benchmarks for %d nodes with %d batch "+
"size and %d iterations...\n", nodeCount, "size and %d iterations...\n", nodeCount,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment