compute_state_slot

Function compute_state_slot 

Source
pub fn compute_state_slot(name: &str) -> [u8; 32]
Expand description

Compute the canonical storage slot hash for a state variable name.

The returned value is the 32-byte SHA-256 digest of the UTF-8 name.