I am trying to compare an unknown input_hash
with a default_hash_value
which my runtime is aware of.
The default_hash_value in hex is 5198bfa9da6f9c9d22dd2b0ce301dde9fd3c5826a117705d3ffa415d83a6bde8
generated using Blake2 hashing algorithm from a string A nice default hash
.
a) I presume T::Hash
the correct input type, but...
b) How to I encode default_hash_value
in my runtime module so that I can make the comparison something along the lines of:
if let default_hash_value = input_hash {
//... this is the default value do, something
} else {
//... this is not the default value, do something else
}
The main issue is encoding the known value.