Skip to main content

consumers_key

Function consumers_key 

Source
pub fn consumers_key(account_id: &[u8; 32]) -> Vec<u8> 
Expand description

Derive the Substrate storage key for Resources::Consumers[account_id].

Layout:

twox_128("Resources") ++ twox_128("Consumers") ++ blake2_128_concat(account_id)

account_id is a fixed-size 32-byte type — it is passed directly to blake2_128_concat WITHOUT a SCALE compact length prefix (unlike BoundedVec<u8> keys such as usernames).