noir-lang / noir

Noir is a domain specific language for zero knowledge proofs
https://noir-lang.org
Apache License 2.0
821 stars 177 forks source link

Rename stdlib's `bigint` as `altfield` #5349

Open Savio-Sou opened 3 days ago

Savio-Sou commented 3 days ago

Problem

There is currently the bigint.nr library in the standard library suite, which is an implementation of fixed modulo integers sized to a set of elliptic curves (e.g. BN254, secp256k1).

The library is also documented as "Big Integers" here: https://noir-lang.org/docs/noir/standard_library/bigint/

This has been confusing to Noir developers, who often misinterpret it as an arbitrarily-sized large integer type given how that the term "BigInt" is more commonly understood in other programming languages:

Happy Case

The library and the corresponding documentation should be renamed to something less confusing per general software development intuitions.

I am suggesting altfield but not necessarily feeling strongly about it, open to suggestions.

Project Impact

Nice-to-have

Impact Context

The confusing name have been inducing additional education and ecosystem frictions.

Would you like to submit a PR for this Issue?

None

Support Needs

No response