perf: preprocess concurrently to mpc-tls #942
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(This PR is not in a finished form, it may need some polishing and test)
This PR introduces concurrent preprocessing alongside MPC‑TLS.
Currently, this feature benefits mostly preprocessing the OT setup for QuickSilver, since the execution of QS starts only at the very end of MPC-TLS.
The following changes were made to accommodate this feature:
mpz changes
in this branch: refactor/zk_expose_ot_handle
(I'll discuss the changes here to keep the discussion in one place)
Expose OT handles to the ZK prover and verifier.
Support multiple independent contexts sharing a single yamux muxer with unique thread/stream IDs.
tlsn changes (in this PR)
Add a "limited" mode to the DEAP VM (better naming is welcome)
Auxiliary‐future polling
KOS‑driven OT for key exchange
Benchmarks
The improvements start to show when the server payload size is sufficiently large, i.e > 10KB. For a 20KB payload the improvement was ~15%.