mirror of
https://github.com/tlsnotary/PageSigner.git
synced 2026-01-08 22:27:57 -05:00
- implement garbled row reduction GRR3 for 25% bandwidth saving - implement KOS15 OT extension - linting
15 lines
350 B
JavaScript
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;
|
|
}
|
|
} |