Answered step by step
Verified Expert Solution
Link Copied!

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 2000 ether, we are in Phase 1, 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 10 winning bets at once, i.e. add her address to the winners array 10 consecutive times.
Problem 2. Suppose we are in Phase 1, the contracts balance is more than 2000 ether, and the casino has already lost a lot of bets, i.e. many bettors have won. Find an attack that can be employed by the casino to ensure no one is paid in Phase 2 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 3. Suppose we are in Phase 1, the contracts balance is more than 2000 ether, Alice has already won 100 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 2. 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 10 ethers and everyone else is honest.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Why do mergers and acquisitions have such an impact on employees?

Answered: 1 week ago

Question

2. Describe the functions of communication

Answered: 1 week ago