Post
Topic
Board Announcements (Altcoins)
Re: [ANN] Ethereum: Welcome to the Beginning
by
pocesar
on 08/12/2014, 04:59:05 UTC
can someone look at this ethereum serpent code and see if it does what it is supposed to do? i.e., ethereum smart contract for a powerball style lotto, and people being able to send around the tickets that are created, as well as redeem winning tickets for the prize allocation for the # of matches.

https://github.com/PeterBorah/ethereum-powerball
  • Sets the executor of the contract as the owner of the "powerball" that only him can start the draw or send payments
  • Only the winner can message the contract to claim his prize
  • Can transfer tickets
  • Has a variable price for the ticket
  • Has an expiration date for redemption of the prize
  • The random number generator uses the previous block hash to generate the 6 numbers in a pool of 60 numbers, checking if there are no duplicates (and sort
  • them ascending) and 1 powerball (the 6th)
  • Has payouts for 1, 2, 3, 4, 5 and 6 numbers
  • Splits the jackpot to all the winners