-
Notifications
You must be signed in to change notification settings - Fork 2.6k
provide blake2_512 in runtime or provide from_ss58check_with_version for runtime #6918
Comments
Thank you for your request. I assume that you don't need to call this method 1000 times per block. Thus, I think it is enough for you to just use the We provide common used hash functions for the wasm runtime to run them in native speed, because they are run very often per block. As said above, in your case this is probably not the case. Furthermore, we probably would also need to support |
happy to hear that. (and on the other hand, for example I'm planning to implement Cid(belong to ipfs) in substrate, without custom interface, I could just implement the structure for cid, could not implement all hash function, if I use custom interface, I just could use in my local chain, can't be a paranchain in future. All in all, allow developers to use there custom interface in parachain is necessary :p) |
How should Parachains support custom interfaces? That will never work. It could be voted in Council or similar to add support for extended interfaces, but yeah, that is something for the future. As I said, please use the WASM implementation of |
In our situation, we submit a chain address(Substrate type) to runtime, and verify whether this address is valid.
But in Substrate, to verify the chain address should parse from ss58 and check the ss58version.
ss58 decode could be implemented in runtime, but check ss58version need
blake2_512
hash.and in
sp-io
, substrate provide:but not provide blake2_512.
If I provide blake2_512 or
from_ss58check_with_version
from my local runtime_interface, currently parachain could not support custom runtime_interface definition.So substrate could provide
balke2_512
in runtime for generic requirements?or could provide
AccountId32::from_ss58check_with_version
for the situation which some one need to verify Substrate Address in runtime?The text was updated successfully, but these errors were encountered: