Skip to content

Better templating of gates #557

@maramihali

Description

@maramihali

To make Honk work on Grumpkin we have to template the gates in https://github.com/AztecProtocol/barretenberg/blob/master/cpp/src/barretenberg/proof_system/arithmetization/gate_data.hpp. Right know, to create as little friction as possible, each gate is foo_gate_<FF> and aliased foo_gate = foo_gate_<barretenberg::fr> because the majority of the codebase uses bn254. Ideally, to avoid having foo_gate and foo_gate_grumpkin we'd just want to make the gate type explicit because the structures in the file are primarily only used as function arguments (rather than being repeated in many palces). Moreover, the read/write operations only work with bn254 and this needs to be addressed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions