Skip to main content

Module hashing

Module hashing 

Source
Expand description

Cryptographic hashing (SHA-256).

Provides a typed 32-byte Hash value and SHA-256 convenience functions. Ported from hush-core’s hashing module for use in Merkle trees and receipt log integrity proofs.

Structs§

Hash
A 32-byte hash value.

Functions§

sha256
Compute SHA-256 hash of data.
sha256_hex
Compute SHA-256 hash and return as hex string (no prefix).