Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add big integer opcode #4040

Closed
Tracked by #510
kevaundray opened this issue Jan 15, 2024 · 4 comments
Closed
Tracked by #510

Add big integer opcode #4040

kevaundray opened this issue Jan 15, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@kevaundray
Copy link
Contributor

Problem

These opcodes will allow us to implement big group, which would in turn allow us to implement higher level primitives like ecdsa

Happy Case

Add BigIntAdd, BigIntNeg, BigIntMul, BigIntInv

Alternatives Considered

No response

Additional Context

We should be careful about BigIntInv and think about whether we want to just limit the bigint modulus to be prime

Would you like to submit a PR for this Issue?

No

Support Needs

No response

@kevaundray kevaundray added the enhancement New feature or request label Jan 15, 2024
@kevaundray kevaundray added this to the 1.0 milestone Jan 15, 2024
@guipublic
Copy link
Contributor

Should we rather have BigIntDiv instead of BigIntInv?
BigIntDiv works for non prime modulus as well.

@kevaundray
Copy link
Contributor Author

Should we rather have BigIntDiv instead of BigIntInv?
BigIntDiv works for non prime modulus as well.

Yep lets go with Div!

guipublic added a commit to AztecProtocol/aztec-packages that referenced this issue Jan 24, 2024
Adds the biginteger opcode skeleton
noir-lang/noir#4040

The PR adds ACIR opcodes for bigint operations. It does not provide any
implantation of the opcodes, neither in BB, in the solver or in Brillig.

---------

Co-authored-by: kevaundray <kevtheappdev@gmail.com>
AztecBot pushed a commit that referenced this issue Jan 24, 2024
Adds the biginteger opcode skeleton
#4040

The PR adds ACIR opcodes for bigint operations. It does not provide any
implantation of the opcodes, neither in BB, in the solver or in Brillig.

---------

Co-authored-by: kevaundray <kevtheappdev@gmail.com>
AztecBot pushed a commit to AztecProtocol/barretenberg that referenced this issue Jan 25, 2024
Adds the biginteger opcode skeleton
noir-lang/noir#4040

The PR adds ACIR opcodes for bigint operations. It does not provide any
implantation of the opcodes, neither in BB, in the solver or in Brillig.

---------

Co-authored-by: kevaundray <kevtheappdev@gmail.com>
@TomAFrench TomAFrench reopened this Jan 30, 2024
@TomAFrench
Copy link
Member

Reopening as the opcode doesn't have an implementation in ACVM

@Savio-Sou
Copy link
Collaborator

Closed with AztecProtocol/aztec-packages#4415.

michaelelliot pushed a commit to Swoir/noir_rs that referenced this issue Feb 28, 2024
Adds the biginteger opcode skeleton
noir-lang/noir#4040

The PR adds ACIR opcodes for bigint operations. It does not provide any
implantation of the opcodes, neither in BB, in the solver or in Brillig.

---------

Co-authored-by: kevaundray <kevtheappdev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

4 participants