Skip to main content

Module sha256

Module sha256 

Source
Expand description

Const SHA-256 implementation used for Hopper-owned discriminators.

Structs§

ConstSha256
Incremental SHA-256 state that can be evaluated at compile time.

Functions§

sha256
Compute SHA-256(data) at compile time.
sha256_concat
Compute SHA-256(left || right) at compile time without allocating.
sha256_prefix8
Compute SHA-256(left || right)[0..8].