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

Replace the use of maxBitLength #288

Open
GuutBoy opened this issue May 15, 2018 · 1 comment
Open

Replace the use of maxBitLength #288

GuutBoy opened this issue May 15, 2018 · 1 comment
Labels
Status: Pending Issues not currently being solved. Type: Bug Bug related issues.

Comments

@GuutBoy
Copy link
Contributor

GuutBoy commented May 15, 2018

Currently we use the maxBitLength variable in numeric protocol suites such as SPDZ to set an upper limit on the maximum bit length of numbers that will be represented in an MPC computation. This is then used in protocols such as comparison where such a limit must be known.

There are a number of problems with the way maxBitLength is used, among others:

  • It is not clear how to safely set maxBitLength. For example for comparison it must be set no higher than modBitLength - 60 and in some cases modBitLength/2 - 60 (which relates to an other magical constant). However, this is not documented or enforced.
  • There is essentially no validation/exception handling on maxBitLength meaning that when set wrongly, FRESCO will fail in mysterious ways.
  • maxBitLength is only set once when initializing the protocol suite. However, there is no reason it could not be specified when actually performing the operations that needs it. This could potentially give some performance improvements as well (i.e., by not having the same value of maxBitLength through out an entire MPC computation).
@jot2re
Copy link
Collaborator

jot2re commented Nov 22, 2022

This is somewhat relates to issue #222

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Pending Issues not currently being solved. Type: Bug Bug related issues.
Projects
None yet
Development

No branches or pull requests

2 participants