Cryptokitti ES: Presented by

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 29

CRYPTOKITTI

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

Smart Co ntracts – Code that can execute on the Ethereum network


Ether – The native currency of Ethereum used to execute smart contracts
Wallet – Software to manage keys and generate transactions e.g.

MetaMask Explorer – Software to navigate a blockchain e.g. E t h e r s c a n


Gas limit- The gas limit is the maximum amount of gas that you are
w i l l i n g t o s p e n d o n a t r a n s a c t i o n . T h i s i s w h at y o u o ff e r t o p a y t h e
m i n e r s f o r p r o c es s i n g y o u r t r a n sa c t i o n . T h e m o r e y o u p a y, t h e f a s t e r
your CryptoKitties transaction will get processed .
3
“Crypto Kitties are digital, collectible c a t s built on the E th ereu m blockchain.
They can be bought and sold using ether, and breed to create new cats with
exciting traits and varying levels of cuteness.”

GENISIS CAT
GEN 0
4
BACKGROUND

BLOCKCHAIN BASED
AXIOM ZEN -2 DEC 2017
ND

DECENTRALIZE APPLICATION FOR LEISURE AND


RECREATION
MORE THEN TWELVE MILLION DOLLARS
HARD CODED ON ETHEREUM NETWORK
MORE THEN 50,000 CRYPOKITTIES
PURPOSE
 BUYING, SELLING AND TO BREADING DIGITAL CATS
MAKING BLOCKCHAIN VIRAL FOR FUTURE PURPOSE
YOU CAN BE RICH BY CREATING ,SELLING RARE CATS
GENETIC ALGORITHM
• IS AN OPTIMIZATION TECHNIQUE USED TO SOLVE NON-
LINEAR OPTIMIZATION PROBLEMS. IT WORKS PRETTY
MUCH THE WAY BIOLOGICAL GENETICS WORKS.

• THE ALGORITHM THEN GENERATES SUBSEQUENT


SOLUTIONS FROM THESE PARENT SOLUTIONS USING BIO-
INSPIRED OPERATORS LIKE: SELECTION, CROSSOVER, AND
MUTATION.

• WE WILL ONLY BE USING BINARY CASES I.E. CASES WHERE


THE GENES CAN BE REPRESENTED AS 1’S AND 0’S.
KINDS OF GA

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.

NEXT, CLICK ON THE PINK BREED NOW BUTTON

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 CONTRACT SETS THE MANAGEMENT SYSTEM OF


THE ENTIRE CONTRACT
VARIOUS ADDRESSES AND CONSTRAINTS FOR
OPERATIONS THAT CAN BE EXECUTED ONLY BY SPECIFIC
ROLES. NAMELY CEO, CFO, AND COO.
MODIFIERS FUNCTIONS
PAUSED FUNCTIONS
CENTRALIZED
KITTYBASE:
This is where we set ground rules for kitty creation.
KITTYOWNERSHIP:
KITTIES AS TOKENS
• CRYPTOKITTIES CONFORMS TO THE ERC721 TOKEN SPEC,
A NON-FUNGIBLE TOKEN TYPE THAT LENDS ITSELF
REALLY WELL TO TRACKING OWNERSHIP OF DIGITAL
COLLECTABLES LIKE DIGITAL PLAYING CARDS OR RARE
ITEMS
KITTYBREEDING


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.

• RECEIVE BACK A LOGIN TOKEN.


• USE THIS LOGIN TOKEN TO LIKE A CAT.
• REPEAT AS MANY TIMES AS YOU LIKE.
 Public Ethereum network ( approx 20,000 nodes)

 Other applications can call the Crypto Kittie smart contracts

 True ownership of your digital assets determined via private keys

 Secure, can’t change asset state without signed transaction

27
 Nearly Broke the Ethereum Network

❌ Increased Transaction Fee s a s usage / congestion increased

❌ Ether Price Volatility affects costs and usage on public network

❌ Highlights the Scaling Challenge for Public Blockchains

28

You might also like