Skip to content

Conversation

anim001k
Copy link

Description

  • What: Replace expect("division by zero") with Err(SynthesisError::Unsatisfiable) when cs == ConstraintSystemRef::None in mul_by_inverse_unchecked.
  • Why: Prevents unexpected panics in library code and aligns behavior with the witness branch (which doesn’t panic).
  • Behavior change: Constant division by zero now returns an error instead of panicking.

@anim001k anim001k requested a review from a team as a code owner August 10, 2025 17:34
@anim001k anim001k requested review from z-tech, Pratyush and weikengchen and removed request for a team August 10, 2025 17:34
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