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

Added concatenated balance for nonzero constraint process #293

Closed
wants to merge 4 commits into from

Conversation

sifnoc
Copy link
Member

@sifnoc sifnoc commented Jun 3, 2024

I added an additional advice column for the concatenated balance, which combines more than two balances into one with shifted positions. For example, consider the following total balances:

  • (A) 0x0000000000000000000000000000000000000000000000000000000187094dba
  • (B) 0x00000000000000000000000000000000000000000000000000000001864e7f14

The concatenated balance appears as:

  • (C) 0x0000000000000000000000000000000000187094dba0000000000001864e7f14

There is an 84-bit shift between each balance.

Additionally, I introduced a constraint for the concatenated balances, formulated as ( C = (A << 83) + B ). However, it's not working as expected—there is an error when verifying the proof of commitment. It would be helpful if you could identify any missing components for the nonzero constraint in the plonkish backend in this PR.

I will convert this to a review once it is fixed.

@sifnoc
Copy link
Member Author

sifnoc commented Jun 5, 2024

This is replaced by #29

@sifnoc sifnoc closed this Jun 5, 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

Successfully merging this pull request may close these issues.

1 participant