Round 10/Proposal Ideas: Difference between revisions

miraheze>CodeTriangle
Sealed Bid Auctions: okay, this should be a decent first draft
miraheze>CodeTriangle
Sealed Bid Auctions: this is probably still broken
Line 7: Line 7:
* Reveal bids at the end
* Reveal bids at the end


=== First draft: ===
=== Current draft ===


<blockquote>
<blockquote>
Create a rule with the title "Secret Information" and the text:
Create a rule with the title "Secret Information" and the text:


:When the rules authorize a set of players to "secretly" take an action (a "secret action") then those players can only take that action by producing an SHA-256 hash of that action along with at least one byte of unrelated text at the end (known as "salt") and posting it in #game-actions (or a channel defined by the rule that defines the secret action).
:When the rules authorize a set of players to "secretly" take an action (a "secret action") then those players can only take that action by producing an SHA-256 hash of an unambiguous declaration that that player is performing that action, along with at least one byte of unrelated text at the end (known as "salt") and posting that hash in #game-actions (or a channel defined by the rule that defines the secret action).
:
:
:For each secret action the rules define, the rules can also define the maturation date and the revelation date of the hashed information. If they fail to define the maturation date, it is the beginning of the next rules-defined phase. If they fail to define the revelation date, it is 24 hours after the maturation date.
:For each secret action the rules define, the rules can also define the maturation date and the revelation date of the hashed information. If they fail to define the maturation date, it is the beginning of the next rules-defined phase. If they fail to define the revelation date, it is 24 hours after the maturation date.
:
:
:At some point while it is after the maturation date but before the revelation date of a secret action, the player who took that action must post the unhashed text corresponding to what they posted when taking the action (including the actions and the salt), and other players should verify that the unhashed text does match up to the hashed text. If the player fails to do so for any secret action, then the action fails.
:At some point while it is after the maturation date but before the revelation date of a secret action, the player who took that action must post the unhashed text corresponding to what they posted when taking the action (including the actions and the salt), and other players should verify that the unhashed text does match up to the hashed text. If the player fails to do so for any secret action, then the action fails. The action also fails if the message in which the hashed text was sent was edited at the revelation date.
:
:
:SHA-256 hashes can be produced using the following links:
:Players may generate SHA-256 hashes by any method that results in a hash verifiable to be computed from the original message by other players. For convenience, here are a few unaffiliated websites that can be used to generate SHA-256 hashes:
:*https://emn178.github.io/online-tools/sha256.html
:*https://emn178.github.io/online-tools/sha256.html
:*https://passwordsgenerator.net/sha256-hash-generator/
:*https://passwordsgenerator.net/sha256-hash-generator/