From b3aa249036e901251e3b5c6d734057649c55ec06 Mon Sep 17 00:00:00 2001 From: osmarks Date: Tue, 10 Sep 2024 18:52:58 +0000 Subject: [PATCH] =?UTF-8?q?Edit=20=E2=80=98cryptographic=5Frock-paper-scis?= =?UTF-8?q?sors=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cryptographic_rock-paper-scissors.myco | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptographic_rock-paper-scissors.myco b/cryptographic_rock-paper-scissors.myco index c5a00fc..cafce7c 100644 --- a/cryptographic_rock-paper-scissors.myco +++ b/cryptographic_rock-paper-scissors.myco @@ -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. \ No newline at end of file +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. \ No newline at end of file