-
Ownable
design pattern used in the following functions:StartCommitStage()
,StartRevealStage()
andCloseAuction()
. These functions do not need to be used by anyone else apart from the contract creator (Auction Owner). Only the owner has the right to change the stage of an auction. -
The following functions are restricted based on the stage of the auction
CommitNewBid()
can only be called when the auction is in commit stage.RevealCommittedBid()
can only be called when the auction is in reveal stage.
- The
SecretAuction
contract inherits from Open ZeppelinOwnable.sol
- Individual
SecretAuction
contracts be deployed by using theAuctionFactory
contract.
- The contract uses a commit-reveal design pattern to keep the commited bids secret until they are finally revealed