-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor, generics, bugfixes, and other nits (#23)
* feat(merkle-trees): update to noir v0.36.0 * feat(merkle-trees): wip * feat(merkle-trees): wip * feat(merkle-trees): wip * feat!: ready for noir 0.36.0 * fix: fix github actions noir version * fix(merkle-trees): fix bug in MT add function * fixing bug in MT implementation * feat: making MTs generic, wip * feat: making MTs generic, needs a test * done, this is it, this is the thing * done, this is it, this is the thing * done, this is it, this is the thing * changes according to PR, bumped Noir version too ahead of the 1.0.0-beta.0 release * changes according to PR, bumped Noir version too ahead of the 1.0.0-beta.0 release
- Loading branch information
1 parent
19da08d
commit 28044a7
Showing
44 changed files
with
1,021 additions
and
5,568 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 |
---|---|---|
@@ -1,49 +1,48 @@ | ||
name: main | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
changed-files: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
any_nr_changed: ${{ steps.changed-files.outputs.any_changed }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: tj-actions/changed-files@v44 | ||
id: changed-files | ||
with: | ||
files: | | ||
packages/**/*.{nr,toml} | ||
Nargo.toml | ||
changed-files: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
any_nr_changed: ${{ steps.changed-files.outputs.any_changed }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: tj-actions/changed-files@v44 | ||
id: changed-files | ||
with: | ||
files: | | ||
packages/**/*.{nr,toml} | ||
Nargo.toml | ||
style: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: yarn | ||
- uses: noir-lang/[email protected] | ||
with: | ||
toolchain: 0.36.0 | ||
- run: yarn | ||
- run: yarn check | ||
style: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: oven-sh/setup-bun@v2 | ||
with: | ||
bun-version: latest | ||
- uses: noir-lang/[email protected] | ||
with: | ||
toolchain: 0.39.0 | ||
- run: bun i | ||
- run: bun fmt | ||
|
||
test: | ||
needs: changed-files | ||
if: needs.changed-files.outputs.any_nr_changed == 'true' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: noir-lang/[email protected] | ||
with: | ||
toolchain: 0.36.0 | ||
- run: nargo test | ||
test: | ||
needs: changed-files | ||
if: needs.changed-files.outputs.any_nr_changed == 'true' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: noir-lang/[email protected] | ||
with: | ||
toolchain: 0.39.0 | ||
- run: nargo test |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"**/*.{js,json,md,nr,toml,yml,yaml}": "yarn fmt" | ||
"**/*.{js,json,md,nr,toml,yml,yaml}": "bun fmt" | ||
} |
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,7 +1,6 @@ | ||
# dependencies | ||
node_modules | ||
yarn.lock | ||
.yarn | ||
bun.lockb | ||
|
||
# github | ||
.github/ISSUE_TEMPLATE | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,2 +1,2 @@ | ||
[workspace] | ||
members = ["packages/ecdh", "packages/merkle-trees"] | ||
members = ["packages/ecdh", "packages/merkle-trees", "tests"] |
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 |
---|---|---|
|
@@ -11,8 +11,8 @@ | |
"fmt": "concurrently -c auto -n dprint,noirfmt 'dprint fmt' 'nargo fmt'", | ||
"postinstall": "husky && git config --local core.editor cat", | ||
"build": "nargo compile", | ||
"test": "npm run build && mocha && nargo test --workspace", | ||
"version:release": "changelogithub" | ||
"test": "bun run build && mocha && nargo test --workspace", | ||
"version:release": "bunx changelogithub" | ||
}, | ||
"keywords": [ | ||
"zk-kit", | ||
|
@@ -24,17 +24,15 @@ | |
"workspaces": [ | ||
"packages/*" | ||
], | ||
"packageManager": "[email protected]", | ||
"devDependencies": { | ||
"@commitlint/cli": "^19.3.0", | ||
"@commitlint/config-conventional": "^19.2.2", | ||
"@noir-lang/backend_barretenberg": "^0.30.0", | ||
"@noir-lang/noir_js": "^0.30.0", | ||
"@noir-lang/noir_wasm": "^0.32.0", | ||
"@aztec/bb.js": "^0.63.0", | ||
"@noir-lang/noir_js": "^0.39.0", | ||
"@noir-lang/noir_wasm": "^0.39.0", | ||
"@types/chai": "^4", | ||
"@types/mocha": "^10", | ||
"chai": "^4.5.0", | ||
"changelogithub": "patch:changelogithub@npm%3A0.13.3#~/.yarn/patches/changelogithub-npm-0.13.3-1783949906.patch", | ||
"concurrently": "^9.1.0", | ||
"czg": "^1.9.1", | ||
"dprint": "^0.46.3", | ||
|
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,68 @@ | ||
private_key1 = [ | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
] | ||
private_key2 = [ | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
"", | ||
] |
Oops, something went wrong.