Skip to content

fix: wrong gate count in last chunk of boolean_circuit_garble#453

Open
eeemmmmmm wants to merge 1 commit intoProjectZKM:mainfrom
eeemmmmmm:fix/garble-remainder-bytes
Open

fix: wrong gate count in last chunk of boolean_circuit_garble#453
eeemmmmmm wants to merge 1 commit intoProjectZKM:mainfrom
eeemmmmmm:fix/garble-remainder-bytes

Conversation

@eeemmmmmm
Copy link
Contributor

remainder_bytes was initialized with base.to_le_bytes() instead of remainder.to_le_bytes() (copy-paste error from line above).

This caused the last syscall to receive wrong gate count, potentially skipping gates when num_gates doesn't divide evenly into chunks.

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

Successfully merging this pull request may close these issues.

1 participant