Skip to main content

Module hashing

Module hashing 

Source
Expand description

Cryptographic hashing utilities.

This module provides SHA-256 hashing functions for deriving storage slots and creating namespaces.

Functionsยง

derive_slot
Derives a storage slot from a namespace and key parts.
hash32
Computes the SHA-256 hash of the given data.
index_u64
Converts a u64 index to little-endian bytes.
namespace
Creates a namespace hash from a label.