Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use trait to define backend #114

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Use trait to define backend #114

wants to merge 6 commits into from

Conversation

lopeetall
Copy link
Contributor

@lopeetall lopeetall commented Jun 22, 2023

Addressing

This PR includes a definition of a BackendCompiler trait, and the trait is implemented for the Plonk backend.

The BackendCompiler trait requires functions which take the base cases of three-address code operations (e.g. var + const = var) and adds them to a circuit. Operations which can be derived from the base cases algebraically do not nee to be implemented (e.g. var - const = var can be derived from the earlier case).

Only base-case arithmetic operations are required by the trait at the moment.

Marked as draft until the Halo2 backend is implemented as a BackendCompiler.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant