Skip to main content

Module hash

Module hash 

Source
Expand description

Module: cdk::utils::hash

Responsibility: SHA-256 helpers for wasm/module identity and hex rendering. Does not own: artifact storage, wasm validation, or manifest policy. Boundary: provides pure hashing and hex conversion utilities.

Enums§

DecodeHexError
DecodeHexError

Functions§

decode_hex
Decode one even-length hexadecimal string into bytes.
hex_bytes
Render one byte slice as lowercase hexadecimal.
sha256_bytes
Compute SHA-256 bytes from an in-memory byte slice.
sha256_hex
Compute lowercase hexadecimal SHA-256 from an in-memory byte slice.
wasm_hash
Compute raw wasm module hash bytes.
wasm_hash_hex
Compute lowercase hexadecimal wasm module hash.