I'm wondering the differences between slot hash and block hash, and how are they calculated? (i.e., they are calculated based on what?)
From the "Sysvar: Slot hashes" on Solana explorer, We can see 512 most recent slot numbers and their corresponding slot hashes, shown in the following screenshot:
And after clicking the link of the latest slot (here we click slot 264031461), we can examine the details of block (the one and only one block) that belongs to this slot, shown in the following screenshot:
Apparently, slot hash and block hash are 2 different things. So how are they calculated?
My scenario: I want to implement a game like coin flip, but I don't want to use the slot hash or block hash of the latest slot as a pseudo-random number. I don't want to use a oracle or VRF either. So I'm wondering if I could use the slot/block hash of the slot which is the 100th slots in the future (100 slots roughly equal 40 seconds). Is the epoch leader/validator able to manipulate the hash to her favor? For example, she could construct a transaction in the 100th slots in the future so that the result of the coin flip is good to her.