Devcon 5 - Ethereum Swarm Breakout Sessions - Distributed storage meets incentivization on Swarm
Swarm·Fri, Oct 9, 2020, 12:00 AM
Osaka, October 2019 - Distributed storage meets incentivization on Swarm, a talk by Vojtech Simetka & Rinke Hendiksen
Transcript
good morning everyone my name is Rajesh matka and I'm joined with Rick Hendricks again who's who's were here together with with IOB laps who is partnering with swarm to build this distributed storage incentives so before I dive into it and actually really Rinka is the expert here I will just very briefly introduce who we are so I owe me Labs is a organization that is building our escape route stock and arif OS so refocus is a one-stop framework that is adding the layers that are needed in between in between blockchain and developers so that's storage that's a level two payments naming system gateways service marketplace and things like that so we partnered in July of this work to integrate swarm into the rift storage system and for the last three three months we've been working together and I by V I am in rincón Fabio who's here Ralph Marcelo and Santiago and Diego masini who are all members of this joint incentive track that we're doing together and we've been building this swap incentives I figured launching a incentive testaments so I'm going to give the word to rank it who's the expert on pointer works so everybody thank you so much for being here my name is miksa and as political reset that work as developer on swarm with an employed by LV labs and I'm also laughing in background this okay so a bit of a background because I realize this is like the fancy maybe some general presentation as you might know but I actually want a question this blue here access is comfortable with swarm like alright little bit less than half so let's let's just give a brief overview okay so swarm you have a chunk and a chunk is a very tiny piece of data about 4,000 bytes and these chunks you can upload them to swarm and based on a certain algorithm there will be spreads throughout the network like you really actually upload something you don't have to say where these chunks come they're just going in a network based on the orders based on a ship to chunk and the addresses of the notes so there's breath in your network and idea is that if I as a note or like a user of swarm needs to download touch chunks I can retrieve them upon the months and then again magic happens and these chunks are somewhere assembled and they're being shot in a browser or wherever anyways like this sounds very nice right but any problems with this Thank You chef yeah okay well there's no incentives really because it sounds nice and all this junk so being spread throughout the network and people just host it but it's in the real world if you want to build like a really robust and DDoS resistant and scalable Network you don't have to pay so now you have to you need to denote in a network thing that must be compensated for hosting us to so this is the incentive strengthened that's what's important so it means swap swap this swarm accounting protocol and it's like base layer of incentives in this work and really they're the core idea is that instead of paying for everything which happens in the network you keep accounts of what you're doing with your peers so in a sense notes keep track of balances with all the peers and the balance can be either positive or negative and now look the balance still feels too much to do with one sides so if we are if the beer which we are connecting to or like yeah so if the pair of bills too much to one sides they OPM and if it penances tilts too much to the other side they expected payment filmography and this is like very high over what the swarm comes in what school is now I just introduced a bit more in detail for this I have some graphical something so here you see two notes you have seen notes B and on D and below here we see the term cometa for the trunk of a there's not the official term but we just like to use it but anyway is this you can see it this is like the balances so here we have the balance anyway right now the trunk meters at zero you see here in red this is what makes you don't have to be so this means if I would be it doesn't pay it's okay if we're here but if you're paid preparer doesn't pay but it reached hundreds and 20 which is good so let's jump over there now we're going to use swarm right sense jumps back and forth on a missile launcher for b2b ez+ Junko meter just abandoned stills a bit to the other side but now there's like some tea right both using swarm and there's no type arise so next time the chunks are being served to the other side and to the other side and that's that's how it happens no payment deficit of all we just keeping track we just accounting basically oh now that comes the big chunk or he's downloading maybe streaming a movie and then you see that the total emitter tilts to the hundreds and then we do it they also the chunk emitters being set back to zero and this payments can really be in ether or in our sky or if it's a peer-to-peer network so in principle they should not matter in what what currency you think you fail you know the only thing that matters is that you can pay your fear okay so how to do those payments sexy the next part of my talk um whatever it says here to be your nature is worm makes it possible that swarm is payment agnostic but a certain only thing matters is that you can do the payment and how but of course we have an initial implementation and this is what we want vice knows to use when they boot up swarm this checkbook is basically a no one chain deposit against which checks can be written and checks they are like checks in real life they are redeemable that's a time in the future and of course you can save guess was if you accumulate checks so you don't have to cash all the checks like you do with the real life check but it's like community from house so so this is a check so here we have the check and on the check up so some information is the contract address if the beneficiary so to whom are you paying and the community for Martha this is a smart contractor you have to committed the demands and the signature but well we love cashing this check and you want to save a bit of Catskills so we got an auto check this Jack lives exactly the same conference address exactly the same in a fishery that are committed to Vermont is 200 kept another one two minutes - 300 now that the air who is actually doing a fishery of these check things okay let's sketch them out less sense this piece of information with this signature let's send it to the checkbook it's a concussive deposits so it places us three numbers now do it so I'm accountable to go on this famous happen now we have to check for hundreds and we can decide to cash this out but then you know anyone with us we want to get a bit of more security so how to check both his son is a very simple smartphone for innocence but the nice things about it it's basically a layer of the payment system but the nice thing about it that as a user of swarmed you deploy one checkbook on trucks you found it in this money and there's no limits to how many beers you can pay out from your checkbooks much country so that's really beneficial for swarm because once you boot up as for notes you actually know how many notes are we expecting as form an openness let's say it's on hundreds so it would be really multi good idea to open a payment channel at hundred one hundred because maybe you even don't have either so you wanna really want to deploy a checkbook contracts one contract and it can serve as many peers as you want there's nice trade-off between security and costs because if you want just to be super secure you cash out if you have to check you cash it out directly so you don't say from the gas girls but you cash out to check the ready but if you think okay swarm you're just like repeat the dealings with those peers so you have been dealing already for months is one beer and I think again I don't want to cash out this check directly but that trust is beer and that's wait maybe until I have accumulated five checks for 506 and they you have endless security but you say mobile only gets worse and then what we also have there's the no ease entry into swarms is a feature Illustrated which is in the roadmap will be developed very soon but that's basically you as a node you boot up swarming you don't have any either like this great from UX perspective right because not most of the real users don't have a new era console but what you could do if you boot up swarm you can basically say if flag okay I don't have any either but as we are in curing it swap and you subjects to me please instead of just paying us directly to me can you deposits a smart contract for me and how I will compensate you for doing this that's the principle of no Ethan tree is for me alright and and of course which also some work topics for research like the swarm incentive for schools like or incentives mayor is like where are the first ones to do is I think in the introduction space so there's like a lot of hot topics for research and for this we advise all of you just to think together with us because they're not really on set like we have ideas but we are implementing them so so one if is setting prices so what will be what is like a reasonable price or using some more how much is the sachin cost what that's one question the other one is supporting multi currency swarm so say already set it principles you don't matter that if you do a payments to one know it and you know it wants to pay you in riff should be okay right so that's pretty cool but of course there's some side effects and we're outta consumption self not interesting questions but that's not all to pick the other one is incentive position for long term story what is really about incentivizing contents which is pots which is topical which is being amorous frequently but what if I have like a photo album and I don't often download it but maybe in ten years I want to download it right so it's not freely if it's long term storage yeah you can contribute I don't know if you can read it but we have Swift's repo put this on the ecosphere slash sweeps and there you will find scripts for all those right okay so I'll close this presentation with a roadmap so in the immediate future the first thing we want to do is really polish bandwidth means and so this is this what implement some sensible pricing Oracle's and discovery of the prices the payments through a multiple ways for example postage stamps which is actually a spam protection and a way and not to ensure that your content gets pushed then later on the big topic is storage incentives so this is the persistent storage this year may want to tackle a centralized way of doing so pay to pin kindness a little bit similar how are the FSS this and later on in the decentralized fashion so this is the source where and spindle as described as as w3 paper incentives gateway is another thing we want to build so providing a simple tool for deferred parties to just run their home note and to actually be paid for for running knowin providing access to swamp and eventually building a storage light notes which will allow us easy browser integration and could be and is necessary for being mobile friendly and one last thing I'm going to create I'm going to show you a short demo but this is actually a content are going to do together at two o'clock in the workshop 240 240 so but I'm going to demo over a little bit right now so the first thing I do is I'm just running a ganache in here then I'll be running one note note of swarm and I'll connect few other jobs to it even right now I've created this simple website which it should actually show me the content of the note so this is my note that is running I don't yet see if you're in a dress or my note in order to check the peppers but I already see that I have two two appears that I'm connected to I see that I have zero balance between those two and that I haven't sent any checks but let's let's start up and see what see what happens so they get they get added here now I have some four notes that I'm connected to me and I'm going to create to create some random traffic on the networks that's hopefully going to so I'm randomly uploading and downloading to the different notes and and as I do so balances even change maybe we were just very unlucky here and actually it nothing it's so now I'm just uploading between the first between Roberto and and the first note and yes I'm uploading 1612 US kilobyte files so the balance is your change over time and you can already see that as don't communicate they've already paid me the check here so we can even have a look at the check services must receive check from from appear one and I got already paid because I directly actually cash it out some 1.9 times ten to the 14th way yes this is this is work in progress but it's actually working right and today up to 40 we hope to see all of you here and you actually be able to boot up swarm and actually join the first life instant device test nets and we're going to run it and Rob Donnan cannot show please do it [Applause]
Automatic transcript — names and jargon may be misspelled.