-
Notifications
You must be signed in to change notification settings - Fork 234
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
feat(feature_branch): Private Kernel Circuit #2740
Merged
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
1ec82f1
add noir-private-kernel yarn member
kevaundray 1faa513
add initial private kernel circuit implementation
kevaundray 380bd94
move bugs/devex files out of noir project subfolder
kevaundray 6896db8
feat: Use constants_gen for constants (#2742)
sirasistant a572645
chore: Add barebones executeCircuit method for init circuit (#2747)
kevaundray 64590fa
chore: Workspace integration for the noir private kernel (#2753)
sirasistant 71d543a
chore: Initial code to generate ts code from Noir ABI (#2750)
kevaundray d5a14eb
feat: convert params to noir types (Noir private kernel) (#2760)
sirasistant c6c8e4b
feat: Add return type parsing for noir private kernel circuit (#2762)
sirasistant de628ee
chore: Use Noir javascript packages to execute the private kernel cir…
kevaundray 523d96a
chore: enable noir private kernel circuit init (#2781)
kevaundray 9cb2063
fix: adding missing pieces for PKC in noir (#2782)
sirasistant 9cb188d
make init have valid inputs
kevaundray 14917f7
add read_request_root_from_siblings wrapper method
kevaundray 26b92b1
BROKEN BROKEN NOIR BUG:
kevaundray 554df95
BUG BUG BUG SIMPLIFIED
kevaundray 4488ca1
WORKAROUND FOR BUG NOTED IN PREVIOUS COMMIT
kevaundray 4f18be3
update comment about reexporting tests
kevaundray 4c1b7b8
Add a from_u32 method for FunctionSelector
kevaundray bcc2b5c
add interop tests
kevaundray 4e4fe98
uncomment code as bug has been committed
kevaundray f0e2be6
add l2_to_l1_hash interop tests
kevaundray 362247b
chore: Change private-kernel init to use BoundedVec (#2800)
kevaundray 9235015
fix: mismatch in hashing for block hash
sirasistant d186c33
fix: comment out membership checks and fixed the remaining issues (#2…
sirasistant 01e16d7
Merge branch 'master' into feature_branch/private-kernel
sirasistant ba02adb
fix: update types for pending rr
sirasistant f310e2c
feat: inner private kernel in noir (#2931)
sirasistant 79c61fb
Merge branch 'master' into feature_branch/private-kernel
sirasistant 3c4282a
fix: rename private data tree after merge
sirasistant f1b938d
feat: Ordering circuit in noir (#2979)
sirasistant f494dd2
Merge branch 'master' into feature_branch/private-kernel
sirasistant e11a333
Merge branch 'master' into feature_branch/private-kernel
sirasistant c51ad01
feat: update to pedersen hash
sirasistant d460f9b
test: use snapshots
sirasistant 1979116
test: bump timeouts
sirasistant ca7c408
test: fix block building test
sirasistant a3a8811
test: bump bench timeout further
sirasistant 28ec608
fix: use pedersen for addr nullifier (#3027)
sirasistant e79724e
feat: uncomment read request membership check
sirasistant 8ebdec5
feat: fix contract membership check (#3034)
sirasistant 845c6bd
Merge branch 'master' into feature_branch/private-kernel
sirasistant b4aa42e
refactor: removed functions for bit decomposition
sirasistant c15c8d6
test: add smoke test for noir PKC
sirasistant cb245e7
Merge branch 'master' into feature_branch/private-kernel
sirasistant a491ab6
restore cpp kernel circuits
sirasistant c6f3c9b
chore: mock vks also in cpp
sirasistant ef78ae0
fix: revert vk hash changes
sirasistant 6e029f1
refactor: cleaned up some todos and unused fns
sirasistant 495bccc
chore: undo boxes changes
sirasistant cc3871f
Merge branch 'master' into feature_branch/private-kernel
sirasistant 67f4fd4
Merge branch 'master' into feature_branch/private-kernel
sirasistant 81a2aac
style: fix formatting from master
sirasistant b3aff3f
Merge branch 'master' into feature_branch/private-kernel
sirasistant File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@aztec/foundation/eslint'); |
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,3 @@ | ||
proofs/ | ||
Prover.toml | ||
Verifier.toml |
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,3 @@ | ||
src/crates | ||
src/target | ||
src/types |
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 @@ | ||
# Noir Private Kernel | ||
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,59 @@ | ||
{ | ||
"name": "@aztec/noir-private-kernel", | ||
"version": "0.1.0", | ||
"type": "module", | ||
"exports": { | ||
".": "./dest/index.js", | ||
"./types": "./dest/types/index.js" | ||
}, | ||
"scripts": { | ||
"build": "yarn clean && tsc -b", | ||
"build:dev": "tsc -b --watch", | ||
"clean": "rm -rf ./dest .tsbuildinfo", | ||
"formatting": "run -T prettier --check ./src && run -T eslint ./src", | ||
"formatting:fix": "run -T prettier -w ./src", | ||
"noir:build": "cd src && nargo compile --no-backend && rm -rf ./target/debug_*", | ||
"noir:types": "yarn ts-node --esm src/scripts/generate_ts_from_abi.ts", | ||
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --passWithNoTests" | ||
}, | ||
"inherits": [ | ||
"../package.common.json" | ||
], | ||
"jest": { | ||
"preset": "ts-jest/presets/default-esm", | ||
"moduleNameMapper": { | ||
"^(\\.{1,2}/.*)\\.m?js$": "$1" | ||
}, | ||
"testRegex": "./src/.*\\.test\\.(js|mjs|ts)$", | ||
"rootDir": "./src" | ||
}, | ||
"dependencies": { | ||
"@aztec/circuits.js": "workspace:^", | ||
"@aztec/foundation": "workspace:^", | ||
"@aztec/noir-compiler": "workspace:^", | ||
"@noir-lang/acvm_js": "^0.30.0", | ||
"@noir-lang/backend_barretenberg": "^0.7.10", | ||
"@noir-lang/noir_js": "^0.16.0", | ||
"@noir-lang/noirc_abi": "^0.16.0", | ||
"tslib": "^2.4.0" | ||
}, | ||
"devDependencies": { | ||
"@jest/globals": "^29.5.0", | ||
"@rushstack/eslint-patch": "^1.1.4", | ||
"@types/jest": "^29.5.0", | ||
"@types/node": "^18.7.23", | ||
"jest": "^29.5.0", | ||
"ts-jest": "^29.1.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.0.4" | ||
}, | ||
"files": [ | ||
"dest", | ||
"src", | ||
"!*.test.*" | ||
], | ||
"types": "./dest/index.d.ts", | ||
"engines": { | ||
"node": ">=18" | ||
} | ||
} |
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,10 @@ | ||
[workspace] | ||
members = [ | ||
"crates/private-kernel-lib", | ||
"crates/private-kernel-init", | ||
"crates/private-kernel-init-simulated", | ||
"crates/private-kernel-inner", | ||
"crates/private-kernel-inner-simulated", | ||
"crates/private-kernel-ordering", | ||
"crates/private-kernel-ordering-simulated", | ||
] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sir!!