Zero-knowledge games. Christmas Lectures 2008

Transcription

1 Security is very important on the internet. You often need to prove to another person that you know something but without letting them know what the information actually is (because they could just copy and use it). For example, you might need to convince an online music shop that you know your password for their website without sending them the password itself. These are called zero-knowledge methods, because you can get an answer without ever finding out anything new about the important information. Here we provide two zero-knowledge you can try with your friends at home or school. The first is one way of finding out if two people agree on a decision without either of them revealing what they actually decided! The second lets you work out the total of all your ages, without everyone finding out how old anyone else is. THE DECISION GAME Let s suppose that you and a friend have to make a yes or no joint decision, but you don t want the other person to know what you thought. For example, you both need to decide whether to go on holiday together, and you don t want to hurt their feelings if you don t want to go but they do. How do you know if you agree or not without knowing what both your answers are? By playing the decision game, that s how! 1

2 What to do A set of three Yes cards and two No cards are shown below. Print the page with them on and cut out the cards (or draw your own). Now, follow the steps below. 1. Each of the two people needing to make a decision takes one Yes and one No card, with the third Yes left over. 2. Say the question out loud so that you both know exactly what you re answering. 3. The first person puts their decision cards face down on the table, with their decision on top. 4. Now place the spare Yes card face down on top of the pile. 5. The second person puts their decision cards face down on top of the pile, with their decision as the one underneath. 6. Next, the pile of cards is cut (split at a random place and the top cards put on the bottom). Cut the deck as many times as you like until you are both sure that your cards are secret. Now neither person has seen the other s cards or the order they were put on the pile. 7. Turn the pile over and spread out the cards in a line, face up so you can both see them. 8. If all three of the Yes cards are next to each other, then you both decided Yes. Because the pile was cut, the cards wrap around and it is still a yes result even if the Yes cards are on the edges. If the three Yes cards are separated by No cards then one or the other, or both of you, decided No. The beauty of the decision game is that the players never know who said No, so no one has to feel embarrassed or hurt! Result NO NO YES YES YES Yes YES YES NO NO YES Yes YES NO YES NO YES No 2

3 NO NO YES YES YES 3

4 SECRET AGES This is a zero-knowledge game for adding up people s ages without them ever finding out what anyone else s age actually is. You just need to find out the total for everyone. We use age, but the game works with any number that individuals might want to keep secret. Instead of ages, you could try this with the number of pairs of shoes you own or how many biscuits you ve eaten today. You can do this with any number of your friends, but this example involves four people. What to do 1. The four people with secret ages stand side by side in a line facing the fifth person, the controller (your teacher or another friend). 2. The controller thinks of a number between 1 and 100 and whispers it in the ear of the first person in the line. 3. The first person adds their age to the number, then to the second person. 4. The second person adds their age and to the third person, who then does the same to the fourth. 5. The fourth person whispers the grand total to the controller. The controller then takes away the original number and announces to everyone what the grand total is. 4

5 START: Controller thinks of a random number and whispers it to (1) END: Controller subtracts the random number and announces the total In this way, important information has been found out about the whole group without anyone having to reveal their secret! This zero-knowledge method is not very secure. It is possible for people to cheat and work out some of the supposedly secret information. How do you think this could happen? Which people could get together after the game has finished and work out secret information about the other players? 5

6 SECRET AGES ADVANCED If you ve worked out how to cheat at the zero-knowledge system, can you design a more secure system? The method shown in the diagram below is a little more complicated, but it is secure against cheats. Try it out with your friends! You need three friends who don t know each other s ages, and a calculator. Each player adds their age to 100, then divides the total into three random numbers (for example, age 11, 111 = ). The random numbers are shares, which each player writes down onto three pieces of paper. Each player keeps one share for themselves and gives the other two players one of the other shares. Each player ends up with three shares, which, using the calculator, they re-total then divide by 100. They then keep the two digits after the decimal point. (If there s only one digit after the decimal point put a zero after it, for example 0.9 gives you 90). All players reveal the resulting number to the others. The players add the three numbers together and divide by 100 as before (adding a zero if necessary). The two digits after the decimal point give you the sum of all three people s ages. Diagram based on How to keep secrets safe, Scientific American, August

7 1 2 3 Secret age = Total = 111 Total = 117 Total = 114 Choose any 3 numbers that add up to your age. Write these 'shares' onto 3 pieces of paper Keep one of these shares yourself, and give the rest to the two other players Find the total of these three shares, and take the two digits following the decimal point after dividing by Total = 141 number = Total = 111 number = Total = 90 number = Add up these numbers and take the two digits following the decimal point after diving by 100 again (this part is not Total = 142 secret everyone can number = 42 check). This is the total of the secret ages of the 3 people! Total age = 42 7

Fractions Children in the Foundation Stage should be introduced to the concept of halves and quarters through play and practical activities in preparation for calculation at Key Stage One. Y Understand

Starting and Ending Presentations- Phrases Without looking below, listen to your teacher read out phrases and hold up the right one of the cards they have given you. If the phrase can be used both at the

The games below can all be played using a Deck of Cards, and they help students practice math skills. Email eelliott@hearttutoring.org with any questions. CARD GAMES TO SUPPORT COUNTING Red Cards Win Students

Math Games with Cards and Dice presented at NAGC November, 2013 Ready, Set, Go! Math Games for Serious Minds Rande McCreight Lincoln Public Schools Lincoln, Nebraska Math Games with Cards Close to 20 -

s e s s i o n 5 A. 3 Math Focus Points Recognizing that the numbers 100, 200, 300 represent groups of 100 Adding 10 or 100 to and subtracting 10 or 100 from a given number and describing what part of the

Numicon Games Getting to know the shapes and their order ACTIVITY COVER THE BOARD (Numicon) 1. Work in pairs to cover the board with no gaps 2. Race to cover the board first 3. Now have to make sure you

Math Games p.1 Math Games For Skills and Concepts Original material 2001-2006, John Golden, GVSU permission granted for educational use Other material copyright: Investigations in Number, Data and Space,

Infant Resource Pack for Maths Week This pack contains six activities that are suitable for either Junior and Senior Infants. The numbers in the questions may have to be adapted to suit the class and the

PLAYER SALUTE This is a game for two players and one referee. You will need a deck of cards (Ace 10). Each player draws a card and, without looking, holds the card on his/her forehead facing outward. The

The theory of the six stages of learning with integers (Published in Mathematics in Schools, Volume 29, Number 2, March 2000) Stage 1 Free interaction In the case of the study of integers, this first stage

Lesson Plans K-3 Bullying Response Lesson Plan Grades K-3 Estimated Time of Completion: Two to three classroom periods, or stretched out throughout the school year. Each activity will take between 15-30

Card Games Go Fish! Dice and Card Games to Practice Math Facts This new twist on the old classic Go Fish! helps kids to learn addition by mentally working out simple math problems. Each round played practices

Coaching Outline for Session #2 Design the Object of the Game This may come as a surprise, but simply engaging in a conversation by following these questions will be extremely illuminating and valuable.

Cancelling Fractions: Rules The process of cancelling involves taking fractions with large numerators and denominators (top and bottom numbers) and rewriting them with smaller numerators and denominators

What do fractions mean? Fractions Academic Skills Advice Look at the bottom of the fraction first this tells you how many pieces the shape (or number) has been cut into. Then look at the top of the fraction

20 Questions Age group: Abilities assumed: Time: Size of group: adult Knowledge of searching using linear search around 5 minutes, can be used within a longer workshop activity anything from 2 to hundreds

3. BINARY NUMBERS AND ARITHMETIC 3.1. Binary Numbers The only place in a computer where you will find the number 9 is on the keyboard. Inside the computer you will only find 0 s and 1 s. All computer memory

Jesus Heals a Blind Man Bible Story John 9:1-11,35-38 Teacher Challenge Jesus felt compassion for all the people He met, and that compassion was shown in His dealing with the blind man in today s story.

Winning games: the perfect tictac-toe player Created by Peter McOwan and Paul Curzon of Queen Mary, University of London with support from EPSRC and Google Winning games: the perfect tic-tac-toe player

Copyright 2005 Second Edition 2008 Teresa Evans. All rights reserved. Permission is given for the making of copies for use in the home or classroom of the purchaser only. Part 1 Math Card Games to Play

Unit 6 Geometry: Constructing Triangles and Scale Drawings Introduction In this unit, students will construct triangles from three measures of sides and/or angles, and will decide whether given conditions

Setting up the Chessboard Chess is a very old game. People believe that it originated in India in the fourth or fifth century but no one really knows who invented it. Chess is an intellectual competition

Starting and Ending Formal and Informal Presentations Do the extended speaking presentation task (e.g. IELTS Speaking Part Two) that you are given. Do the same presentation task, but this time pretending

How to create a quiz Turn on editing mode. Scroll to the section of the course where you want to add the assignment. Choose "quiz" from the "Add an activity" drop down menu. Give the quiz a name. Provide

Addition and Subtraction Games Odd or Even (Grades 13) Skills: addition to ten, odd and even or more Materials: each player has cards (Ace=1)10, 2 dice 1) Each player arranges their cards as follows. 1

SIMPLE CROSSING - FUNCTIONAL PRACTICE In this simple functional practice we have pairs of strikers waiting in lines just outside the centre circle. There is a wide player positioned out toward one of the

Private talk, public conversation Mike Askew King s College London Introduction There is much emphasis on the importance of talk in mathematics education. In this article I explore what sort of talk we

Vieta s Formulas and the Identity Theorem This worksheet will work through the material from our class on 3/21/2013 with some examples that should help you with the homework The topic of our discussion

Key Terms in This Session Session 7 Fractions and Decimals Previously Introduced prime number rational numbers New in This Session period repeating decimal terminating decimal Introduction In this session,

Circuits and Boolean Expressions Provided by TryEngineering - Lesson Focus Boolean logic is essential to understanding computer architecture. It is also useful in program construction and Artificial Intelligence.

Pigeonhole Principle Solutions 1. Show that if we take n + 1 numbers from the set {1, 2,..., 2n}, then some pair of numbers will have no factors in common. Solution: Note that consecutive numbers (such

by Teresa Evans Copyright 2005 Teresa Evans. All rights reserved. Permission is given for the making of copies for use in the home or classroom of the purchaser only. SAMPLE PAGES Please enjoy using these

stand up against it! 1. Begin by asking the children, What time is it! Teach them to respond, Integrity Time! 2. Ask the children, What does it mean to have Integrity? Teach them to respond, To have Integrity

DRAFT The Collaboration game An Over the Edge Experiment in Group Process Fiscal Policy Studies Institute March 7, 2002 Copyright, 2002 (see permissions on www.resultsaccountability.com) FPSI Collaboration

Against all odds Byron Schmuland Department of Mathematical Sciences University of Alberta, Edmonton schmu@stat.ualberta.ca In 1975, when I was a high school student, the Canadian government held its first

Informal and Formal Presentations Take the topic sheet your teacher gives you, prepare what you are going to say and then speak for two or three minutes. Your partner will listen to you and then ask for

Sam Chow One Player Games Bored MUMSians Han writes the numbers 1, 2,..., 100 on the whiteboard. He picks two of these numbers, erases them, and replaces them with their difference (so at some point in

Can you trace a star? Mirror drawing and brain learning Because of our brain we can do many things without thinking (walk, chew, ride a bike). But what exactly goes into such automatic motions? This experiment

page'277 Tangrams Tangrams Tangrams Students tear the tangram puzzle from paper and fit the Students fill in shapes on a Students make and solve yes- pieces back together. matrix. no tangram task cards.

Junior Soldiers Unit 9 : Lesson 7 Generosity! PURPOSE : For the children to explore and understand why it is important for us to be generous and how our attitude to being generous is important. Each of

Calculations Policy A shared document between parents and teachers. R. Fairgrieve November 2015 1 2 Introduction This calculations policy takes into account the changes in the curriculum since September

Issue Video games 1. What s the issue? Video games are in the news Grand Theft Auto 5 is a game full of violence and mayhem. You can drive and run through a fictional city, shooting people, running them

Five Free Customer Service Trai ning Games The following are five free customer service training games that we have used with clients during our customer service courses for more than a decade. We frequently

Savings Options This Session will help young people understand some of the different formal and informal savings options available, and understand how different products and services work. It will look

Distributivity and related number tricks Notes: No calculators are to be used Each group of exercises is preceded by a short discussion of the concepts involved and one or two examples to be worked out

Daily Fraction Five Fraction Five ~ Fifth Grade Laying the Foundation for a Conceptual Understanding of Fractions Fifth Grade FRACTION FIVE RATIONAL Fractions present a considerable challenge to most kids.

101 IELTS Speaking Part Two tasks about people, places, actions, things and times Save each section individually A to Z for future work Although it is impossible to predict the most likely topic for an

The Function Game: Can You Guess the Secret? Copy the input and output numbers for each secret given by your teacher. Write your guess for what is happening to the input number to create the output number

Unit 6 Number and Operations in Base Ten: Decimals Introduction Students will extend the place value system to decimals. They will apply their understanding of models for decimals and decimal notation,

Math Card Games to Print and Play For School or Home Education by Teresa Evans Copyright 200 Teresa Evans. All rights reserved. Permission is given for the making of copies for use in the home or classroom

Lesson 1 Healthy Teeth Are Important Main Lesson Plan Learning Objectives After this lesson children will be able to Say what it means to be healthy. Explain why their teeth are important parts of their

Using OK in English Speaking activities for discourse markers part 1 by Lindsay Clandfield OK (pronounced and sometimes written as okay) is one of the most important and useful discourse markers in English.

CHAPTER 4 One pile, two pile, three piles 1. One pile Rules: One pile is a two-player game. Place a small handful of stones in the middle. At every turn, the player decided whether to take one, two, or

FIRST GRADE Number and Number Sense Hundred Chart Puzzle Reporting Category Number and Number Sense Topic Count and write numerals to 100 Primary SOL 1.1 The student will a) count from 0 to 100 and write

1.4 Factors and Prime Factorization Recall from Section 1.2 that the word factor refers to a number which divides into another number. For example, 3 and 6 are factors of 18 since 3 6 = 18. Note also that

In Vikings: Warriors of the North players take the role of Viking Jarls, who are fighting for control of the North and the Konung s crown. The power will be won by the first to loot all the villages and

Math Games with a Deck of Cards Math Games with a Deck of Cards Place Value Battle Materials: one shuffled deck of cards with the tens and face cards removed Shuffle the cards. One player deals the cards

Fractions and Decimals Survive Math 5 Fractions and Decimals Survive Math 5 Fractions and Decimals i 2005 by Open School BC This work is licensed under the Creative Commons Attribution-NonCommercial 4.0

Money Words! Build your financial word bank with these fun vocabulary cards and games. Where Are We Going? Students will extend their financial vocabularies by playing a variety of vocabulary games. Get

Presentations Phrases Prepositions Pairwork Student A Choose one of the sections below and read out one of the example sentences with a gap or noise instead of the preposition. Your partner can guess the

Easy Casino Profits The Easy Way To Beat The Online Casinos Everytime! www.easycasinoprofits.com Disclaimer The authors of this ebook do not promote illegal, underage gambling or gambling to those living

Drama Warm up and cool down games Warm - up /name games Play the following games to warm up the group and to help you to begin to learn their names. 1. The name game Each person jumps into the circle and

Game 9 Race to 20 140 Time 20 minutes Materials dice, 1 per pair of students double ten-frame (Reproducible D), 1 per student counters, 25 each of two colors per student Extension dice with a small sticker

Fun with Numbers! A 1 st Grade Number Sense Unit Lindsi Shanahan- Kelliher Elementary lshanahan@kelliher.k12.mn.us Executive Summary This unit is designed to build number sense through a variety of games

Abercrombie Primary School Progression in Calculation 204 What you need to know about calculations Mathematics will be at the core of your child s schooling from the moment they start to the moment they

Card Game This problem gives you the chance to: figure out and explain probabilities Mrs Jakeman is teaching her class about probability. She has ten cards, numbered 1 to 10. She mixes them up and stands

What is rounding? Rounding is deciding which ten, hundred or thousand a number is closest to. 1. Ask yourself What place am I rounding my number to? Nearest Ten? Nearest Hundred? Nearest Thousand? 2. Think