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 hashednum bytes hashedgates for sha512::hashgates for sha512::digest_var
1 block11139,47641,261
2 blocks23966,927
3 blocks36794,37798,355
4 blocks495121,826126,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" }