Bitcoin Forum
June 27, 2024, 11:22:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Lottery winner calculation with transaction id and block header?  (Read 440 times)
candoo (OP)
Hero Member
*****
Offline Offline

Activity: 602
Merit: 500


Vertrau in Gott


View Profile
July 09, 2013, 08:22:12 PM
Last edit: July 09, 2013, 09:11:14 PM by candoo
 #1

Hey folks,

I might want to sell something very expensive. But due to the bad financial situation in the world, I might want to try to raffle/lottery it .

So every ticket would'have to pay X btc to Y adress.

I want to use the transaction ID as a ticket example: c4725223e7b0b3b0146f76d5ca9ac51510184b52306fa6f4cc6879aacc808c2c

Imagine I would state that block 245731 decides who is the winner is.  Could I use the nonce or the hash of that block to find a match with a lottery ticket(transaction ID)

If so? How? A example would be nice.

Einer trage des andern Last, so werdet ihr das Gesetz Christi erfüllen.
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
July 09, 2013, 08:23:51 PM
 #2

Not sure how the nonce or block hash would help. Block hashes are usually very large numbers, and the nonce can be anything between 0 to 2^32-1.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
candoo (OP)
Hero Member
*****
Offline Offline

Activity: 602
Merit: 500


Vertrau in Gott


View Profile
July 09, 2013, 08:29:25 PM
 #3

Not sure how the nonce or block hash would help. Block hashes are usually very large numbers, and the nonce can be anything between 0 to 2^32-1.

Is there any other way to find a winner? I mean a safe way that cannot be manipulated ?

Einer trage des andern Last, so werdet ihr das Gesetz Christi erfüllen.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!