Edit ‘cryptographic_rock-paper-scissors’

This commit is contained in:
osmarks 2024-09-10 18:52:58 +00:00 committed by wikimind
parent 02e6183315
commit b3aa249036

View File

@ -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.