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

unused value sent over the wire #161

Open
themighty1 opened this issue Apr 12, 2022 · 4 comments
Open

unused value sent over the wire #161

themighty1 opened this issue Apr 12, 2022 · 4 comments

Comments

@themighty1
Copy link

io->send_block(constant, 2);

constant[0] is sent to the evaluator. After that it is never used neither by the garbler nor by the evaluator.
Could you pls clarify the purpose of sending it and also the purpose of having it since it is never used.

@wangxiao1254
Copy link
Member

They are used in "public_label()", right?

@themighty1
Copy link
Author

Sorry for the noise, I was confused.

@themighty1
Copy link
Author

@wangxiao1254 , I'm still confused why the garbler does

constant[1] = constant[1] ^ delta;

after sending the public constants to the evaluator?
The parties now have different constant[1]s. One would think that the parties should have the same constants, no?

@themighty1 themighty1 reopened this Aug 1, 2022
@jacob14916
Copy link
Contributor

It's because halfgate_gen works by propagating the wire keys corresponding to zeros, so it expects the key for the "wire" of constant[1] if that wire were to be 0.

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

3 participants