Author Topic: Found this: Denny's Lotto: Ethereum ÐApp demo & walkthrough  (Read 4352 times)

0 Members and 1 Guest are viewing this topic.

Offline bytemaster

How did they solve the RNG problem?

https://github.com/dennismckinnon/Ethereum-Contracts/blob/master/Dennys%20Lotto/Lottery.lsp

Code: [Select]
[0x20] (prevhash)
[0x40] (coinbase)
[0x60] (SHA3 0x20 0x40) ;Random lottery
[0x80] (MOD @0x3 @@0x2) ;DRAW!

From explanation of the demo and code, it seems being use hash of (block info  and prevhash) to resolve the RNG.

I've enclosed this thread's link to Dennis, he perhaps can give more info on that if he come here.

I listened to his youtube on and off.   What I recall is that the "forum" thought hashing the block timestamp was a good idea, but Denny was against that. (for good reason..  the time stamp can be selected within a certain window.)  So he ended up using previous block + current block hashes.

This design only works because ethereum is mining based and thus it is difficult to produce a winning block in the first place. 
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline gamey

  • Hero Member
  • *****
  • Posts: 2253
    • View Profile
How did they solve the RNG problem?

https://github.com/dennismckinnon/Ethereum-Contracts/blob/master/Dennys%20Lotto/Lottery.lsp

Code: [Select]
[0x20] (prevhash)
[0x40] (coinbase)
[0x60] (SHA3 0x20 0x40) ;Random lottery
[0x80] (MOD @0x3 @@0x2) ;DRAW!

From explanation of the demo and code, it seems being use hash of (block info  and prevhash) to resolve the RNG.

I've enclosed this thread's link to Dennis, he perhaps can give more info on that if he come here.

I listened to his youtube on and off.   What I recall is that the "forum" thought hashing the block timestamp was a good idea, but Denny was against that. (for good reason..  the time stamp can be selected within a certain window.)  So he ended up using previous block + current block hashes.
I speak for myself and only myself.

Offline HackFisher

  • Moderator
  • Hero Member
  • *****
  • Posts: 883
    • View Profile
How did they solve the RNG problem?

https://github.com/dennismckinnon/Ethereum-Contracts/blob/master/Dennys%20Lotto/Lottery.lsp

Code: [Select]
[0x20] (prevhash)
[0x40] (coinbase)
[0x60] (SHA3 0x20 0x40) ;Random lottery
[0x80] (MOD @0x3 @@0x2) ;DRAW!

From explanation of the demo and code, it seems being use hash of (block info  and prevhash) to resolve the RNG.

I've enclosed this thread's link to Dennis, he perhaps can give more info on that if he come here.
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline bytemaster

For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline HackFisher

  • Moderator
  • Hero Member
  • *****
  • Posts: 883
    • View Profile
Contact them!

Sent from my SCH-I535 using Tapatalk

Contacted, it would be great if we can collaborate.
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
Contact them!

Sent from my SCH-I535 using Tapatalk

Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline HackFisher

  • Moderator
  • Hero Member
  • *****
  • Posts: 883
    • View Profile
interesting... I just watched that, good demo.

similar features, so facing similar problems to resolve, e.g. the part to RNG...

I like this Dennis' humor:)
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline CLains

  • Hero Member
  • *****
  • Posts: 2606
    • View Profile
  • BitShares: clains
Working on the same kind of thing and having the same name is a great point of entry. Destined for collaboration I say. :)

Offline cass

  • Hero Member
  • *****
  • Posts: 4311
  • /(┬.┬)\
    • View Profile
I cannot access youtube temporarily, what's is about, is another "Denny" from Ethereum giving a demo?

I'll watch that later...

yay don't know it it important, but guessing from bytes reply it isn't ^^^just want to let you know about...
█║▌║║█  - - -  The quieter you become, the more you are able to hear  - - -  █║▌║║█

Offline HackFisher

  • Moderator
  • Hero Member
  • *****
  • Posts: 883
    • View Profile
I cannot access youtube temporarily, what's is about, is another "Denny" from Ethereum giving a demo?

I'll watch that later...
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline cass

  • Hero Member
  • *****
  • Posts: 4311
  • /(┬.┬)\
    • View Profile
█║▌║║█  - - -  The quieter you become, the more you are able to hear  - - -  █║▌║║█

Offline bytemaster

Funny that HackFisher's name is Denny and he is working on our Lotto...
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline cass

  • Hero Member
  • *****
  • Posts: 4311
  • /(┬.┬)\
    • View Profile
https://www.youtube.com/watch?v=ldJcw7JPHz0&feature=youtu.be

FYI don't know if i post it here correctly, but want to publish this link.
What do you think?
█║▌║║█  - - -  The quieter you become, the more you are able to hear  - - -  █║▌║║█