-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Fix circulars in foundation. Also cleanup fields and optimise …
…to be buffer underlying. (#3351) * Fixes circulars imports in foundation so formatting no longer warns. * Address *some* circular imports in `acir-simulator`. * Reworks field classes Fr, Fq and GrumpkinScalar. * There is a BaseField class capturing common instance code. * There are free functions capturing common static construction code. * Fr and Fq are implemented in terms of BaseField and free functions. * Fq supports construction and output of hi/lo Fr's. * GrumpkinScalar is aliased to just be an Fq. * AztecAddress is now just an extension of Fr that enforces 32 byte buffer input. * I meddled with `ZERO` and `zero()` a bit so there are some changes around this that are noops. * Disables `guides-up-quick-start` as failing since CI fix. * JSON-RPC class converter now checks full prototype chain for methods.
- Loading branch information
1 parent
52b95f6
commit c4bf8d3
Showing
76 changed files
with
55,218 additions
and
2,625 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { WitnessMap } from '@noir-lang/acvm_js'; | ||
|
||
/** | ||
* ACVMField | ||
*/ | ||
export type ACVMField = string; | ||
|
||
/** | ||
* The format for witnesses of the ACVM. | ||
*/ | ||
export type ACVMWitness = WitnessMap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from './acvm.js'; | ||
export * from './acvm_types.js'; | ||
export * from './deserialize.js'; | ||
export * from './oracle/index.js'; | ||
export * from './serialize.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.