BUIDL SEOUL 2018 (DAY 1): Presentation from Guy Zyskind

BUIDL Seoul 2018 · November 2018 · 18:14

Guy Zyskind, founder and CEO of Enigma, introduces secret contracts: smart contracts whose inputs, outputs and state stay encrypted while the network computes over them. The talk explains why public chains need privacy to handle sensitive data, how workers run tasks inside trusted execution environments, how computation is split across small groups of nodes for scalability, and why multi-party computation is next. It also covers Ethereum compatibility, private voting, encrypted machine learning for credit scoring and a grants programme.

Speakers

Topics

From BUIDL Seoul 2018, hosted by Kryptoplanet.

Transcript

hi everyone my name is guys his team I'm the CEO and co-founder of enigma and today I want to tell you about secret contracts I want to tell you what they are so we'll be find them I want to explain to you how they work but most importantly I want to tell you why secret contracts are crucial to actually build and will try and more scalable decentralization not sure this is working yes all right so let's talk to some context

of abortion is what contracts this is very very high-level we share all of the abilities so it really gets us exciting and of all chains is this idea that we can run applications not on one computer now it is essentially a server but instead we can run it across thousands and thousands of computers and through a process and as per senses these computers can make sure that the applications of their runnings the databases and all that stay in consistency now why is that important well think about an adversary the wants to attack the application well that adversary is going to have to basically compromise the internet work to be able to do something to be able to

do some damage so if you think of a Bitcoin for example Bitcoin has a shared ledger of conception and we feel much more comfortable than to be maintained by thousands of computers because it's going to be it makes it much much harder to actually tamper with that ledger in any significant way and smoke cartridge for the sake of this talk are basically units of codes that developers can be going to build applications around watching okay so block you look great but have several I'd say shows often problems one of them which we all know is scalability but one that is often overlooked is the problem of privacy

everything that you have in the blockchain is completely public for everyone to see that's by design now the problem with this is that if we want watchings to become the next iteration of the decentralized well we have to find a way to handle sensitive data all of our day all of our applications that we use on a day-to-day basis right now you sensitive data in some form of another and bludgeons cannot differ in that they have to be able to do the same so you know this is where the definition of stupid contracts becomes helpful so if smart contracts for example on atheneum give us this property of correctness it gives us this property

that no one can tamper with the stake of the smart contract with whatever is going on with the smart contract the question comes what is the definition for something that also protects privacy and that's where we are called the secret contract because it both kept cheap correctness and protect privacy of the data and enigma sets out to be the first public network that allows you to write separate Carta secret contracts efficiently the house secret contracts work is by allowing and/or making sure that the computers in the network don't actually get to see the data that they are operating on so encryption is is the firmly notice of the following for the

last four decades we know how to increase native dress so if you wanna encrypt your files and put them on a storage you're good but the question comes how can you take data manipulate it using some processing like on an auction setting how can you do that without actually leaking any information to deliver so we need some kind of technology that allows us to compute over the data and we've been working on this for several years in equal solid back in the day 2014 as a research project by 2015 we published two papers are in motion and privacy's these papers became really popular then we stand at about

500 plus citations combined which make them cited in the space and everything like that this idea of how can we be a more scalable execution for blockchain but most importantly how can we maintain the privacy of the data and you know fast forwarding to today in the last I said even half we've been working on the first platform it was public yet but a lousy the first version in figured out this is enigma 1.0 is called discovery and it's going to be the first one that allows you to actually run secret contracts it says other important properties such as it's being permissionless so any one of you will be

able to download and even though put some stake in these particles and watching and then start counting to be computational resources in return for fees which also applies to it being economic incentive eyes and the last part is that is compatible when you save you so we recognize that the finger right now is the most secure and widely adopted chain and we don't want to make developers have to choose between each here an enigma so there is a very seamless bridge that allows you to write your spot contracts on etherium but then if you wanna offload those sensitive sort of computations that involve sensitive information or not require

scalability you can do it in a seamless way tuning in and bacteria so I'm going to go deeper now first let's talk about stakeholders there are developers users and workers Network developers as usual right secret contracts so they develop it and then they deploy to the network users to meet tasks that's how they interact through tasks they interact with with the secret contracts and then workers and we call these workers to distinguish them from we see the miners of pocket miners in general workers are actually taking

these tasks and his secret contracts and actually execute the code and you know do the computation so from a developer's perspective we support Ross or more correctly webassembly and we support solidity the entire industry is moving to webassembly that's something that I hope most of you know or it's not you should so we're focusing most of our efforts in death fearing is no different team is going to move to weather send me one motion but still to be backward compatible we also - right there contract the solidity and then once what a secret contract is

deployed with the network users can interact with every test and task is very similar to transaction inferior the main difference is that the user can encrypt all of the inputs - that's what happens to the ticket counter and this is done with an image library it's very similar to web 1530s so it should be very familiar for developers mechanism to use and it also states or a page all of the complexities of Kiev change and you know encrypting on the front side right that's right now what the magic happens is once a task is being sent to the network now the

workers need to execute it now the important part to understand when it comes to scalability is that emotions today unlike a field in our block chains we didn't we don't require the entire network to replicate the computation that's very costly that's where slow he said the metric runs Valerie and CentOS by state a group of workers to do each computation so say dr. Fields 20 notes those 20 notes and only day are going around that complication and not allows you to basically get some form of shouting and allows you to Carla's computation and get a lot for service once the computation is completed but

the work will do days of meet a very kind very short of proof of complication back if you imagine does some very quick engine validation which is very cheap and very fast that's important and if the computation is correct then the workers get fini with the individuals when it comes to encryption of data and how that flows in the computation so users can supply proof to the inputs as we said users can get encrypted outputs in return but also the cipher contract itself has a encrypted database and like

if you missed a database in here in secret contract has a decrypted state database and the important part to realize is that the nodes in the middle the monitor actually run the computation never get to see the data they only operate on you but they don't see the inputs the outputs or the state database so so far I told you a lot about encrypted computation but I didn't really touch about how that's that's happening you know giving time gonna kind of squeeze it and just talk a very high level but currently in discovery the main idea to get is done is by using called the trusted execution environment

or a team it is basically a sandbox regional leader processor it's available in all modern processors and it basically ensures that every competition that happens inside that region of the processor cannot be tampered with and no one can see the data that's like going on each side evidence processing being done so that's really helped achieve privacy everything gets encrypted from the outside send it to workers that run these things and only inside of these keys the information gets decrypted and computed over but even if you the host even if you're the owner of the machine you cannot see what's going on inside

and then data is Green Krypton so the results are big Krypton is central to the outside so this is great it's very fast it's very scalable but it's a hardware solution not quite a cryptographic one if you want even stronger cryptographic solution then there are two new techniques in academia today and usually the referred to is the holy grail photography one of the new secure multi-party computation or MPC and the other is fully homomorphic encryption or fhe both of them achieve pretty much the same thing but in very different ways they allow us to compute over and quit the data but MTC is purpose of diameters more scalable today

and I'm being personal you know PC for the past few meters my thesis was on that so for these reasons we're focusing on developing MPC 14 lingual network in the next next iteration one very free comment about civil knowledge tools in zk sparks of ZK stars they're very technology but it's an awful misconception that they solve the privacy problem completely what zero knowledge crews allow you to do is to prove some computation over data that you can see but someone still has to see all the data they do not really allow us to compute over and Crick the data

all right so every see just in general is the idea that if we have a network of computer computers that it's mathematically proven the doclet work can run any computation all indirectly encrypted data without the 15:18 immunity any step as long as one node in the network is honest so let's say you have a thousand computers is one of the Islamist government which one and if we're working about plugging these come back and finding more working these right now the idea is basically that we have to change much in the red

part it's really on the backing stuff on how nodes in the network interpret codes and so any technology is really only as useful as the applications of people building on top of it this is just a short list of several applications that will companies in the space are building for us right now that's actually very shortly is based there are many more suggestions and bring your project of building beyond that I want to talk about two in particular one is secret 14 so though tink is the super important building

block related watchings because a lot of projects want to decentralized governance in one form or another but again if you think about a failure or any other object it is the problem is that all the information is public so that means that if you have a voting this what contract that means that everyone is going to be able to see who voted for who and that's obviously a deal-breaker not only to people's privacy but it also needs to be expensive attacks like Broadway attacks and sensor and vote censorship attacks so that's very bad and already several companies like uber down in ocean are building a tower or building their version of a newer

platform for secret so cool another cool use case is with Exim chain which involves machine learning over cryptic data and with the Exim chain example they are focused on doing measurement machine learning for credit scoring and what they want to do they were made sure that all the data the credit scoring is completely private and not only that they want to make sure that the model that is being learned through its machine learning remains inscripted because that model is really the secret sauce there are what they're building so on the right that's the actual code that's now anybody is

outright to have a test that if you're a developer and interested really all the information that we need is that the liquid outcome special protocol but if you want to get even more involved there are several ways to do it right now as we go rob him up from maintenance in the next few months we just released our grants program so if you wanna come to be subject to the ecosystem these are very well funded tuition get in touch I favor developer you to get early access to develop material and start building and if you're not a developer and just went wrong knowing the network then there is an early access fee for that as well which I welcome you to use but if you're interested in stinking and

generalize mining this is probably the best way for it to go because the new one is going to be one of the first networks that the love of this kind of state key for reward although in the water that's it or mind thank you very much [Applause] one question would you think about the concerns and versus

and do you think wait our together goodbye evaluation practice around that you know what so I guess uh first of all yes I think there will be provided medication I think enclaves are a very recent technology they're not that to you but when it comes to general purpose computing they are very recent and I think right now it's really the formation implementation things and there are constant improvements when our end you know we're tackling these two angles first of all that's why we're selecting multiple workers right so that you still need to reach consensus across workers so that even if Stoppers spend more

money to break it and claim they're still not going to be able to bring the computation from privacy you know it's still it's still going to be initiated but that's also why we're working on technology as I can see all right thank you very much thank you very much