Edit ‘cryptographic_rock-paper-scissors’
This commit is contained in:
parent
02e6183315
commit
b3aa249036
@ -2,4 +2,4 @@ A perennial problem on the internet in text chat is that a naively implemented R
|
||||
|
||||
== Protocol
|
||||
|
||||
Each player selects their move and a random salt. They then transmit the hash of the move and salt to the other player. Once both players have received the other's hash, both reveal their move and salt.
|
||||
Each player selects their move and a random salt. They then transmit the hash of the move and salt to the other player. Once both players have received the other's hash, both reveal their move and salt. As long as it is impractical to generate hash collisions and the salts are sufficiently high-entropy, the hash constrains each player such that they cannot choose another one but does not reveal the move they made.
|
Loading…
Reference in New Issue
Block a user