Skip to content

namespace barretenberg #475

@codygunton

Description

@codygunton

Right now I think there is no real utility in having this namespace, and it should be split up, for instance, into ecc, polynomial, srs, bn254, grumpkin, secp256k1 and secp256r1. This is not urgent, but it has come up recently because of the asymmetry between barretenberg::fr/fq and grumpkin::fr/fq. Functions used for bn254 and grumpkin are being put in the barretenberg namespace, which is sort of awkward. Also, it's not like "barretenberg" is convenient to type, and it would surely be clearer people newly looking at the code to see bn254::fr in various places rather than barretenberg::fr.

What we should do is put everything in /src/barretenberg into the namespace barretenberg, and then we should move some things such as barretenberg::fr farther up the namespace chain.

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