BUIDL ASIA 2019 (Day 2) : Presentation by Aiden Park
BUIDL Asia 2019 · July 2019 · 18:07
Aiden Park, blockchain researcher at Tokamak Network, presents zk-DEX, a private decentralized exchange for Ethereum. The talk explains how trader identities and order amounts can stay hidden using zero-knowledge proofs, smart notes and viewing keys, building on the zkDai design. It also covers settlement of partial fills and why a Plasma-based network is used to keep proof verification affordable. Presented at BUIDL Asia 2019, organised by KryptoSeoul.
Speakers
Topics
From BUIDL Asia 2019, hosted by Kryptoplanet.
Transcript
Harmon throw come on the truck reproduction is so trained Aiden Putnam K so seek 8xa gonna stop by Patricia get Samhita the essential private decentralized exchange in autocad LT could he go hunting autonomously benji mucukunda man dia de da de Rojas knee pero duro push a bogus Samhita come on suit a 3ds to me dad hello guys my name is Adan and I'm working as a researcher and author and the topic of my presentation is a skate X which is a private decentralized exchange so let's
start it so eternium is the awesome project but there is a long habit the the thing is that the no privacy need theorem so or the transaction information are or probably to anyone so anyone can see who sends money to whom and the hood who called specific function in which contract right so many researchers to keep circling to solve this privacy issue so there are there are some researches about that at UK died for sure and mixing moves and movies and ether and and there are a lot of adult projects in there but these
projects are awesome but these projects are only focusing on the same port transfer for privacy so I just thought that if we add this privacy - - then it'll be awesome so yeah that's why we build the chick attacks so before explaining about the details about the cheeky text we have to know the what what we want to keep private in check a tax system so in original tax system the procedure of order is like this so Bob who is maker makes the order with the the older data and
in in the other data there are four data types source token target token and price and a month so Bob wants to swap his one ether to ten dollars right and Alice who is a taker so it takes the order because the he/she wants to swap her ten died to one ether so when Alice sends the ten dice to market system then the these markets in stem where automatic reset or disorder wait so one either will be given to Elias and ten dyes will be given to you but this is
the original processor right in this process what we want to keep private maybe the identities of these traders and the amount of order why so basically anyone except for the this pop and Alice cannot answer those two questions then it could be considered as private essentially exchange so first one is who are the maker and take her of this order it's about the identity and second one is how much did they trade with each other it's about the amount so but there are two problems on that the first one
is a it's a it's even impossible to send money if we do not know the address of other party right even in gks which is private crypt currency if you want to send g cash to someone then we have to know the address of some which is g address but if the address even g address the which is private address is a public key into the t's chick attack system then the the private information easily be R so it cannot be considered as a private is to death so that is the problem one and the problem two years
how others can be settled if the text does not know the amount so let's get back to this in this step the market system itself can settle these order because the system itself can know the amount of the order because the amount is probably but if the amount amount is totally then it'll be not the private tax so we want to keep private but then the market system cannot automatically cannot automatic etcetera the order yeah this is problem too so we made solution for that first part is smart note and viewing key and the
second part is element with gkp so let's get into it actually check ADX is based on the cheeky tie which is a private dye for privacy and it's a very good project and we didn't learn a lot of this project from this project so if you guys know the cheek a tie then it'll be very very easy to understand the cheek attacks concept so let's briefly see seeing this Chiquita eye system so in GK dye or dyes are converted into secret notes so the notes is consist of the
public key and the value in here public key is this just the address of the owner and value is just the mountain tie but these ordinates are stored on plotting as a hash and as an incorrect one so even if someone see these hash or encrypted not they cannot know the specific contents of the note right because it's just hash and in G K die if you want to spend your two notes then you have to prove that you own the sticker kick that corresponds to public key and and you know the amount of the
notes with Chicopee so yeah so that's why we cannot supposed to be information about the notes cannot elaborate so yeah this is GI and GX is is a very very variable of the TI so we add the four data fields to the notes which are PK v which is all the key and value and the type which is token type and we can just pinky is for encrypting let me explain it about later and salt is just landed belly and is smart it's
just fully in value that space variety which is whether it is a smart note or not so if T if T is smart if this is smart is one which is true then the note is a smart note which means the PK is not the other rest of the owner is just another lot hash this is very important concept so if if you want to spend the smart note then you have to prove that you have secure key corresponds to public key or public key it's weird right so so let me explain more details so first public key is the the address of
owner and the last public key is just not hash because in smart not the PK is just another not hash so you you just you just can prove the the owner of not hash in there not yeah it'll be complicated but it's just a about the concept of like in if theorem you can has ownership of another seeing yeah that's kind of concept so yep and you you also have to prove that you you know the value of notes and other leaders of the nonce yeah this is a basic concept of smart not so
what we want to do with this smart not you it's very important to note that you can send money to someone without knowing what address you can just know the not hash and not touch is already public on blockchain so it cannot it just not only will any information about the notes so test concept and the and there is order and there are seven data fields and order the make reviewing key-maker not a source token targeting price and take a lot to make her and para not it's quite complicated but Baker Vinci is just the viewing care of maker so so the not if if the notes is
encrypted with this maker Vinci then only maker can see these contents of the notes and the maker not is just makers not which will be traded with take her and take her not to make her either take hers not will be traded in with maker not and parent is a parent not of taker not maker so it's basically used for making smart not when make her settled this order let me explain in the worst error month later so let's first start with making order so Bob makes the order with maker Vinci and the main core
note and source token target token and price so when Alice see this Alice can only know the about the price not the amount so in this process in this step at least have to choose the amount of how much she wants to pay how much she watched swap so in this case Alice can send 10 dying or 20 lines or whatever so when Alice takes the order she she takes order with take her not to make her and paranoid
and in this the public key of take her not to make her is make her not so if the maker proves that ownership of his his ownership of maker not then he can spend this take her not to make her and take her not to make her is encrypted with maker Vicky so that maker can only make her can see these contents and take her Vicky is also included in to take her not to make her so the maker used this later and final step is the zero order so it's it one step added because
in in the original tax or exchange system only it takes takes when take her takes the order this is the end of exchange right but there's one step added so make her first maker decrypt take her not to make her with maker Vicky and there is there are two conditions in here first one is a basically a lease pays less or equal than the amount of makers so in this case maker have to get back his money right because Alice pays less so
basically maker should create the new node to take her and change it to maker from maker not and the new created you not to take her from take or not to make her so it's high complicated but the this is the picture of this so you can see this word in the first case you can see the maker can get back the change not from the maker or not and or the taker not at Baker is or is North is a given T will be given to the maker
because Alice less yep so this is a very complicated version and I will explain it with the simpler version so when maker makes the order the he sense he is a maker not which is encrypted and the owner is maker and the belly is one either and Alice takes the order and we'd take her not to make her and the public key of the this node will be maker not so it's a smart mode so that maker spent is not and the value will be five dice so
maker setter disorder so Alice pays less because one ether had to be swapped with ten dice but Alice only pays five dice right so maker Bob Bob can get back his change from this maker not so from one either offering five ether will be given to Bob and 0.5 if there will be keep the alleys and or the the taker not to make her will be given to maker this is the concept so in this process only encrypted notes and hash of notes are public on blockchain and our adult
information is not Olivia so any third party cannot answer those two questions so everyone everyone can now except for maker and taker cannot know the identities identities of traders and they amass out the order but there is a one problem because of the scalability of aetherium the etherion block ask Lehman is only about eight million but the verification cost up these verified TX which is very fine chicopee proof is about seven million
so it's not practical so that's why we are building in TCK tax based on the common Network which is a thorium based the plasma team protocol so in in Pokemon Network there is no scalability problem so we can use GK decks with very fast fast and good scalability so yep it's the concept and it's just appendix so you can see more materials about in here and it's the end of my presentation and you can give any question about this
UK tax it's quite complicated concept so you can ask anything about it anyway Oh hyung gugus okay t5i oj 581 to get you on conserving go ha see me down Grandia quite a todo cook chong tojon the cheeky Leia one adonia West Ragini do myung-hoon car plasma yo yo go indigo London de plata unit so the such
Comanche non-human the connoisseur torrential channel to go plus my camera okay Shinji from gamma meter through focused erotic winning proven II here on chopped onions on boo London from the tank in England everybody watch oh jesus oh here on K Peter it's me on her sister manon kindergarten floods are changing project car coop Sumida a Chris or chrome vanadium air mattress or China and junk about house other questions let's reminisce Asian guy up okay I guess comes on me that must be a
reason [Applause]
