For a proof of concept I'm toying with, I want to compare a pre-defined hash (for example 01b4b211108994a6cd3eb2530b294b237303005453c0f4a4233923147a6ecb97 ) against a BytesN<32> value.
The rough idea is to have a contract with an upgrade function. The function won't require auth, but instead checks if the supplied hash argument matches (one of) the pre-defined values. Think treasure-hunt/puzzle style.
Now, in soroban-cli you can use the hash as shown above, and it will be converted to BytesN<32> in the process of invoking a contract.
But I can't work out how to do this myself, in order to end up with 2 BytesN<32> values to compare.
Can anyone give me some pointers?