smileyhead@discuss.tchncs.de to Asklemmy@lemmy.ml · 6 months agoIs it possible for devices on an online group chat to toss a coin without trusting each other and the server?message-squaremessage-square32fedilinkarrow-up159arrow-down14
arrow-up155arrow-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 · 6 months agomessage-square32fedilink
minus-squareMelllvar@startrek.websitelinkfedilinkEnglisharrow-up6arrow-down2·edit-26 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-up8·6 months agoThe last person to send the number decide the outcome
minus-squareMelllvar@startrek.websitelinkfedilinkEnglisharrow-up2arrow-down1·6 months agoIt doesn’t have to be addition. It could be a hash function, etc.
minus-squarefishpen0@lemmy.worldlinkfedilinkarrow-up5·6 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