Then length of an encoded AccountId
seems to be shorter than a Hash
.
The decoding therefore fails, since "Not enough data to fill buffer"
for that hash.
What is the reason I get this error and how do I solve it?
I dontdon't know what you are trying to do. Maybe use a builtin hash funtionfunction like sp_core::keccak_256
?