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

When the compile option is -B 64 the expected output is incorrect #1561

Open
HopeDevote opened this issue Dec 24, 2024 · 0 comments
Open

When the compile option is -B 64 the expected output is incorrect #1561

HopeDevote opened this issue Dec 24, 2024 · 0 comments

Comments

@HopeDevote
Copy link

HopeDevote commented Dec 24, 2024

Hello,
I found that when the compile option is -B 64, the expected output is incorrect.

Relpay

test.mpc

sfix.set_precision(32, 63)
a = sint(1)
b = sint(9)
c = sint(3)

a.update(c)
d = b > sfix(8)
b.update(d)


total = a + b + c
print_ln('total: %s', total.reveal())
  1. ./compile.py -B 64 test
  2. ./Scripts/decompile.py test
    The output result is 6, not the expected output result 7
Using statistical security parameter 40
total: 6
Significant amount of unused triples of Tinier distorting the benchmark. This protocol has a large minimum batch size, which makes this unavoidable for small programs.
The following benchmarks are including preprocessing (offline phase).
Time = 0.0515385 seconds
Data sent = 1.47138 MB in ~111 rounds (party 0 only; use '-v' for more details)
Global data sent = 2.94276 MB (all parties)

What is the cause of this? Isn't sfix setting precision enough?

@HopeDevote HopeDevote changed the title When the compile option is -B 64 -c log, the expected output is incorrect When the compile option is -B 64 the expected output is incorrect Dec 26, 2024
@HopeDevote HopeDevote reopened this Dec 26, 2024
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

No branches or pull requests

1 participant