BUIDL SEOUL 2018 (DAY 2): Presentation from Loong Wang
BUIDL Seoul 2018 · November 2018 · 18:17
Loong Wang, CTO of Republic Protocol, presents Ren VM, a decentralized virtual machine for privacy-preserving computation. He explains why decentralized privacy is hard when data is replicated on untrusted nodes, compares zero-knowledge proofs with secure multiparty computation, and shows how secret computation can support private order matching and settlement, private cross-chain atomic swaps, zero-knowledge voting, decentralized finance and applications that analyse sensitive user data, such as in healthcare, without exposing it.
Speakers
Topics
From BUIDL Seoul 2018, hosted by Kryptoplanet.
Transcript
I just need everyone to pleasure to be here at Google Sol 2018 over the last couple days we've seen some really amazing talks on privacy in particular and today I'm really excited to be here to share our work be doing quietly over the last couple months based on research that we've done over the last year which is comminuted in revolution a decentralized virtual machine with more privacy preserving the competitions the take away so far that's been that decentralized privacy is hard and this comes down to two major reasons the first is that in a decentralized network
the data is stored and replicated on untrusted notes we cannot rely on these nodes to behave or us away from the particulars and in fact sharing and replicating data is required in many cases for these decentralized notes to actually work now there's a temptation is simply incorrect our data and that data on the decentralized network doing that doesn't solve problems of permission-based access how can we let people access its information the ones that put it there without putting complicated key distribution mechanisms secondly we'd like to do computations over the secret to better private and again these computations are done by untrusted nodes in our network
so we cannot necessarily rely on them to see the data and keep that to themselves so we need a mechanism where we can perform computations over such that the informations never actually seen now there are three sort of classes of privacy that I'd like to discuss the first is zero knowledge proof or something I think everyone is and these come in the forms of Zika starts as if it starts but they also come in some alternative forms that we classify in ZK preusse such as payment chunks where you can have state transition or payments made in an offline channel which is hidden to only those pipes
and then that can blatantly reveal the tested to its correctness however in the zk proof environment all inputs for the state transition has to be known by at least one pilot whoever is constructing this proof or attesting to its correctness in the first place has to understand everything about methods so we can look into that at zero knowledge conky which is the class of encryption and multiple computation which allows us to perform aggregate computations on multiple sets of data from different input sources where those people sources don't want to reveal that data to each other and in this situation all people words are unknown everyone except the people that put those int in
initially but keeping that we also like to achieve is that we can emission access to the answers I finally have ZK storage this is usually quite related to Z table punku and this is simply where we want to store our data unchain have it replicated and have commission-based access to it and this is usually less disease compute because our computation has to access data of some kind so republic protocols interest in practice and preserving computation started about a year ago when we were set up to develop a decentralized doctor for those of you who don't know a dark pool is a
type of exchange except that the prices and volumes of the orders inside the dark pool are unknown anymore this includes the nodes that are performing automatic computations and so we needed some kind of zero knowledge portal some way to sort someone can perform inequalities some way to aggregate data from multiple trailers without those trades revealing information with each other and over the our researcher development to achieve this we looked at z case novelty pet star and what these technologies are absolutely amazing my pleasure in huge fan as taking they only provided on c-deck roofs and they're credibly expensive to
verify all check now this makes them suitable for scalability concerns when verifications exponentially faster than the original computation but when you want to provide ZK proofs for small state transitions individually becomes impractical the expensive there's also fully homomorphic encryption now fully homomorphic encryption has a reputation to mean computationally slaughter but it's also slow for other reasons if you want to provide permission base access the answers you can't wait for the party submission the encrypted influence to come back online this interactive process it slows the process environment so it's not suitable to every type of application you also require some kind of custom cell if you
would like multiple types of sheva encryption and not have access to the private key and we don't know of any information theoretically secure for morphic encryption and lastly there is secure multi-party computation now secure multi-party computation gives us a lot of what we want but it has a complex pre-processing phase where we had to generate a lot of randomness and this is quite computationally expensive and for reasons based on this it is also not truly present find fault tolerant in a decentralized network when you have to enable notice to go offline the rent virtual machine is something that we have begun developing which sort of
addresses these three classes of privacy we implement ek proofs using an off chain verification with ZK starts with one chain attestation which helps us produce the gas phase we have ZK compute which relies on secure multi-party computation but it uses a new form of secure multi-party computation that we've developed which is by that time fault tolerant and has a much simpler than deduced pre-processing phase and because this ZK compute users threshold secret sharing we can simply leverage that again in our storage label so now I'd like to discuss about how we actually use or influencing
papers in the troopship so you have some user or approver and they construct a zk proof using either zk start as he cast up and they submit this proof to nodes in the network now these nodes are economically bonded to some kind of my project and this economic bond usually in the form of states tokens is a good behavior banda is a promise to the head if they are shown not soon they will lose the support these nodes perform the verification is proof and then they provide an attestation one chain saying yes his previous fellow or nervous approvers in and at any point anyone
including other london nodes can come along and challenge this and say no I think this attestation is incorrect I perform some verification myself and I saw that the answer is actually different now the more than two nodes come up with a different answer this process but even if the notes don't challenge each other any other party ok now the key here is that do challenge another we then prompt the blockchain to verify the proof on check so that we know what the verification result truly is but this requires quite a large amount of gas or equipment at the moment on a theorem depending on the proof that
you're trying to verify this can take up to one third gasps but this is actually looping this prevents the Challenger from one singly just challenging every single verification that they see because they have to pay for a verification process however in the case that the Challenger is correct and one of the nodes did in fact block the bond of that learners slashed and paid back to the Challenger in recompense and this gives us a restriction that the state of these nodes has to be at least the cost of one of these verifications but this is how we achieve more scalable seeker groups for small transactions and state
transitions by enabling the gas fees to be paid by the witches party if guests visa payroll this is not including the attestation gas fees which are very normal but also allows applications to choose the level of security that they need you they can wait for whatever time they deem appropriate in order to be sure that the network is secure but these expectations are correct next I'd like to discuss how we achieve Z can compute on Rand Virtual Machine and before we can discuss exactly how we do this we have to look at how secure multiply specialize so to begin with if you have some party debt and this party takes a secret and they split it up into chefs
and they provide each of the nodes with one of these sheds then you have a second distinct party that wants to hide their secret from the other party and vice versa and why it takes their secret and also splits into shares and the students those shares to the notes and in the next step these notes form a collaborative computation where they communicate with each other to ultimately reduce these shares of x and y or to share subsets what's important to note at this stage is that nowhere in this process are the original values X or Y built anyone including the notes nor is any noted people who have seen
what the value of said actually is there Missy shed which is by themselves not sufficient then afterwards in line with whatever rules have been put in place these notes we provide these shares of the answer back to X&Y they can also provide those answers to anyone else that is emitted out of the whole set now state-of-the-art SNP C is not quite good enough not for decentralized networks and this is for three core reasons the first is that it requires a complex pre-processing interface whenever you want to do a single bit wise
multiplication in the online processing phase before you do that we have to generate three random values they're correlated to perform this multiplication ahead of time we have to provide around another a around a number B and some number C that is the multiplication of anything so for multiplication we first have to do the only advantage this provides us are beginners ahead of time however to do this we will leverage complex computer techniques such as Lewin's transfer or someone homomorphic encryption and it simply isn't scalable in a decentralized network if you want the throughput to be constant and available at all times at some point in your active online
processing phase you will run out of preprocessor which means you have to generate new preprocessor and if you don't want your system to go offline while you're doing this you have to be at SEC rifice online through point to perform this pre-processing so we cannot simply even all the cost of pre-processing certainly in the online phase to assure that the computations that have been done done faithfully and we're not corrupted by any malicious factor we have to rely on non threshold signature this means that not a single node can go down but it also means that whatever our zero noise storage mechanism is it should allow for us to go down to the
data not be lost has to undergo translation phase before it can actually be computed and this adds again to processing time and lastly and perhaps most importantly is these techniques are not truly about that time fault tolerant in the decentralized say not a single node can go down and the computations survive the computation of odd stops and is aborted entirely or it has to be we started all the way from the beginning now this is a problem in decentralized networks because before we even consider potentially malicious parties we have to consider that in a decentralized network another - distributed geographically around the entire world network
partitions will happen and notice what stopping and feature nodes my god offline in order to be upgraded we also might see that a single node is currently under attack so instead of having no single point of failure we instead introduce a single point of failure at every single processing node and this epiphany isn't good enough to decentralize networks in the red virtual machine we rely on threshold teeka change throughout the entire computational face it allows our nodes to go on fire at any point you know pre-processing or online processing it also allows us to drastically reduce the pre-processing complexity we only have to generate one third of the data
by comparisons and one techniques but that production is also much much faster and we've been inspired by the pool by dancing fault alarm techniques are specifically an implementation or private so in the pre-processing phase nodes undergo an election stage where they find a primary replica that will lead the pre-processing computation at any point if this replica goes down they can simply move on to the next winner and they can do this efficiently by relying on the underlying blockchain to define an ordering that can be shuffle deterministic once alena to be elected the leader sends out a request for pre processing data and this pre-processing
day there's a shared from each node for each other buddy once each once this request is going out each of the nodes will respond to later now in these two phases the request response cycle up to one third of the nodes have to be online but this means that up to 2/3 of the nodes involved can go offline and the pre-processing phase is still continue what's more is that the leader then aggregates these responses and returns them back to the nodes the legal woman on aggregated less than one third of the day but if it achieves more than one third of the day
you can send this to every single moment actually recover from lost notes flying back online since now one of the cool things about this is that because we rely on threshold based secret channel we can leverage that again in our storage lab we do not have to undergo the translation phase from the storage of data to a format in which we can perform computations on that and this drastically speeds up processing by comparison what techniques and we can achieve commission based access to this data by leveraging the computer to
perform checks and balances to make sure that people that are requesting access to that data are the only ones getting access to this data I throughout this entire process all this storage of processing we're resilient up to one third by nineteen actors which is in line with the theoretical threshold when you do not rely on computational security so using render machine we're able to improve upon the decentralized our poor that we've built now we've already built this thing the duffle and it's available on our main menu train there and random exchange but using remote review we can take this even further we can provide faster
automation engine we can provide completely private balances before traders even over their orders we can verify the length of the balances necessary and we can do this without the traders happy real analysis we also provide completely private settlement once orders have been matched and it's time for traders to settle in exchange they can do so without revealing that transaction and what's cool about that is this can be done regardless of whether the underlying tokens being used are actually zero knowledge themselves you don't have to be relying on system like the cash those already zero Najma power we can also expand it to some more interesting and silurian features such as providing atomic swaps for cross
chain settlement without having to rely on hash pan block contracts they could potentially block your funds up to 24 hours and you can even have these atomic swats happen privately but we can do so much more than this with Rand Virtual Machine we have a completely general company engine whatever you want to do you can go to Andre Mia you can develop zero knowledge voting systems you can develop zero knowledge decentralized finance of any kind and you can also build applications that consume data from large sets of users and perform pile of my relatives on that day such as
in the health industry without ever putting the data of those users risk so with Rand Virtual Machine we achieve a generic private computer that can be used absolutely [Applause]
