This post made me think a lot over night, i was mostly trying to find a solution (and a good hash function) that i could explain to my grandma. Let's assume I play with my grandma and she toss the coin. Basically, here are the rules I made up.
1- Let's separate the hash question (Hq) and hash function (Hf).
2- The hash function takes 2 parameters.
Let Hf(x, Hq), with x = head or tail, and Hf a possible answer to the hash function. It's impossible to track back Hf(x, Hq) to Hq. For a fixed Hq answer, Hf(tail, Hq) and Hf(head, Hq) must give a different number, and take the same amount of time to compute. For a varying Hq, it would take an unreasonable amount of time to find a new Hq that outputs both the same Hf(tail, Hq) and Hf(head, Hq).
3- The person who toss the coin must not have prior knowledge of the hash question/function and potential answers, the game itself must be fast so they cannot change its answer.
Example :
The hash question is to find a restaurant in some random city.
The hash function is to take the phone number of that restaurant. If head, double this number, if tail, divide this number by 2 and round down. Then, add up all the digits together.
1- my grandma choose "McDonald". She toss the coin : tail. She computes Hf(tail, McDonald) = 34. She tell me 34.
2- She also compute and tell me Hf(head, McDonald) = 40. This is a double security.
3- All I know is she rolled 34 and the other answer is 40. I have not idea what are x and Hq yet.
I will make the following guess : head.
4- Grandma must give me both her x and Hq, which is "tail" and "McDonald". If she wanted to cheat here, she would need to find a new restaurant which give the opposite hash return values. Hopefully, since the end of step 1, she didn't have more than few seconds to do this.
Grandma knows she won.
5- I have all informations needed to confirm the answer. I look for the McDonald phone number, compute both hashes and validate they match both hashes I received earlier.
Note : There is a very hard tradeoff to make these "grandma friendly" while respecting all the rules to make it secure. Let me know if you think of something else