encryptogroup / MOTION

An efficient, user-friendly, modular, and extensible framework for mixed-protocol secure multi-party computation with two or more parties
MIT License
85 stars 40 forks source link

How do you convert a publicly known constant value into a share? #11

Closed benjaminrsherman closed 2 years ago

benjaminrsherman commented 2 years ago

If there's a value which is publicly known by all parties (e.g. a loop counter), is it possible to convert this into a Share without using Party::In() to provide the value as input from a specific party?

Oleksandr-Tkachenko commented 2 years ago

It is possible for arithmetic constants via Party::In<...kArithmeticConstant>(...). No boolean constants yet unfortunately.