sha512
January 13, 2026 ยท View on GitHub
Warning
This library has not been reviewed by the Noir team and is unaudited. Use at your own risk.
Library that implements SHA512 and SHA384
Noir version compatibility
This library is tested against all stable versions of noir from 1.0.0-beta.5.
Benchmarks
Benchmarks are ignored by git and checked on pull-request. As such, benchmarks may be generated
with the following command.
# execute the following
nargo export
./scripts/build-gates-report.sh
./scripts/build-brillig-report.sh
The benchmark will be generated at ./benchmark-opcodes.json, ./benchmark-circuit.json and ./benchmark-brillig.json.
Current benchmarks as of 1 Mar 2025
| num blocks hashed | num bytes hashed | gates for sha512::hash | gates for sha512::digest_var |
|---|---|---|---|
| 1 block | 111 | 39,476 | 41,261 |
| 2 blocks | 239 | 66,927 | |
| 3 blocks | 367 | 94,377 | 98,355 |
| 4 blocks | 495 | 121,826 | 126,914 |
Installation
In your Nargo.toml file, add the version of this library you would like to install under dependency:
[dependencies]
sha512 = { tag = "v0.1.0", git = "https://github.com/noir-lang/sha512" }