Talk:Contract: Difference between revisions

From Bitcoin Wiki
Jump to navigation Jump to search
No edit summary
m (Taras moved page Talk:Contracts to Talk:Contract)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Example 3: Securing Bets'''
'''Example 3: Securing Bets'''


How would you use contracts to place bets in a poker game? Specifically, could you form a separate contract for each person who calls a bet and automatically allocate funds to the winner?
How would you use contracts to place bets in a poker game? Specifically, could you form a separate contract for each person who calls a bet and automatically allocate funds to the winner? {{unsigned|Asherp|22:27, 15 June 2011‎}}
 
 
''In theory section:''
 
When SIGHASH_ALL performed, pubkey exists in scriptSig too?
 
    script.cpp +1046:
   
    // Blank out other inputs' signatures
    for (int i = 0; i < txTmp.vin.size(); i++)
        txTmp.vin[i].scriptSig = CScript();
    txTmp.vin[nIn].scriptSig = scriptCode;

Latest revision as of 15:37, 8 July 2015

Example 3: Securing Bets

How would you use contracts to place bets in a poker game? Specifically, could you form a separate contract for each person who calls a bet and automatically allocate funds to the winner? — Preceding unsigned comment added by Asherp (talkcontribs) at 22:27, 15 June 2011‎