Decentralized application and devices with Aleph.IM and Ethereum

ETHCC 3 · March 2020 · 29:46

Moshe Malawach discusses decentralized applications and devices using Aleph.im and Ethereum.

Speakers

Topics

From ETHCC 3, hosted by Ethereum France.

Transcript

[Music] and okay so hi everyone i'm mocchi mara real name jonathan so nice to meet you I represent the arab dot i am project for those who don't know it it's a universal layer 2 network that is specialized in that storage for files databases on for computing server s computing and things like that but real question is why would we want that so because we want to decentralize the

cloud right now everything is centralized we are living in a world of Cee Lo's your Facebook Twitter everything everything is zeroes closed Cilla's between themselves if you consider regular applications today you have like a user that connects to a website on that website has a storage on the database that's basically how it works the website can also be mobile app it's basically the same it works always this way it can be distributed across clouds in everywhere but it's still basically the same same architecture so comes a few years ago do a PFS stack

what is ipfs files can be asked is everyone do everyone know what ash is yeah okay so fight can be Ash's passion and we have a table which is decentralized to know where each file is stored on the network so it can be decentralized because if people want the file they can get it from where it is on the network also came a few years ago I want make you learn what do what a blockchain Jersey is to today but basically it's immutable you have blocks

on and it can also implement a currency on top of it so so the existing solution for typical web 3d apps today using a terrarium for example you have a user that connects to a front end which can also be a mobile app which connects through an API server to a smart contract that that will give a result on what they want on the smart contract will be on a blockchain on the API servers we will be notifying you will often use ipfs to be able to store files images or

larger contents that would be too expensive to store directly on the blockchain or on the smart contract thing is that in ipfs you need to store the data somewhere so typically it will be the the app creator who will store the file on its hard drive pin it on ipfs so that people can get it from him issue is that the day the app crater stops working or the company fails or whatever all the content goes down with it so you lose all the content of your day up because it wasn't really decentralized

so as issues who we have delays because we need to wait the time of blocks to get that validated on the network which can be 10 seconds 20 seconds 30 seconds on some more centrist blockchain can be one or two seconds on iOS or things like that there is also a cost issue for the users that because they need to hold at it to interact or a or stay chaos or whatever it is the same on or blockchains it reason we also have an issue on onboarding people asking them to install metamath get it to be able to use your app you lose 99.99 percent of your users

and we also have an issue with the storage which is typically centralizing it's kind of use it so how can we fix this by using on after on of change state network the world network keeps a state that is upgraded instantly we can make actions free for the users having knows of an error of a network pay paid the actual block change fees incentive incentivize the storage on on a lot of nodes of network on the cross chain so that you can use your wallet your metamath quality euro free wallet from neo your iOS the a browser etc so that

we can get all the users on our the app on lower the barrier of entry so how did we architecture our network we have a user that connects to a front-end again this front-end can be a web app a mobile app desktop app whatever this front-end connects to the RF network using either direct DHT based peer-to-peer network using lip peer-to-peer or through API servers of the aleph network then this RF network goes and writes on blog chains on accepts address from any

blockchain on come get data from from the assets of those chains from the ledger of those chains and smart contracts on underlying chains the red network will also be a distribute and incentivize storage on our own storage system incompatible with ipfs if need be and we will also have smart virtual machine which is the equivalent of smart contract on the network so more technically what happens when you do an action on the aleph network at start you you have your data source which can be

IOT device your dia or data providers that will sign a message using an embedded wallet inside so so if as if it's an IOT device it will each device will have its own address using any of the address provider compatible which can be a turbine on chain bit in neo etc it will sign a message send it to the network either API or or via IP FS or like early peer-to-peer then then 50 milliseconds later the state will be upgrade updated on the world network on data can be seen by the clients if there

is ver termination to be executed they will be executed at this point on again it will update the state after 2 to 30 seconds the messages will be committed on chain on any of those of the supported chains we will store ashes which are lists of messages on all the underlying chains and we do this continuously whenever there are messages to store so all the data is replicated across the network not all the nodes of all the data so that we can be scalable and there are a pair decentralized application sub Network that on it that

can interconnect if there is a need so the current state of the project we currently have on MVP network live we under file storage posts which are document based the database aggregate which is a key value database we don't have the virtual machines yet on the network it's a work in progress and we have a free and we have a few block chains that are connected which currently are nurse atrium and Bynum chain and we are working on nail park at cosmos us on the others currently so let's see a few use cases Oh can this be useful actually so you

can store data for the apps or offer personal storage we you can build so as social network with it can create a medium light yep you can create an Instagram account yet chat you can do storage for IOT devices data from sensors from whatever you want you can also have G GDP our compliance for your application because since we only store ashes in an immutable way the data behind you can ask the network to forget it for example so that you can be GDP

are compliant inside the app which is quite a big issue today with the apps since you can't delete data actually normally and and also decentralized identity which is a project we're working on I will come back on this a bit later so let's see a little demo of it so [Music] so this is our personal storage decentralized application let me create on that ground for the sake of this talk okay so here I said yeah yeah blah blah III will keep this key it's mine okay so

let's see files let me upload create a folder so my folder I created it I will come and upload a file okay for example this one okay so I uploaded a file and I can open it see it I can make it public and share and what is interesting here is that the file was shared privately to the network

encrypted for my own public key so so what we were doing was completely end-to-end encrypted so far and then I am making it public and I'm sharing it on ipfs means that the nodes of the network will now try to get to get something done which is compatible with ipfs so I make it on ipfs I get a public link let me paste it here so normally it should work I don't have any more effect I will go okay so this is on a PFS compatible

address meaning that it can be seen from any part of the ipfs network over file is now on ipfs on on pinned by a lot of nodes of the RF network on before that our file was ok this is the address we just created no we created a folder object which is encrypted we can see the name of the folder then we created a file that we start here then we amended that file making everything public including the metadata so so here it's written the ID 1 dot PNG image PNG all these here is now in clear before that

object everything was encrypted and we can't understand the contents so it's shown as eggs a decimal here we can do the same for nodes which are say it's ok my test note hello ET hcc i save it so again here we can see it's encrypted so if we go on our address we created a note post on this note everything is encrypted again I make it public I save it go back here

and it's no public unencrypted so you can read the content on the same way we can get a shareable link which is no on our d ab2 for the formatting may test note a low 80 hcc this is some kind of permalink for this note and as you might have seen I just created an account I didn't need to old any left ok or any 8 token and I've just gone in the app and it works and everything is instant the network took everything for us and if I go back

here I can see that all four D actions we did they they are already confirmed on a theorem and nurse the network it has been posted on to blockchains already or directions that we did so far so that's a quick demo of our personal storage D up there is also these two one you so this one there okay there is a little demo effect okay it's a medium equivalent based on that if okay no it's loading it was just slow so it's articles and

you can just login on create an article if we had metamath quick we with a metal mask button because it compatible with a terraeum this one you can use addresses from all the networks so including aetherium that's why we are here on the RFD apps another okay so this was for the demo another use cases which which we are seriously working on right now we sign up some ledger from the outdoor well it's it's the decentralized identity one you can create an identity to your cow AC or directly on an exchange you do your cow AC and at the

end you can say okay when to create a ratio is a variety you get a public key source which can be a meta mask or a ledger the KIC provider marks the address as verified on that that's not a duplicate on own it creates an encrypted container for your data for your passport proof of identity etc and you have the data they only have ashes so that when you want to go and use it to be able to log in on another service you won't have to redo all your ki c they will just go and ask to Kauai C provider okay give me the risk matrix okay it's a real user

III match with the data the user will have sent me okay it's a real person its identity is real is validating or trading and it's on exchange the good part is that we can also reduce spam and things like that on magazines on an online magazine because you can login to to make comments and website cons can say okay I only want real users they don't need to know who you really are but they just need to know it's a real user that doesn't have more than on account they don't need to really know who you are but that you are a real person so that solves this issue too once we have the virtual machine we will

also enable more use cases like business applications that have that business code inside currencies and tokens on on this layer 2 network financial applications games the idea is to add the world game engine run directly on the network so that it's really fast because for gaming you need really fast actions so so here are the repositories if you're interested in working with it we have the PI AF repository which is our main node of the network I have GS which is our JavaScript API on the left hand which is a Python API for

the left network we have a few D up mile F which is the personal storage yep that you have seen everything is open source from from from the bottom layer to the top layer the olive blocks which have seen two on simple the app which is a very very simple D up with example of a web free connection inside on our JavaScript documentation which is on github dot io you can find everything on our website which is a read that I am there is a developer part in which there is orderings person before we can also find us on telegram a leftie M or an emotional hour on Twitter so thank you

very much everyone is there any question yes how is ipfs network working those days do you have enough capacity and half notes to aggregate it satisfactory as a storage so that's a good question actually there is a few issues we will the way ipfs works that's why for our own use we started using ipfs to like move or move the data across network we don't anymore we have

our own network based only peer to peer and we only make on ipfs the data yet that is interesting on the developers chose to patent ipfs so - in di di you can choose the storage background etcetera hours or ipfs it's a bit more costly to use ipfs but it's compatible on and on since we we lowered and we don't do everything on ipfs it works giving it's costly in time yeah access time yeah exactly as i understand i PF s participant they are net they have no incentive yeah the LF network will pin that up for you

under F nodes on anyone can start a node so that node are incentivized for it and I'm not sure about the status of swam yeah you investigate use it yeah are we investigated and it wasn't really relevant to our use case because we're creating a network which is a bit different and your question nope okay thank you very much [Applause] you