Skip to content

miniproto.crypto.native.sha256_digest

sha256_digest(data: bytes) -> bytes

Compute a SHA-256 digest.

Parameters:

  • data (bytes) – Input bytes to hash.

Returns:

  • bytes – The 32-byte digest.

This public helper uses the Python stdlib fallback so its behavior and performance do not imply Rust dispatch.