Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Threading Refactor #165

Merged
merged 34 commits into from
Jun 25, 2024
Merged

Threading Refactor #165

merged 34 commits into from
Jun 25, 2024

Conversation

sinui0
Copy link
Collaborator

@sinui0 sinui0 commented Jun 25, 2024

No description provided.

@sinui0 sinui0 marked this pull request as ready for review June 25, 2024 03:21
@sinui0 sinui0 requested review from themighty1 and th4s June 25, 2024 03:28
@sinui0
Copy link
Collaborator Author

sinui0 commented Jun 25, 2024

/rebase

2 similar comments
@sinui0
Copy link
Collaborator Author

sinui0 commented Jun 25, 2024

/rebase

@sinui0
Copy link
Collaborator Author

sinui0 commented Jun 25, 2024

/rebase

sinui0 and others added 24 commits June 25, 2024 11:56
* feat: mpz-common

* reduce visibility of test module

* pr feedback
* Adds an ideal ROT functionality to mpz-ot-core

* Update ot/mpz-ot-core/src/ideal/ideal_rot.rs

Derive Debug for IdealROT

Co-authored-by: sinu.eth <[email protected]>

* Add feedback

* Add more feedback

---------

Co-authored-by: sinu.eth <[email protected]>
* add transfer id

* update co15 and kos15

* add Output type

* feat(mpz-common): ideal functionality utils

* refactor ideal functionalities and traits

* pr feedback

* impl ideal rot

* Update crates/mpz-ot/src/ideal/rot.rs

Co-authored-by: th4s <[email protected]>

---------

Co-authored-by: th4s <[email protected]>
* delete obsolete module

* export test-utils and add ideal COT tests
* feat(mpz-common): simple counter

* add derives
* refactor(mpz-garble-core): batched garbling

* Apply suggestions from code review

Co-authored-by: th4s <[email protected]>
Co-authored-by: dan <[email protected]>

* qualify comment

* remove unused msg module

* comments

---------

Co-authored-by: th4s <[email protected]>
Co-authored-by: dan <[email protected]>
* Add generic support for ideal random OT.

* Add crate `mpz-ole-core`.

* Improved ideal ROT implementation and adapted tests in `mpz-ole-core`.

* Remove unnecessary comment.

* Add feedback.

* Added `Serialize` and `Deserialize` for message types.

* Return `Option` instead of `Result`.

* Remove unused error enum.

* Add transfer id.

* Added using `TransferId` in new batch types.

* Use `split_off` instead of `drain`.

* Return correct number of OLEs from `consume`.

* Use `VecDeque` for cache and please clippy.

* Use `hybrid-array` and get rid of const generics.

* Apply suggestions for improving comments

Co-authored-by: dan <[email protected]>

* Remove `ByteRepr` from `Field` trait.

* Move from `MaskedInput` to `MaskedCorrelation` mental model.

* Simplify array creation in `core/sender.rs`.

* Add more feedback.

- Add default for `BIT_SIZE`
- Rename `BitSizeType` -> `BitSize`.

* Add comment about which function is evaluated.

Co-authored-by: dan <[email protected]>

---------

Co-authored-by: dan <[email protected]>
* feat(mpz-common): mt executor

* separate context from executor

* full mt implementation with queues

* remove unused dep

* re-enable lints

* remove queue, fix bug

* bump tlsn-utils

* use TestFramedMux

* update test
* Add `mpz-ole` content of old branch.

* Reworked message enum.

* Refactored to work with new `mpz-ole-core`.

* Add part of feedback.

* Add more feedback.

* Add opaque error type.

* Add `Display` for `OLEErrorKind`

* Use `ok_or_elese` for lazy heap alloc.

* Adapted `mpz-ole` to `hybrid-array`.

* WIP: Improving API of const generics...

* Add random OT for `hybrid-array`.

* Adapt `mpz-ole` to use new random OT.

* Added feedback.

* Use random OT over field elements instead of arrays.

* Refactored ideal implementation to use `mpz-common`.

* Added more feedback.
* feat(mpz-common): Context::blocking

* Apply suggestions from code review

Co-authored-by: dan <[email protected]>

---------

Co-authored-by: dan <[email protected]>
* WIP: Reimplementing `mpz-share-conversion-core`...

- Remove `mpz-share-conversion` IO for now.
- Remove unnecessary features in `mpz-share-conversion-core`.

* Added A2M conversion methods.

* Implemented A2M, added tests and ideal functionalities.

* Fix typo.

* Improved comments.

* Apply suggestions from code review

Co-authored-by: sinu.eth <[email protected]>

* Add more feedback.

* Improve comment.

Co-authored-by: dan <[email protected]>

* Use deterministic seed for ideal functionalities.

---------

Co-authored-by: sinu.eth <[email protected]>
Co-authored-by: dan <[email protected]>
* refactor(mpz-garble): fix threading breaking changes

* Update crates/mpz-garble/src/protocol/deap/vm.rs

Co-authored-by: dan <[email protected]>

---------

Co-authored-by: dan <[email protected]>
* refactor(mpz-share-conversion): threading refactor

* use default seed
* feat(mpz-common): async sync primitives

* update syncer test

* add unsync lock method

* update async syncer test
sinui0 added 8 commits June 25, 2024 11:56
* feat(mpz-garble): pre-commit inputs

* fix(mpz-garble): benchmark (#151)

* handle commit errors

* Revert "handle commit errors"

This reverts commit 983f968.

* add comment
* refactor: KOS and preprocessing traits

* add bounds to preprocess error

* rename pd field
* fix(mpz-common): flush io in syncer

* join futures
* fix(mpz-garble): add thread id to otp ids
@sinui0 sinui0 force-pushed the threading-refactor branch from a560fff to 836ad67 Compare June 25, 2024 18:56
@sinui0 sinui0 force-pushed the threading-refactor branch from bce2522 to 197d9e8 Compare June 25, 2024 21:17
@sinui0 sinui0 force-pushed the threading-refactor branch from 197d9e8 to e25d123 Compare June 25, 2024 21:20
@sinui0 sinui0 merged commit b8ae7ac into dev Jun 25, 2024
3 checks passed
@themighty1
Copy link
Collaborator

ACK

Copy link
Member

@th4s th4s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 ack

@sinui0 sinui0 deleted the threading-refactor branch June 26, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants