diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c5a1ef0..4a10401 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,9 +16,9 @@ jobs: uses: actions/checkout@v2 - name: Install Nargo - uses: noir-lang/noirup@v0.1.2 + uses: noir-lang/noirup@v0.1.3 with: - toolchain: v0.17.0 + toolchain: v0.16.0 - name: Run nargo test run: | diff --git a/README.md b/README.md index c4da29b..cedcf64 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 diff --git a/crates/noir-sha2/Nargo.toml b/crates/noir-sha2/Nargo.toml index 5056c10..02d0266 100644 --- a/crates/noir-sha2/Nargo.toml +++ b/crates/noir-sha2/Nargo.toml @@ -2,5 +2,5 @@ name = "sha2" type = "lib" authors = ["@michaelelliot"] -compiler_version = ">=0.20.0" +compiler_version = ">=0.16.0" license = "MIT" diff --git a/example/Nargo.toml b/example/Nargo.toml index c34bc21..c4817bb 100644 --- a/example/Nargo.toml +++ b/example/Nargo.toml @@ -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" }