Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suppose Alice is a dishonest bettor, but the casino and all other bettors are honest. Assume the contract s balance is currently more than 2
Suppose Alice is a dishonest bettor, but the casino and all other bettors are honest. Assume the contracts balance is currently more than ether, we are in Phase and no one has won a bet yet.
a Find an attack that can be employed by Alice using which her bet is placed only if it is guaranteed to be a winning bet.
b Find an attack using which Alice can place winning bets at once, ie add her address to the winners array consecutive times.
Problem Suppose we are in Phase the contracts balance is more than ether, and the casino has already lost a lot of bets, ie many bettors have won. Find an attack that can be employed by the casino to ensure no one is paid in Phase and thus all the money in the contract is eventually funneled back to the casino. Assume that only the casino is dishonest and everyone else is acting honestly. Note that the casino is not willing to lose any money, except for potential gas fees.
Problem Suppose we are in Phase the contracts balance is more than ether, Alice has already won bets and no one else has won anything yet. However, Bob hates Alice and wants to make sure she cannot claim any of her winnings in Phase Note that Bob is malicious, so he just aims to hurt Alices earnings as much as possible and does not care if he loses money himself or someone else gets hurt, too. Find an attack that allows Bob to reach his goal. Bob has only ethers and everyone else is honest.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started