Cryptokitti ES: Presented by
Cryptokitti ES: Presented by
Cryptokitti ES: Presented by
ES
PRESENTED BY
RAZEEN AHMED , AIN UL ZIA
KOMAL KURSHID
CONTENTS
WHAT ARE CRYPTO KITTIES?
BACKGROUND
PURPOSE
GENETIC ALGORITHM
NON FUNGIBLE TOKEN –ERC-721
HOW TO PLAY
SMART CONTRACTS
GLITCHES
BAD /GOOD
FUTURE
E th ereu m – A distributed public blockchain network that can execute code
GENISIS CAT
GEN 0
4
BACKGROUND
BLOCKCHAIN BASED
AXIOM ZEN -2 DEC 2017
ND
SELECTION:
CROSSOVER:
MUTATION
CRYPTOKITTIES USES THE GENETIC ALGORITHM TO CREATE A
NEW KITTY. IT USES THE CROSSOVER MECHANISM TO “SIRE” A
CHILD GENOME USING TWO PARENT KITTIES. THIS CHILD
GENOME IS USED TO GENERATE A NEW KITTY.
NON FUNGIBLE TOKEN-
ERC721
FUNGIBLE/NON FUNGIBLE
ERC-721
THE ERC-721 TOKEN STANDARD HELPS CREATE NON-
FUNGIBLE TOKENS. IN MANY WAYS,
ERC-721 GAINS ITS NON-FUNGIBLE PROPERTIES BY
CAPTURING THE OWNERSHIP OF THAT PARTICULAR
TOKEN. THIS IS WHY TAKE OWNERSHIP FUNCTIONS ARE
INCLUDED IN THE ERC-721 STANDARD
HOW TO PLAY CRYPTO
KITTIES
FIRST, YOU NEED SOME ETHER
INSTALL META MASK WALLET
TRANSFER SOME ETHER TO YOUR WALLET
CREATE A CRYPTO KITTY ACCOUNT
GO TO THE KITTIES MARKETPLACE
BUY SOME KITTIES
1
Crypto kitties market place 2
HOW TO BREED
IT IS IMPORTANT TO REMEMBER THAT ONLY THE DAME (MOTHER) GETS
TO KEEP THE CRYPTO KITTY, SO IF YOU HAVE A SIRE (FATHER) YOU
WON’T GET ANYTHING. HOWEVER, SOME PEOPLE CHARGE FOR THIS
SERVICE (KNOWN AS A SIRING FEE) IF THEY HAVE A RARE SIRE!
AT THE TOP OF THE SCREEN, CLICK ON THE SEARCH BOX.
BELOW THE SEARCH BOX, TICK THE BOX NEXT TO SIRING.
YOU CAN SOMETIMES FIND SIRE’S THAT ARE HAPPY TO BREED FOR FREE,
WHICH IS GREAT! I LIKE THE LOOK OF KITTY 5144811. FIND THE SIRE YOU WANT
TO BREED WITH AND CLICK ON ITS PICTURE.
13
1
4
SMART CONTRACTS
Kitties Have Codes? You Gotta
Be Kitten Me!
Yes!
• CONTRACT KITTYACCESSCONTROL
• CONTRACT KITTYBASE IS KITTYACCESSCONTROL
• CONTRACT KITTYOWNERSHIP IS KITTYBASE, ERC721
• CONTRACT KITTYBREEDING IS KITTYOWNERSHIP
• CONTRACT KITTYAUCTION IS KITTYBREEDING
• CONTRACT KITTYMINTING IS KITTYAUCTION
• CONTRACT KITTYCORE IS KITTYMINTING
IMPORTANT POINTS
OPEN SOURCE GAME CODE RUNS ON THE ETHEREUM
,ALLOWING THE SELLERS TO SELL, BUY AND BREED THE
COLLECTABLE CATS.
CODE IS WRITTEN IN SOLIDITY , WHICH CONTAINS
FUNCTIONS FOR HOE TO CREATE CATS, WHAT ARE THEIR
FEATURES ,OWNERSHIPS ETC.
IMAGE DATA IS STORED ON WEB SERVER, HENCE NOT
COMPLETELY DECENTRALIZED.
KITTYACCESSCONTROL:
THIS IS THE CONTRACT WHERE WE SET THE FUNCTIONS REQUIRED FOR
TWO KITTIES TO BREED AND PRODUCE A NEW KITTY. LET’S TAKE A LOOK
AT HOW THE FUNCTION WORKS
MATING PROCESS
BIRTHING PROCESS
THE “EXTERNAL GENETIC COMBINATION CONTRACT” (GENESCIENCE) IS
STORED IN A SEPARATE CONTRACT, WHICH IS NOT OPEN SOURCE.
ONLY ACCESSIBLE BY THE CEO
THIS EXTERNAL GENESCIENCE CONTRACT IS LATER USED IN THE
GIVEBIRTH() FUNCTION
THE KITTYBREEDING CONTRACT CONTAINS A METHOD FOR THE CEO TO
SET THE ADDRESS OF THIS EXTERNAL CONTRACT
CryptoKitties had a glitch
that allowed for unlimited
automatic likes
• THERE EXISTED A GLITCH THAT ALLOWED
USERS TO MAKE AN ABSURD AMOUNT OF
MONEY IN CRYPTOKITTIES THAT NO ONE
HAS BEEN AWARE OF, OR SO THIS GUY IS
CLAIMING.
• ROBERT DURST, A ‘FULL STACK ENGINEER
• HE AUTOMATED THE LIKING PROCESS
• GENERATE A PUBLIC/PRIVATE KEY-PAIR.
• DIGITALLY SIGN THE WORD “CRYPTOKITTIES” AND SEND
THIS SIGNATURE ALONG WITH YOUR PUBLIC KEY TO THE
CRYPTOKITTIES API.
27
Nearly Broke the Ethereum Network
28