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
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@
"repr",
"reqwest",
"rfind",
"ripemd",
"RMVD",
"rngs",
"rustc",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,28 @@ sidebar_position: 0

import BlackBoxInfo from '@site/src/components/Notes/_blackbox';

Many of the common hash methods have been moved outside of the Noir standard library and exist as independent libraries.
You can find the complete list of libraries in the [Hashes section](https://github.com/noir-lang/awesome-noir?tab=readme-ov-file#hashes)
of the awesome-noir repo, including:

- keccak256
- MiMC
- Poseidon
- RIPEMD160
- sha256
- sha512


## sha256 compression

Performs a sha256 compression on an input and initial state, returning the resulting state.

:::warning

This is a different function than sha256. See [this library](https://github.com/noir-lang/sha256) for sha256 hashing.

:::

#include_code sha256_compression noir_stdlib/src/hash/mod.nr rust

<BlackBoxInfo to="../black_box_fns"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,28 @@ sidebar_position: 0

import BlackBoxInfo from '@site/src/components/Notes/_blackbox';

Many of the common hash methods have been moved outside of the Noir standard library and exist as independent libraries.
You can find the complete list of libraries in the [Hashes section](https://github.com/noir-lang/awesome-noir?tab=readme-ov-file#hashes)
of the awesome-noir repo, including:

- keccak256
- MiMC
- Poseidon
- RIPEMD160
- sha256
- sha512


## sha256 compression

Performs a sha256 compression on an input and initial state, returning the resulting state.

:::warning

This is a different function than sha256. See [this library](https://github.com/noir-lang/sha256) for sha256 hashing.

:::

```rust title="sha256_compression" showLineNumbers
pub fn sha256_compression(input: [u32; 16], state: [u32; 8]) -> [u32; 8] {}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,28 @@ sidebar_position: 0

import BlackBoxInfo from '@site/src/components/Notes/_blackbox';

Many of the common hash methods have been moved outside of the Noir standard library and exist as independent libraries.
You can find the complete list of libraries in the [Hashes section](https://github.com/noir-lang/awesome-noir?tab=readme-ov-file#hashes)
of the awesome-noir repo, including:

- keccak256
- MiMC
- Poseidon
- RIPEMD160
- sha256
- sha512


## sha256 compression

Performs a sha256 compression on an input and initial state, returning the resulting state.

:::warning

This is a different function than sha256. See [this library](https://github.com/noir-lang/sha256) for sha256 hashing.

:::

```rust title="sha256_compression" showLineNumbers
pub fn sha256_compression(input: [u32; 16], state: [u32; 8]) -> [u32; 8] {}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,27 @@ sidebar_position: 0

import BlackBoxInfo from '@site/src/components/Notes/_blackbox';

Many of the common hash methods have been moved outside of the Noir standard library and exist as independent libraries.
You can find the complete list of libraries in the [Hashes section](https://github.com/noir-lang/awesome-noir?tab=readme-ov-file#hashes)
of the awesome-noir repo, including:

- keccak256
- MiMC
- Poseidon
- RIPEMD160
- sha256
- sha512

## sha256 compression

Performs a sha256 compression on an input and initial state, returning the resulting state.

:::warning

This is a different function than sha256. See [this library](https://github.com/noir-lang/sha256) for sha256 hashing.

:::

```rust title="sha256_compression" showLineNumbers
pub fn sha256_compression(input: [u32; 16], state: [u32; 8]) -> [u32; 8] {}
```
Expand Down
Loading