Module storage_keys

Source
Expand description

This modules is very advanced and will not be used directly by the vast majority of users. We want to offer it to ensure a stable storage key composition system but don’t encourage contract devs to use it directly.

Functions§

namespace_with_key
Encodes a namespace + key to a raw storage key.
to_length_prefixed
Calculates the raw key prefix for a given namespace as documented in https://github.com/webmaster128/key-namespacing#length-prefixed-keys
to_length_prefixed_nested
Calculates the raw key prefix for a given nested namespace as documented in https://github.com/webmaster128/key-namespacing#nesting