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

ToRadixBE: polish error handling and align with brillig VM and AVM circuit #11295

Open
jeanmon opened this issue Jan 17, 2025 · 0 comments
Open
Assignees
Labels
C-avm Component: AVM related tickets (aka public VM)

Comments

@jeanmon
Copy link
Contributor

jeanmon commented Jan 17, 2025

Discrepancy with BrilligVM:

  • if radix > 256: no error is handled by brilligVM
  • if num_limbs < 1: no error is handled by brilligVM

Both BrilligVM and AVM TS simulator:

  • no explicit handling of error if radix == 0
  • no enforcement that radix == 2 whenever bit mode is activated (TS would hit an assert if radix > 2 with bit mode activated)

Note on radix ==1: Current code would return zero values which I think it is perfectly fine. Should we enforce radix > 1

Apply the above to the AVM circuit (possibly unconstrained).

@jeanmon jeanmon added the C-avm Component: AVM related tickets (aka public VM) label Jan 17, 2025
@jeanmon jeanmon self-assigned this Jan 17, 2025
@jeanmon jeanmon added this to A3 Jan 17, 2025
@github-project-automation github-project-automation bot moved this to Todo in A3 Jan 17, 2025
@jeanmon jeanmon moved this from Todo to In Progress in A3 Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-avm Component: AVM related tickets (aka public VM)
Projects
Status: In Progress
Development

No branches or pull requests

1 participant