How do bonds in Secure Multi‐Party Lotteries work as described in Bitcoin and Cryptocurrency Technologies book I have understood the details of it but I have a question related to claiming the bond.
We have two parties Alice and Bob and suppose the bond that Alice signs is 
now if Alice reveals her value X then she will be able to get her bond money back. Suppose if Bob won the lottery then how will he get the money from Alice since she has already reclaimed her bond amount?
The transactions for revealing commitments are separate from the transactions for the lottery. Timed hash commitments only force parties to reveal preimage x of H(x). The lottery logic is carried in a separate transaction