You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
For the oracle module, I am using twox64_concat for T::OracleKey, which is an enum for Acala and LamianrChain, so it is safe as there will be only < 10 possible values.
However this may cause issue if someone is using u128 as T::OracleKey.
Without the ability to configure hasher, it is not possible to implement efficient and reusable pallet.
The text was updated successfully, but these errors were encountered:
xlc
changed the title
Configurable hasher
Configurable storage hasher
Feb 25, 2020
MyHasher will then have to implement StorageHasher
and also we have to add a metadata function (probably in StorageHasher trait) to retrieve metadata at runtime.
I am updating the storage hasher for our ORML open-web3-stack/open-runtime-module-library#101
For the oracle module, I am using
twox64_concat
forT::OracleKey
, which is an enum for Acala and LamianrChain, so it is safe as there will be only < 10 possible values.However this may cause issue if someone is using
u128
asT::OracleKey
.Without the ability to configure hasher, it is not possible to implement efficient and reusable pallet.
The text was updated successfully, but these errors were encountered: