smileyhead@discuss.tchncs.de to Asklemmy@lemmy.ml · 4 months agoIs it possible for devices on an online group chat to toss a coin without trusting each other and the server?message-squaremessage-square4fedilinkarrow-up12arrow-down10
arrow-up12arrow-down1message-squareIs it possible for devices on an online group chat to toss a coin without trusting each other and the server?smileyhead@discuss.tchncs.de to Asklemmy@lemmy.ml · 4 months agomessage-square4fedilink
minus-squareMelllvar@startrek.websitelinkfedilinkEnglisharrow-up0arrow-down1·edit-24 months agoAll participants select their own random whole number and publish it to the group. All participants add all the numbers together. The result is either odd or even (heads/tails) and everyone arrives at the same result independently.
minus-squaredriving_crooner@lemmy.eco.brlinkfedilinkarrow-up1·4 months agoThe last person to send the number decide the outcome
minus-squareMelllvar@startrek.websitelinkfedilinkEnglisharrow-up0arrow-down1·4 months agoIt doesn’t have to be addition. It could be a hash function, etc.
minus-squarefishpen0@lemmy.worldlinkfedilinkarrow-up1·4 months agoIf the function is known by all parties then the last person to send still has control
All participants select their own random whole number and publish it to the group. All participants add all the numbers together. The result is either odd or even (heads/tails) and everyone arrives at the same result independently.
The last person to send the number decide the outcome
It doesn’t have to be addition. It could be a hash function, etc.
If the function is known by all parties then the last person to send still has control