Files
PageSigner/core/twopc/Evaluator.js
themighty1 79173c511e - use Salsa20 instead of tweetnacl-js's secretbox for a 30% garbling speedup in the browser.
- implement garbled row reduction GRR3 for 25% bandwidth saving
- implement KOS15 OT extension
- linting
2022-01-17 10:18:04 +03:00

15 lines
350 B
JavaScript

export class Evaluator{
constructor(parent){
// s is the current session
this.s = parent;
}
async evaluateBatch(batch, cNo){
const outputs = await this.s.workers[cNo].evaluateBatch(batch);
const parsed = [];
for (let i=0; i < batch.length; i++){
parsed.push(new Uint8Array(outputs[i]));
}
return parsed;
}
}