Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/NIGHTLY_CANARY_DIED.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: "Tests fail on latest Nargo nightly release"
assignee: kashbrti
---

The tests on this Noir project have started failing when using the latest nightly release of the Noir compiler. This likely means that there have been breaking changes for which this project needs to be updated to take into account.

Check the [{{env.WORKFLOW_NAME}}]({{env.WORKFLOW_URL}}) workflow for details.
Check the [{{env.WORKFLOW_NAME}}]({{env.WORKFLOW_URL}}) workflow for details.
7 changes: 4 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ jobs:
- name: Install Nargo
uses: noir-lang/[email protected]
with:
toolchain: 0.36.0
toolchain: 1.0.0-beta.3

- name: Install bb
run: |
npm install -g bbup
bbup -nv 0.36.0
bbup -nv 1.0.0-beta.3
sudo apt install libc++-dev

- name: Build Noir benchmark programs
run: nargo export
Expand All @@ -34,7 +35,7 @@ jobs:

- name: Compare gates reports
id: gates_diff
uses: noir-lang/noir-gates-diff@7e4ddaa91c69380f15ccba514eac17bc7432a8cc
uses: noir-lang/noir-gates-diff@dbe920a8dcc3370af4be4f702ca9cef29317bec1
with:
report: gates_report.json
summaryQuantile: 0.9 # only display the 10% most significant circuit size diffs in the summary (defaults to 20%)
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: actions/checkout@v4

- name: Install Nargo
uses: noir-lang/[email protected].3
uses: noir-lang/[email protected].4
with:
toolchain: ${{ matrix.toolchain }}

Expand All @@ -58,9 +58,9 @@ jobs:
uses: actions/checkout@v4

- name: Install Nargo
uses: noir-lang/[email protected].3
uses: noir-lang/[email protected].4
with:
toolchain: ${{ env.MINIMUM_NOIR_VERSION }}
toolchain: v0.36.0

- name: Install Cargo
uses: dtolnay/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion Nargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "noir_library"
name = "poseidon"
type = "lib"
authors = [""]
compiler_version = ">=0.34.0"
Expand Down
6 changes: 6 additions & 0 deletions src/bench.nr
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use super::poseidon2;

#[export]
fn poseidon2_length_10(input: [Field; 10]) -> Field {
poseidon2::Poseidon2::hash(input, input.len())
}
1 change: 1 addition & 0 deletions src/lib.nr
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pub mod poseidon;
pub mod poseidon2;

mod bench;
mod tests;

pub use std::hash::poseidon2_permutation;
Loading