Skip to content

Commit

Permalink
fix: relax minimum required noir version
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelelliot committed Dec 20, 2023
1 parent cf17917 commit 894dd40
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
uses: actions/checkout@v2

- name: Install Nargo
uses: noir-lang/[email protected].2
uses: noir-lang/[email protected].3
with:
toolchain: v0.17.0
toolchain: v0.16.0

- name: Run nargo test
run: |
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Noir SHA-2

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Nargo Test 🌌](https://github.com/michaelelliot/noir-sha2/actions/workflows/test.yml/badge.svg)](https://github.com/michaelelliot/noir-sha2/actions/workflows/test.yml)
[![Noir](https://img.shields.io/badge/Noir-0.16.0-blue.svg)](https://github.com/noir-lang/noir)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Nargo Test 🌌](https://github.com/michaelelliot/noir-sha2/actions/workflows/test.yml/badge.svg)](https://github.com/michaelelliot/noir-sha2/actions/workflows/test.yml)

This library contains a Noir implementation of the SHA-2 hashing algorithm.

Expand All @@ -10,13 +12,13 @@ In your `Nargo.toml` file, add the following dependency:

```toml
[dependencies]
sha2 = { tag = "v0.0.2", git = "https://github.com/michaelelliot/noir-sha2", directory = "crates/noir-sha2" }
sha2 = { tag = "v0.0.3", git = "https://github.com/michaelelliot/noir-sha2", directory = "crates/noir-sha2" }
```

Then use it in your Noir project like this:

```rust
use dep::sha2::{sha256};
use dep::sha2::sha256;

fn main(input: [u8; 64], input_len: u16, hash: pub [u8; 32]) {
// Generate sha256 hash of input
Expand Down
2 changes: 1 addition & 1 deletion crates/noir-sha2/Nargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
name = "sha2"
type = "lib"
authors = ["@michaelelliot"]
compiler_version = ">=0.20.0"
compiler_version = ">=0.16.0"
license = "MIT"
2 changes: 1 addition & 1 deletion example/Nargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "sha2_example"
type = "bin"
authors = ["@michaelelliot"]
compiler_version = ">=0.20.0"
compiler_version = ">=0.16.0"

[dependencies]
sha2 = { path = "../crates/noir-sha2" }

0 comments on commit 894dd40

Please sign in to comment.