privacy-scaling-explorations / mpz

Multi-party computation libraries written in Rust 🦀
215 stars 44 forks source link

refactor(mpz-ot): Normalize OT and ideal functionalities #122

Closed sinui0 closed 6 months ago

sinui0 commented 7 months ago

This PR normalizes our OT interfaces as well as completely reimplements our ideal functionality abstraction.

Nothing here touches the security critical logic of any of the OT implementations. This is purely a clean up and testing utilities.

Changes

sinui0 commented 6 months ago

What is the benefit of adding an extra encapsulation layer for the OT return types in the traits?

It just provides stronger typing and a way to document what each field is. It's better to have the types defined in mpz-ot-core and the traits inmpz-ot work with them