This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Implement transparent hashing for contract storage #11029
Labels
J0-enhancement
An additional feature request.
Z2-medium
Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.
Right now all the storage functions used by contracts take a fixed 32 byte key as input. The contracts pallet hashes this key with
blake2_256
.This completely removes the possibility to iterate over
(key, value)
pairs. The fixed key size also forces contracts to either hash or pad their keys which adds additional complexity.We should do the following:
blake2_128_concat
instead ofblake2_256
.Get
type to theConfig
that constitutes the limit of the key. Not to theSchedule
.This is needed for use-ink/ink#1134
The text was updated successfully, but these errors were encountered: