Round 10/Reference: Difference between revisions

miraheze>Klinkplink
m Best Practices:: unbolding this
miraheze>CodeTriangle
Best Practices:: delete colon and add some more info
Line 7: Line 7:
Because we operate on a sealed-bid system and because in real poker hands are not publicly displayed, we use something called secret actions. Essentially, to take a secret action, you write a description of the actions you want to take, then hash them using the SHA-256 algorithm, finally revealing them after the secret information's "maturation date." '''Make sure to save the unhashed text somewhere else. Hashes are an irreversible process. We post the unhashed text so that other players can independently create the same hash that you did so that we can verify it.'''
Because we operate on a sealed-bid system and because in real poker hands are not publicly displayed, we use something called secret actions. Essentially, to take a secret action, you write a description of the actions you want to take, then hash them using the SHA-256 algorithm, finally revealing them after the secret information's "maturation date." '''Make sure to save the unhashed text somewhere else. Hashes are an irreversible process. We post the unhashed text so that other players can independently create the same hash that you did so that we can verify it.'''


==== Best Practices: ====  
==== Best Practices ====  
* When posting your unhashed text, reply to the message with your original hashed text to make it easier to verify.
* When posting your unhashed text, reply to the message with your original hashed text to make it easier to verify.
* While you shouldn't use it as a primary method of hashing, the Poker Face bot is a useful tool to help verify a hash. ( Command: &sha before your message, example: &sha My hand is the following lol:  Ace of Spades, Ace of Spades, Ten of Spades, Ten of Spades, Four of Spades, Four of Spades )
* While you shouldn't use it as a primary method of hashing, the Poker Face bot is a useful tool to help verify a hash. ( Command: {{Mono|&sha}} before your message, example: {{Mono|&sha My hand is the following lol:  Ace of Spades, Ace of Spades, Ten of Spades, Ten of Spades, Four of Spades, Four of Spades}})
* The ruleset includes links to online services which will compute the hash for you (copied below for convenience). If you are on a UNIX-based operating system, you should have a command line utility to do this same thing (usually called {{Mono|sha256sum}}).
** https://emn178.github.io/online-tools/sha256.html
** https://passwordsgenerator.net/sha256-hash-generator/
** https://xorbin.com/tools/sha256-hash-calculator


== Phases ==
== Phases ==