BUIDL ASIA 2019 (Day 1) : Presentation by Yongdae Kim

BUIDL Asia 2019 · July 2019 · 26:07

Yongdae Kim, professor at KAIST, shares a year of research on evaluating blockchains in theory and in practice. Topics include miner hopping between Bitcoin and Bitcoin Cash and the conditions for stable coexistence, the tension between incentives and decentralisation, measurement of Stellar's network and its cascading failure risk, resource-management attacks found in EOS, and an emulation platform for testing large networks cheaply.

Speakers

Topics

From BUIDL Asia 2019, hosted by Kryptoplanet.

Transcript

all right I hope everyone had a pleasant lunch and now we'll begin our afternoon sessions yeah woohoo session is check every samira who an end a gig it was soon sorrow Tania and Peter Horace adore inciting the canyon the hydrogen high-stake numbe using images Mira theoretical and practical evaluation of blockchain one year after that new to zero my semester she has Mita Komatsu Pataki Romina oh hello everyone I gave this talk last year and then we have more results so I'm happy to have new presentation on

theoretical and experimental evaluation of blockchains so so most of you are either designing implementing running or funding blockchain or business model using blockchain right but do you know how good yours compared to others in my lab with my students we've been doing actually many different kinds of evaluation technology for blockchain first of all we do some theoretical evaluation that shows road to or not to follow and we do network measurement base analysis that shows currents their

state of blockchain network and also we do traditional security analysis or platform security analysis that shows some of the vulnerabilities and lastly we work on immigration and evaluation technology for the future what we can how you can evaluate different block chains so today I'm going to talk about all these four in just 23 minutes left so why am i interested in technical evaluation of blockchain first it is actually very possible we can do technical evaluation because the white paper in an academic paper includes theoretical evaluation and all the

proofs and sometimes implementations and many of those block chains are open sourced and also many of the public block chains most of you are interested you can actually join the network and you can actually measure different things but the reality is actually because you are pretty busy trying to earn money most of you are not actually putting much attention to the evaluation technology itself and when I talk to VCS they said oh there is a investment or right now we have two actual get the best expert as soon as possible otherwise we will lose money so they do have I I will just care about who's the

developer who's the professor then you know I'll decide my investment and also there's a huge gap between the theory and practice I mean many of the blockchain if you have seen the white paper and the implementations and the deployment deployed action networks are pretty different and the gap exists but actually we I mean we sometimes look at only white paper and without looking at the details about the implementations and also the lastly there isn't the blockchain evaluation technology itself is actually lacking in my perspective so before I mean when I present last year I

had just one paper published which is the one of the theoretical evaluation and now I have some number of papers published or in submission I have like three more papers published and three more papers in submission and I'll be talking about these all these papers except to probably one or two and these papers are actually separated into the red ones that they're it Colossus green ones are measurement based analysis and the blue ones are actually system platform security analysis and the last one is the evaluation technology we are developing so let's go one by one so let's start with our theoretical

evaluations we've been writing our four different papers but let me talk about only two that might be your interest so this one was published in I to pre security and privacy or so-called Oakland Oh in the paper we actually look at the pickling or in among the miners so between like Petey's when the BTC NB c CH split a lot of miners were moving between BTC and beseech and we were asking if these people were moving like this eventually what would happen to the dynamic city of this -

behavior and the paper actually oops let's go we have the main result we found to equilibrium there is a one yellow point Oh let me start with the explaining about the graph x axis is a fraction of pickle miners those people who are moving between the BTC embassy H y-axis is a fraction of Co MB - like PCH miners and assume one coin B price is equal to K coin a price so right now our K is about three I mean three percent 0.03 and because pickle miners + piece

each - plus b TC miners is 1 X plus y is smaller than equal to 1 and this is the result the yellow dot is actually one of the equilibrium where BTC miners and bch miners are stably coexist and on the bottom you see there's a line between that k 0 to 1 0 this is the this is the line of equilibrium where once we reach their line then there exists zero beseech miners so there could be two equilibrium one is that point that shows

this stable stable coexistence of the BTC NBC H and the bottom line when we reach the bottom line basically you're gonna have 0 beseech miners so this and the arrows showing that once you are in zone 1 zone 2 you will be moving to stable coexistence but if you go down to zone 3 it will make bch collapse in the miners so you can look at the paper in detail but actually we also do the measurement of the time right after the BTC BCH split and at that time there

were huge after a pickling among BTC Molino smbus each miner and we we plotted the points on the graph and it was actually when you look at the zone B's or C's on DS on e and F actually it was going to the direction of the BCH collapse and luckily BCH decide to do a new difficulty deploy new difficulty adjustment algorithm and there was a in LSE in graph H there was a hard work in BCH that moved the point to the the good zone and right now BCH and BTC are

stable ecologist in terms of the mining even though the price is decreasing but in the paper we did actually prove another thing that when k percent of miners are involved in automatic mining then BC where PCH will be endangered the day before yesterday K was about three percent so what is automatic mining I think some of the people working in the mining industry they are trying to help miners to get their best profit and one way to do it is by based on price and the difficulty you automatically choose which coin to mine

we basically prove that if three percent of miners are moving automatically the NBC H will die what about e TC versus is a ETH so even in case will be th so the our nurses actually depends on what kind of difficulty adjustment algorithm the same analysis works if eth change its difficulty adjustment algorithm to BTC then other idiom variants will also suffer from the same problem for the detail you can take a

look at the paper and the next thing we been recently working on incentivization versus decentralization debates a lot of people know that once we start incentivizing I mean when Satoshi come up with the you know pure W he introduced incentive ideation to increase the decentralization it turns out that actually I mean Bitcoin is being centralized so introduce an instant valuation to increase decentralization but that are leading to centralization right and our question is is this really generic that if once you start doing isn't valuation in any

permissionless blockchain we will it be centralized some people have the insight and for example Sylvia McCauley has the insight that yeah I mean we are not doing incentivization because it will lead to centralization but is there any security proof or theoretical proof and we come up with the two most important requirements for the full decentralization some of some of the people agree on this or some of the people who don't we own this and these two requirements can be expanded to four different requirement and this is a sufficient condition so the first condition is not with any resource power can on that profit and the second is

delegation should not be more profitable third is Sibylle should not be more profitable and the resource power ratio between the any two nodes convergence I mean the resource power should be converged to one or very close to one so we won pretty flat power to make it full decentralization and we actually proved that once any blockchain satisfy these four condition then it can reach the frequent for decentralization but unfortunately we also proved that satisfying all these four conditions at the same time is impossible so if you're interested take a look at the paper

whoof now this is the natural measurement based analysis so I mean somehow we got interested in Stella and this one was presented in a workshop in Nigeria and we were interested in Stella's liveness so we we were interested in Stella so we basically put some nodes in Stella and SK collect the data network architecture of the Stella and as you heard the Stella is actually quite centralized and these red nodes are run by the Stella foundation and when we measured actually Stella was actually quite centralized and what we found is that there is some kind of domino effect

or we call it cascade a failure that two of the this Stella Foundation know dies then the whole Stella network will collapse or they cannot produce any block so there was the result in the paper and so after we our paper got accepted we actually contacted the Stella Foundation and they be measures has responded to us and they say oh we value a safety more than lightness and there were a lot of discussions in the reddit and so actually but I mean even if he said that but actually the Stella Network start doing decentralization so

they put a lot of manual effort as you know the Stella requires manual effort to decentralize it so they put a lot of effort to decentralize it so and around May first actually to not failure does not actually increase do any collapse but there were 2200 551 cases of three node failure lead to a hundred percent cascade failure I don't know like three cases of two node failure versus 251 cases of renal failure I don't know which one is better but anyway they were improving in terms of two versus three but on May 15th actually Stella died because of the exact same reason we

focused it the cascading failure and actually this is actually the Stella died for two hours and it couldn't have produced any block and so on the same day about 20 hours before actually stellar collapse we actually collected the data about the network there were 28 cases of two node failure while leading to 100% failure and one of those 28 cases actually happened that's why the cascading failure happened inside the Stella and died that this was what happened and we do some system security

analysis this is actually the first time I talk about it because the paper got just got accepted to using security now using the lock shop on offensive technology and this is in here we actually we analyzed the years resource management the paper will be available around May and so please take a look at it when the paper is published we come up with oh actually four different attacks one is called block delay attack and the second and third is a CPU and RAM drain attacks and the first one is Ram ransom no Ram summer attack where the attacker can't drain customers ran

very quickly so they were this will be a trip published in using soot and I think the paper is actually pretty interesting and the first attack are we talking about just a result not the details so the first attack the attacker put two 2368 years as a stake then using the stick you can stop the use for nine minutes stop the years for nine minutes that is accounting for a hundred eighty-one thousand years and and we found this vulnerability and of

course we report it to use and they give me some good bug bounty fifteen thousand dollars not 181,000 but I mean anyway so this is one of the attack and this is actually very interesting I mean this happened because the u.s. tried to process the smut contrary as soon as possible and this is another article of RAM drain attack within 30 30 seconds we can actually drain the RAM Tony megabyte of RAM all the smut contract okay very quickly using this attack and the last one is a ransom well Rams Ameritech and

within 22 seconds we can actually drain users to gigabyte of memory within 22 seconds and this is the maximum memory or user has inside use so if you're interested take a look at the paper once it is published it is not available right now because we are still communicating with the ears right now and the last kiss I have 7 minute 50 seconds so within I mean last year we talked about bleep blockchain emulation evaluation platform and so I think I mean as I've been saying the blockchain

needs evaluation because we're organized evaluation can reduced unpredictability but the blockchain evaluation is actually quite difficult because the blockchain uh took is actually very large and also very decentralized and also p2p is actually unpredictable and we don't know exactly what's going to happen in each of the blockchain so we want to develop some kind of evaluation technology which is cost effective and scalable for evaluating large-scale networks and we want to have reproducible evaluation technology for unpredictable European Network like you know something happened and you start

debugging and you have no data on how you debug right so so that's why we want some kind of reproducible evaluation and also we want some kind standardized or evaluation platform where you can actually compare different block chains I mean this may not be they're actually good platform to evaluate very high scale or smart contract platform for the consensus algorithm perspective I think this could be a very good candidate so I'm thinking about our three customers the first customer is the student I mean when they think about the students I mean I don't know many of you you are the student who are working in the

blockchain who used to be a student were now working in the blockchain company but did you ever implement like 1,000 node Bitcoin experiment $1,000 bid coin as a student probably not because there are mahjong cost is too expensive and probably you have no platform to test 1,000 not Bitcoin network right and so when you start working the company they basically you have no experience of experiencing actually are implementing the blockchain so I want to provide some kind of platform for student who can actually experiment dispute system and we want to provide some kind of skeleton

blockchain so that students can implement their own block chains or as part of the class of I'm sorry yeah as part of the class or people students can do research with this platform so in some sense as a if you're a computer science student who has experience in operating system I want to provide some kind of nachos or pintos kind of scalar to operating system instead of Skeletor purring system I want to provide a skeleton blockchain and they're talking platform where students can implement them even for developers I've been talking to a few many of the developers and many companies actually they said debugging and testing is actually a huge

headache and because the many of the blockchain have to be fault tolerance but implementing the middleware to inject forth is a pain in the ass and everybody has to put some kind of a meter they have to put I mean huge effort to implement though you know failure injecting injecting module right and of course if you if even if you're working on test net you're going to spend tons of money at Amazon right before it is actually it's being stabilized so I want some kind of platform where developers can test large-scale network on a single platform and also in the long run I want to provide some kind of platform for VC and

X maybe for a test net case they can check whether each of the blockchain who want their funding from them can test how good they are so let's get so our blockchain platform has a triple mod multiple modules so the first is a meta blockchain and this meta blockchain has multiple things it has the you know they both discovery gossip different gossip modules different consensus algorithms and and traffic generators transaction generators and and we also have network emulator that supports network emulation

so though the emulator we use is called shadow shadow was actually implemented by one of my former student who developed shadow for actually toy experiments but I realized that actually the the Cheryl can be used for blockchain emulation so we are now modifying shadow and actually in the long run right now share is only supporting C++ blockchain so unfortunately him not many of the blockchain can be supported but in the wrong run we want to develop language independent emulation where you can run different block chains without

modification and we want to provide dynamic that dr. pulao to change the whole dynamic port injection so that actually you can do standardized a failure testing and performance testing on it and of course we want to have a valuation layer so that we can provide different transactions and different topology to test and some visualization to support centralized debugging and those kind of things in the single platform so right now the work is going pretty well right now we have a few experiments a few experiments we run 1,000 our six node in ec2 I mean in

different continents and that requires about 75 a seven point five cents okay and for 1000 note probably you will be spending $120 on Amazon but on our emulation platform it's a single host so it cost about 30 cents so this is actually very very cheap and the for crate and different things actually show that we are actually very close to real life and also my student have I mean I used this as in my class and some students actually tested different kasib algorithm such as random and Plumtree

Garcia algorithm 8 they come up with this table showing the trade-off between the random gossip versus Plumtree that's it and also we also did this is actually what is it eclipse attack so we launched Eclipse attacks and usually once used I mean experiment Network attacks on blockchain then probably there is no platform to do it but on our blood on our platform we could actually test the Eclipse up tag as well and to improve the performance the current bottleneck for our platform is actually

memory and we are actually providing deduplication and we actually implementing more and more deduplication to provide higher scalability right now we are scaling up to about 2,000 or bit coin network so conclusion so yeah I'm interested in blockchain technology evaluation technology in terms of theoretical evaluation item measurement and platform security analysis and lastly emulation evaluation technology so that we know how good your blockchain is so ask us about your blockchain and we will do it for you if you give me some money

thank you very much [Applause]