Skip to content

Murisi/callbacks 0.4.0#1

Open
murisi wants to merge 3 commits intov0.4.0from
murisi/callbacks-0.4.0
Open

Murisi/callbacks 0.4.0#1
murisi wants to merge 3 commits intov0.4.0from
murisi/callbacks-0.4.0

Conversation

@murisi
Copy link
Collaborator

@murisi murisi commented Mar 17, 2026

While persuing the goal of using the bellpepper and bellman cryptographic libraries together, the Rust borrow checker started presenting errors. This was due to the fact the root and namespace methods of a ConstraintSystem return mutable references, and this was constraining how the bellpepper library could be used. This PR modifies root and namespace to take a callback (accepting a mutable reference) instead of just returning the mutable reference. Doing this allows more flexibility in bellpepper usage without actually changing any actual logic in the library. It should hopefully be provable that the new code is equivalent to the old code.

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