@@ -122,7 +122,7 @@ func NewShufflingProtocol(n *onet.TreeNodeInstance) (onet.ProtocolInstance, erro
122
122
// Start is called at the root node and starts the execution of the protocol.
123
123
func (p * ShufflingProtocol ) Start () error {
124
124
125
- // shufflingStart := libunlynx.StartTimer(p.Name() + "_Shuffling(START)")
125
+ shufflingStart := libunlynx .StartTimer (p .Name () + "_Shuffling(START)" )
126
126
127
127
if p .ShuffleTarget == nil {
128
128
return errors .New ("no map given as shuffling target" )
@@ -153,14 +153,14 @@ func (p *ShufflingProtocol) Start() error {
153
153
154
154
libunlynx .EndTimer (shufflingStartNoProof )
155
155
156
- // shufflingStartProof := libunlynx.StartTimer(p.Name() + "_Shuffling(START-Proof)")
156
+ shufflingStartProof := libunlynx .StartTimer (p .Name () + "_Shuffling(START-Proof)" )
157
157
158
158
if p .Proofs {
159
159
p .ProofFunc (shuffleTarget , shuffledData , collectiveKey , beta , pi )
160
160
}
161
161
162
- // libunlynx.EndTimer(shufflingStartProof)
163
- // libunlynx.EndTimer(shufflingStart)
162
+ libunlynx .EndTimer (shufflingStartProof )
163
+ libunlynx .EndTimer (shufflingStart )
164
164
165
165
p .ExecTimeStart += time .Since (timer )
166
166
@@ -186,7 +186,7 @@ func (p *ShufflingProtocol) Dispatch() error {
186
186
shuffleTarget := sm .Data
187
187
188
188
timer := time .Now ()
189
- // shufflingDispatch := libunlynx.StartTimer(p.Name() + "_Shuffling(DISPATCH)")
189
+ shufflingDispatch := libunlynx .StartTimer (p .Name () + "_Shuffling(DISPATCH)" )
190
190
191
191
collectiveKey := p .Roster ().Aggregate
192
192
// when testing protocol
@@ -203,19 +203,19 @@ func (p *ShufflingProtocol) Dispatch() error {
203
203
var beta [][]kyber.Scalar
204
204
205
205
if ! p .IsRoot () {
206
- // shufflingDispatchNoProof := libunlynx.StartTimer(p.Name() + "_Shuffling(DISPATCH-noProof)")
206
+ shufflingDispatchNoProof := libunlynx .StartTimer (p .Name () + "_Shuffling(DISPATCH-noProof)" )
207
207
208
208
shuffledData , pi , beta = libunlynxshuffle .ShuffleSequence (shuffleTarget , libunlynx .SuiTe .Point ().Base (), collectiveKey , p .Precomputed )
209
209
210
- // libunlynx.EndTimer(shufflingDispatchNoProof)
210
+ libunlynx .EndTimer (shufflingDispatchNoProof )
211
211
212
- // shufflingDispatchProof := libunlynx.StartTimer("_Shuffling(DISPATCH-Proof)")
212
+ shufflingDispatchProof := libunlynx .StartTimer ("_Shuffling(DISPATCH-Proof)" )
213
213
214
214
if p .Proofs {
215
215
p .ProofFunc (shuffleTarget , shuffledData , collectiveKey , beta , pi )
216
216
}
217
217
218
- // libunlynx.EndTimer(shufflingDispatchProof)
218
+ libunlynx .EndTimer (shufflingDispatchProof )
219
219
220
220
}
221
221
@@ -227,7 +227,7 @@ func (p *ShufflingProtocol) Dispatch() error {
227
227
log .Lvl1 (p .ServerIdentity (), " carried on shuffling." )
228
228
}
229
229
230
- // libunlynx.EndTimer(shufflingDispatch)
230
+ libunlynx .EndTimer (shufflingDispatch )
231
231
232
232
// If this tree node is the root, then protocol reached the end.
233
233
if p .IsRoot () {
0 commit comments