BUIDL SEOUL 2018 (DAY 2): Presentation from Loi Luu
BUIDL Seoul 2018 · November 2018 · 22:04
Loi Luu, co-founder of Kyber Network, argues that scaling general-purpose blockchains has hard limits and that application-specific solutions can work better. Drawing on user feedback about unpredictable fees and slow confirmations on Ethereum, the talk reviews faster consensus, sharding, Plasma and state channels, explains where each falls short, and sketches a sharding design that places an application's components on separate shards with a coordinating main shard. The Q&A touches on automated market making.
Speakers
Topics
From BUIDL Seoul 2018, hosted by Kryptoplanet.
Transcript
hello everyone my name is Lulu I'm from fibre network and the title of the talk is a bit long but you know the general idea is that we are not going to to you know focus on proposing a new solution here but rather a new perspective when it comes to you know desire a scaleable solution approach for public blockchain so before I go into the details this is a quick big trout myself and what we do at Khyber I've been like you know working on you know doing research academic research on public blockchain since 2014 and one of the major workers it's a first peer-review Charlotte
protocol for public protein that silica is using and after that we created Oriente the first open-source smart contract by fire for for that allows the developers to verify the smart contract before they actually deploy on you know the main public internet work last year together with other co-founders we created Kaiba Network which facilitate decentralized to consoie auditorium and basically what we want to do is we want the decentralized open swap to be used and integrated everywhere including all the wallets or the financial protocol and even you know
in 20 token payments so there's a coming conference at con I think in May or something that you can purchase the ticket from any of your C 20 token that type of support so please watch our for it we have been like integrating with several major financial apps and protocol auditorium like million port set protocol b0x and there are more to come so this is not a talk about fiber but we really want to share our perspective when it comes to like you know scalable blockchain because Khyber has been has been live for more than six months and
we have handling a thousand a meter you know true volume per day with like you know thousand of generation as well and the main feedback that we received from our from our users when it comes to like using decentralized application on it a room is a first of all the fees are unpredictable so the users are willing to pay for more fees if you know it's more convenient for them but they are not happy if the fees it's like you know one dollar today and like ten dollars tomorrow and certainly you know there's a long confirmation term because you know there's a huge difference when you when you use like Facebook or Twitter or
any like centralized application then you know using any decentralized application on it or iam so you may have play to it like you know from 15 seconds to something like 20 seconds and for cable perspective because we have been working and integrating with more than 30 different projects in the space we really think that scalability should not come at the cost of cross-platform integrations so far most of the integration are done fully on chain that means only smart contract of the smart contract so the moment that we introduced something like you know new sidechain or new plus much a new layer to then you know there's going to be
some trust compromise or there's there's going to be like you know technical overhead when it comes to integration between different platforms so that's why we think that the transition per second metric is not everything because it's just too broad it didn't capture the necessary details but we think is more important is you know a scalable blockchain should also include low generation fees low latencies and it should allow the users or the developer to run and execute complex connections so that we could you know facilitate
more integration between different platforms and this is what we consider to be much more important to enable real real world use cases especially like you know all the financial applications that are gonna be run on the public blockchain now let's revisit all the existing most of the existing scalability approaches that are popularly known today and see you know what is missing so the post law book is you know or the new proof of stake consensus mechanisms so here there on one hand we have like you know a
Quran and Definity they use or the verifiable random function by its proofs take two randomly you know select the leaders to propose the block faster and on the other hand we have you know all the DPOs and and and liquid POS protocols that make some certain make some certain decentralization trade-off to scale up and help like us and pesos are the candidates so this solution definitely offers some level of scalability but unfortunately they are not the ultimate solution the main reason is you know all this protocol they are going to introduce a lot of
data to be transferred and stall in the network and the amount of data grows as the network grows so this is a developer conference so that's so can I ask like how many of you are running eatery on public note like foo note ok I see only three hands yeah so okay in case you haven't it's really hard to you know run and maintain it and maintain the note for a long time because of you know you have to process like huge sum our plate already on it or iam and with all these you know scalable public blockchain that us and and Tasos are introducing the
amount of data that you need to store and process may like you know may his tens or even hundreds of terms and it's really hard to sync it home from scratch today that's a you know sad shoot so eventually all these protocol they have to resort to you know shutting or or like layer to solution to improve the situation otherwise at the end of the day only a few notes are gonna be you know running the entire network and it's pretty centralized in that way now let's talk about shouting shouting is pretty nice because you know it offers scaling without increasing the resources
from the existing nodes so the high-level idea of shouting is a instead of you know growing one single chain users you know split the network into different smaller network right so that each of these smaller network or each of these sharp who maintain part of them part of the network so you can just grow by adding more nodes to the network creating more sha with how you know requiring all the existing nodes to you know introduce to introduce more resources to process more data so the main limitation of shutting is there's a
there's something called cross cut communication because there's a need to communicate you know between different shop and that may cancel out or the scaling efficiencies the main reason is because the data now is not in one central place the data is like everywhere now right and there's no direct way to get access to data you know on different shot and the end results that you may have to require you know more than one generation for what is done in one single generation today on it areum so let me just give you one example one concrete example suppose you
want to book the hotel and the flight ticket at the same time so this is a very like you know well known and bikal example that demonstrate the limitation of shouting and the hotel and the flight ticket system on different shot right and you don't want to book one without the other so you want to look like you know two at the same time otherwise you know the ticket doesn't make sense for you anymore so currently you can do on like do all this activity on idiom using one single generation you can just have a smart contract to talk to both you know the hotel contract and
the and the flight ticket system contract and everything is done within one single generation but in in this case of in this scenario if you have a Chardonnay terrarium you may have to use something like at least like regeneration you have to lock up the the flight ticket first and then you book the hotel ticket and then you after everything is successful you release the flight ticket so all the scalability gained from shutting is canceled out because of this one and then there's a new line of work coming in in the in the last year called plasma and plasma is
very promising because it allows you to move all the generation to site in and then you can use something called crypto economic to avoid the cheating to avoid the cheating from the valid from the validator on the plus machine there are still several challenges for plasma including like you know data availability the mass exit you know just imagine they are like millions of users using the plasma team and then something happened to the validator now all sudden like millions of people have to go back to the root chain or a thorium currently there's no like ultimate solution to address all these challenges yeah
what people are doing so far is just you know making more assumption to assume that the problem do not exist or you know to to to scoped out the problem and so that's why we have been seeing like you know several version of plasma plasma cash plasma actually and then there are like more plasma or something coming up but the main limitation of plasma is the most well known way to scale up a plasma chin is to add more layers right because you you couldn't you couldn't expect
like you know someone to run something like by Nance or like up beat on one single plasma chain right because the amount of data and the computing power that you need like you know to process that amount of generation on a bit or by name is huge not not everyone can set up the huge like you know data center to do that and in plasma what you have to do you add more layers and what happened when you add more layers you introduce more complexity to both security and you know interoperability now the game the exit game for plasma with only one single layer is really complicated right
now you add more layers and then we have state channel which is inspired by the payment channel the the high-level idea here is you can do more challenge and option right and at the end of the day use this like you know do the settlement on chain requiring only one or two transaction so this is very nice it it reduces the amount of generation on the on the main chain but the thing is it's harder to generalize state channel because like for example you want to support it for complete connections you want to support you know
for multiple parties that you don't know like you know which orders the party are going to participate in the protocol and you know state and coding can be hard and can be really large and you know something the the state to the main smart contract may be more expensive than the value at stake and then we also have the availability assumption for all the parties involved so that's why stage I know is more suitable for like turn-based games or applications in which you know the order that the players or the parties are going to participate in the protocol now this is the key challenge that we
realize after like previewing all these existing solutions for you know scalable blockchain we realize that all these solution like the the key challenges are like oh the solution they cannot make assumption on the execution of the applications so that's why we have to design the protocol as generic as possible so that we can handle all the possible outcomes of the applications and at the same time we we could see that all the solution or the existing solution they all you know initially demonstrated with some specific use
cases right and and later on they realized it's much harder to generalize the solution for example for state you know we have you know payment channel and then for plasma we have plasma cash there's no like you know general plasma yet so the question that we want to raise is you know is it even feasible to be a general scalability solution or should we even focus on you know looking looking for a general scalability solution now in order to answer this question
let's revisit the the famous scalability Chalam ah right so basically between all the three properties here scalability a decentralization security you can pick at most two now this trilemma makes sense because it allows people to make some certain trade-off to scale up the blockchain right like for example for us they can make the trade-off in decentralized in decentralization by allowing only 21 nodes to propose a block in plasma there's some chair of in like security assumption like you know the users they have to monitor all the validators to prevent fraud and to exit
like you know in the timely manner but what scalability dilemma over loops is that it ignore or didn't occur for some certain share of that that other that other people can make as well now for example we have a very like convincing motivation from the real world right let's take a look at the chip design they can actually design something that scale up really really high and actually play high performance by being more focused on what kind of application that they can support so we have CPU that can dance like that can do like everything right and then we have CPU that focus
more on like parallel you know graphic graphic processing applications and then we have like a CH Cyg that just focus on only one single application and that performs like tens or even thousand time much better than CPU so this is the main motivation for the scalability Quadra lemma that we propose so the idea here is that you know you can make some certain trade-off to screw up your blockchain since by determining what are the application that you can support that you want to support this is because if you know what you
want to support then you can make some certain assumption on the execution of the applications and you can tailor you know specific solution the leverage this assumption and you know scale up accordingly so for example we can do something interesting with shutting here and this is what we call project gamos we know that you know many application can benefit greatly from shutting for example or the application that have multiple components and each of them do not talk to each other so frequent right and you know you can you can design some simple shutting strategy like you know
you put each component in a separate shop right and then all the commercial communication it's much less compared to the you know entire communication and this approach can be used like for either layer 1 or layer 2 solutions so this is a simple like high level design I'm not gonna go into the details but basically you put like each of the component of your system in one of the shop and then there's one main shot that help like coordinate with all the shot in your in your system so we can do something like you know Charlotte decentralized change we can have we can
have one trading pair corresponding to one local shot and then the main dementia can facilitate the transfer of the base currency in this case this is like ether or Bitcoin and you can also like use this architecture for something called decentralized sharing okay sharing economy write something like origin protocol in which you can have extra shot represent or thinking or takes care of 1 0 graphical location so if you have like like decentralized uber you can just have like one shot taking
care of like Korea and one shot taking care of Singapore and and something like that yeah so to conclude we we we want to raise the question about you know scalability scaling general-purpose block chains because we think that it might not be you know feasible to do so and we encourage the developers to start looking for scalability solution that worked better for their purposes instead of you know trying to be a platform that worked for everything and we just you know started the project almost at khyber and we love to you know welcome
collaborators so please reach out to us or enjoy our technical group our telegram liverpool group you know we will have to talk to you more there thank you I think I still have a couple of minutes questions questions hey Bush you want to know if you could compare in contrast a Kyber Network versus the Uni swap exchange I actually don't know the differences all right you tell me so I think I think you need swap is quite
similar to like Banco right in a sense that they have the a user what we call automated market making mechanism I think that mechanism works well for like illiquid tokens right there like for liquid tokens you really need like you know how like much more inventory to support like reasonable spread yeah so in Khyber we do support like both like automatic automated market making and then like manual I can making like we have like someone behind the scenes to actually market make for for the thing for for the pair efficiently I talk German and Dutch in my session this was introduced there any questions
thank you it comes on me back [Applause]
