• klay1@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 day ago

    How would that work? I mean the blockchain part, not the personal information of 8 billion people in the hands of few people part.

    • Alberat@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      1 day ago

      you base the random dice roll on the proof of work of the block chain. proofs of work generate randomness because (proof by contradiction) if they didn’t it would be easy to find the next block and make a bunch of money.

      EDIT: more concretely, in a blockchain, “miners” compute a “hash” of the chain up to the latest block, with an extra random “nonce”. they then check if this hash has a certain distinguishing feature (eg 5 leading zeros). if it doesn’t have this feature, the recompute the hash with a new nonce. the rest of the bits in the hash thus become random. thus, if you commit to using a future hash to determine your lottery, it can be guaranteed to be random (or prove you have enough money to manipulate the block chain which is very difficult)