Dev & Tell | Prad Nukala - Sonr
Developer DAO · 26 Aug 2022 · 28:34
Prad Nukala, CEO of Sonr, explains why the internet needs user-controlled identity and data, and how Sonr approaches it with decentralized identifiers, multi-party computation wallets and passwordless, biometric login. He demonstrates the command line registration flow, outlines Speedway, a Firebase-style no-code dashboard for developers, and describes schemas, storage buckets, devnet and testnet plans and the Matrix-based Beam messaging app. A discussion of DIDs and on-chain identity documents follows.
Speakers
Topics
From Developer DAO; community: Developer DAO.
Transcript
uh gm gag everybody welcome to what's going to be another great devontel so if you didn't know devontel is a 30 minute window for members of the dow to showcase something they are passionate about or been working on this could be an awesome project we've been working on demonstrating union testing best practices automation goodies smart contracts how to structure a project etc basically if you have a if you've got a passion for something this is your opportunity to share with the community and today i'm excited to uh introduce to you pratt from sonar.io who's going to be giving us a overview of his product take it away pratt all right um can you guys see this
clicking the button yes sir right um the internet world is at an impasse with increasing pressure from users for freedom of speech and unwillingness from monolithic companies to loosen their indoctrinated moral grip humanity loses as a whole the internet contributes to 12 of the global gdp and has grown seven times faster than any sector in the past four years it's clear that something so substantial to our economy should facilitate the proper measures in order to ensure that users won't be exploited correct uh this is precisely the problem that my team and i have been diligently working
on for the past six months my name is pratt i started coding when i was 12 making one of the first 5000 apps on the app store over the course of 2021 i wrote the fourth most code on the planet building key points of infrastructure that are used in sonar today and most recently i was a guest lecturer at miu bone school with other notable speakers like vitalik um aside from myself we have michael our resident mit alum nick who can make a vga cable out of a tv antenna and then who's world class at limiting eds and maximizing our flows uh rebuilding the internet is not an easy
task to explain luckily i'm not going to completely do the high level uh overview and here's a quick video demonstrating hey brad i think you need to go to discord and share your audio yeah yeah oh you can't hear the audio from the video no just the just the video okay hold on let me see how to fix this uh sitting on the shear screen of discord uh okay god this uh ux is not the best
yeah but that's what we got guess while we wait um gang if you have any questions for proud and you don't want to interrupt midway uh please uh feel free to post your questions in the developer's voice and i'll be happy to ask on your behalf is that oh my god yeah i still can't hear the audio
all right um we can just skip the video apart then um here's an open secret we're not the only ones who are working on this um about two months ago we had jack dorsey introduce web5 i know that they've been working really hard over there at square with a lot of code comments it's around 52 right now i joke but i truly believe that this is a good signal that there are people working on a technology that needs to be in place at sonar we are constantly trying to create various scenarios that involve different users including how different apps would be able to connect how should user onboarding look how can we make developer friction as little as possible what would be the first killer web 3
dapp and so on out of seoul sonar is a team of artists and engineers we all understand the real value of what we're building but the only way for everyone to actually benefit from sonar is to enable developers to be able to build at every level of our stack we started by doing a thought exercise amongst the engineering team what is the one tool every engineer in this room knows the answer was firebase the number one tool i call impact on themes to go quick is through production based off of this insight we went and developed a no code dashboard called speedway that will be releasing a little uh in the middle of next month speedway provides you with the simplest way to start building on the sonar
ecosystem you'll be able to define uh schemas for your applications data types set up channels for your users to have real-time streams across uh different data channels create functions for interacting with objects manager decentralized identity modules and much more we have also designed an open source component library to plug into your app's front end for easy integration with your speedway service you can focus on what truly matters delivering true value to your users um we've been heads down building for pretty much this whole year we are anticipating that the cli version of speedway will be releasing in the next two weeks
uh we have our devnet which would be just an open faucet not incorporating our token model and will allow developers to have like a sandbox environment in order to develop on sonar uh we'll be having our front-end clients with motor um be available for android ios and flutter our methodology is to be offline and mobile first and we feel like this is going to provide the best opportunity for developer developers to build scalable decentralized applications uh october is going to be when speedway launches will be involved in a couple of hackathons uh the channel module will go live november we're going to have our
web implementation a couple of more architecture decisions and december is when our token will get incorporated and we'll go into testnet uh i wanted to show you guys a quick demo of how the cli looks like in this instance and go into a little bit more details about the ibs before opening up for questioning so while i'm getting the setup uh how many of you guys have experienced with the ids before i've just started playing with them a couple days ago
a couple of days ago um i mean what are your initial thoughts of them like uh just like do you feel like this is going to be a scalable solution to solve the identifier issue that we have personally i'm still at the stage like trying to wrap the concept around my head but i couldn't say one way or another at this point whether i think they're scalable but they seem pretty interesting at least at this stage of my investigation right um so dids can replace everything from digital assets to physical and in the real world there is no way to test
the authenticity of like let's say you had a serial number with without the use of a third party service uh like right now on your macbook let's say that you looked up the serial number you're only going to be able to source it through apple with vips everyone has the ability to provide that verification mechanism alongside that identifier that is resolvable across multiple networks in a more practical example i mean let's talk about our onboarding experience for developer dap well me personally uh like two days ago i was reached out to to uh what is it receive this nft token get uh get through the access with guild.xyz
and then verify my discord membership and it was like a multi-stage process uh a way that this could be replaced is if you had a did document that was resolved on any sort of blockchain you would be able to verify that this person pratt is exactly the person that is a member of developer dao and he is permitted to speak at this point the way a did doc is typically structured is in json format and this is the aspect that we keep on chain in terms of sonar uh we feel like you can't put pii on chain i i think we all know that here um and the best way to actually be able to identify users
uh we believe is through the actual devices that the users use to interact with the internet this would be like let's say that you're logging in with your phone or a website uh if you guys have utilized biometric lock or face id this would be what would be generating a credential in order to uh map that device to your user we use this mech we use this functionality called multi-party computation to basically piece together all these different shards of data and be able to recreate that wallet and demonstrate that that person is that person
regardless of what device they're accessing from um we we can demonstrate this with a simple example from our cli so if we call register here enter a passphrase this is what's being used to encrypt an ipfs fault where the rest of your keys are being stored and only this access key would be able to get it so right now it's initializing the mpc wallet this is typically what takes the longest in the process we're working on making this more efficient in our dev environment you'll typically be dealing with multiple accounts but in a real production scenario
you would have one pid mapped to each person meaning it would be passwordless login without seed phrases powered by dids and biometric authentication the shards are being created right now the id document is being created and it's done in our cli we store it in your system keychain so just entering that there and boom that's the available accounts on the system and if we were going to log in
in a typical typical scenario you wouldn't have to what is it select an address because you would be mapped one of these addresses to one person but let's say we use the account that i just made and enter the password that password aspect is what you wouldn't have to recreate on every one of your applications as you can see i didn't need to use a seed phrase i just typed in a password and the wallet is being constructed you can think of the password much more as a failsafe to being able to access your account and boom this is how a did is typically
structured and the way that w3c um has created the spec this has uh the ability to be resolvable on any type of network like with ethereum they have a similar concept with dib colon eth um but i don't believe uh what is it uh metamask is utilizing this right now so i would have to find a different wallet implementation of this i i am familiar that multi-party computation is uh something that's being done um within the industry but it's it's much more at the server level opposed to the device level
um but yeah that is a quick sneak preview of what we had wish we had more to share but i'm sure we'll have much more of our release next week yeah uh so i saw on your robot that you're uh releasing devnet if i'm not mistaken next week yeah um so with our devnet environment you'll be able to access like these vids the same way you'll be able to query them and see the full document um and also be able to view different aspects of the application itself uh authentication and identity are
obviously just building blocks that are required to building scalable applications um aside from this you need a way to be able to define data structures uh and also provide a way that when users are implementing these data structures that the objects that are resulting from that are uh only accessible to the user meaning that it's it's a mechanism that facilitates user owned data at the device level cool and when you say at the device level are we just talking um like uh laptop level or are we at the our or is the vision for it to be at the internet of things level
yeah yeah like um in in our video that wasn't playing you you can actually see a fridge um running a sonar motor node uh our idea our our idea is that we will create the motor node sdk package let's say that you're using something like flutter android ios we have web in our timeline down the line um gotta fix a couple of issues because of uh what is it the biometric authentication but um right now targeting mobile because of how it already has those native security features but a typical development scenario would be like
interacting with the cli or interacting with speedway uh scaffolding up an application using an existing front end and just importing the motor flat package into react or flutter or whatever you use in that system cool cool cool and and speedway is the um blockchain on your network if i'm if i'm not um speedway is going to be our web portal that's that's what we're going to be using as our firebase hedge uh we believe that the way to onboard at least the existing developers into this industry is to be making dev tools that are uh what is a lot more familiar to them like
yeah um open up to any other questions uh i kind of want to hear the uh the origin story of sonar uh i briefly took a look on your site but uh i think the crowd would appreciate it yeah yeah so um in november of 2021 i was in the top one percent of war zone wins in season two uh and i hit this really sick clip across the map that i wanted to send to my friends in a group chat uh and i play on a gaming pc and i was trying to air drop i was trying to send it to my iphone and what i usually did was just email it to
myself and download it but i ran out of google drive storage so i had to plug in a flash drive into my gaming pc uh drag that file over plug it into my map mac and then i airdropped it to my phone and at that point i felt like the the biggest on the planet and i felt like if tcp udp and all these other networking transports are exposed over every single type of device there needs to be a mechanism that allows for a secure encrypted air drop across devices and that was what was put into place last year and that became like the basis for what sonar is today after you have that layer where every device can be
interconnected in a scalable way um then the next part becomes how do we identify that these devices belong to one person and how do we know what kind of data is being sent across the network and um how do we know which data belongs to which person where do we store the data when it's not being stored on the device how do we manipulate the data that led to functions and smart contracts that we're actually implementing right now um and that was like the methodology for it it was sparked out of call of duty that's sick man awesome sometimes that sometimes that's all it takes just a little bit of frustration to to get the creative juices going
yeah like uh it was it was definitely like a weird way to arrive at a frustration that i feel like a lot of us had um the lack of interoperability amongst like these platform lock devices it's i think it's a consumer injustice uh like i i own a pc and i own a mac they should be able to seamlessly communicate amongst each other if they're both following the same transport specs right right we utilize lib p2p for this um our stack is all like um it's mostly protocol labs uh based sdks so we have lib p2p running for the motor node this allows us to make it run on
the fridge per se and we utilize cosmos sdks scaffold up the blockchain so we are going to have causal blossom enabled smart contracts uh and an idc connection uh later this year in the december test net awesome man yeah looking forward to it uh there's a question in the chat uh nate dev asks uh basically um is there any did you mention anything around account recovery and uh yeah maybe you can speak on that a bit so like the way that accounts are being created right now is that there's multiple shards how npc works is that they take these
different configurations of how the key is structured they split it up and um the shards that are unused for your current device are being stored in this ipfs vault in a and then in a separate vault is where the uh the final recovery piece is so that password that i entered in the cli earlier is what's being used to recover that final recovery piece because obviously you don't have a terminal biometric auth right um and you have multiple state of fail safes to be able to always uh recover your account um another another what is it recovering mechanism that we're looking into is since we have this
decentralized network you're probably going to be um communicating with the same set of peers in a given uh what is it given circumstance so having some sort of social graph to be able to verify the user is something that we're looking into down the line sweet good stuff uh does anyone in the crowd have any questions for pride if not i have i have a few more uh awesome so is um is the majority of the code uh here that power sonar open source and uh
if so uh is there anything in particular um you're looking to get a hand from um the crowd here uh because we are developer dell developing is what we do best so is there any opportunities for folks here um to help out anywhere in the repo or uh yeah yeah is it okay if i call someone from the crowd to answer this question because of our our head of engineering is actually right in here right now yeah yeah yeah totally nick you want to answer that one yeah hi chris paul does you who know me i'm nick uh hope with the mentorship team and a couple other initiatives here
um yeah we would love help with building out more motor targets um we try to build them out in an idiomatic way for each platform uh so there's some platforms we're not super familiar with like it's gonna be hard for me to build a c-sharp motor target right whereas all it really is is a binding layer but i don't know how to do it in sd sharp specific way that's one really easy place to get uh to get involved uh it's basically just adjusting and building on a motor target they're just a simple binding layer for an api uh when you get onto their core um another great place to get involved is contributing to our course on our ebook
we have a bunch of issues open that is on our dash i o slash sonar we have uh we're always hiring uh you know reach out to me if you are very familiar with the ids web3 the cosmos ecosystem and we can have a chat excellent well said yeah so anybody in the crowd who's interested uh nick and pratt are you guys uh and uh final question for me um can you speak a little bit around your uh product roadmap so we you mentioned
that uh you have devnet uh rollout coming up um pretty soon uh at the beginning of the month it sounds like or at least in september um could you speak a bit more about what kind of you have in mind um after that if you can yeah yeah yeah yeah um so our goals right now with devnet is pushing the first three adrs uh the first one is about the ids accounts um how registration works account recovery basically everything around how do you identify a user our second adr is about how do we identify data and uh we use ipld for schema specs and that's basically just like defining a class or an object in
typical programming and uh that would be stored on chain like you set a label for what the field property is and then you define the primitive type that it's involved with and uh the motor client on the other end would be able to reproduce that object and store it in the user's account like um data for that particular application uh after that process is done uh the application if it's permitted with it it will be verified through its did doc and you'll be able to resolve the data that way and that's just for the first three adrs like you'll have the ability to define accounts to find applications to find
data and define storage bucket mechanisms for our test net we plan to incorporate our token economics we are really focused on making this a utility driven token any venture capital that we raised was through the united states we didn't do an offshore company we really believe that if we're going to rebuild the internet and make it user-centric we have to play the game according to the sec's rules uh yes yeah so we really are not fans of anything shady uh but aside from that like our goals would be like speedway with the web portal um getting that out and aside from this we
actually have a consumer-facing application demonstrating what you can actually build with sonar itself um we call this beam if you go to our website you'll see a screenshot of it on the front page at the very bottom but this is a matrix protocol powered uh chat application that basically allows you to relay all your existing chats like instagram imessage twitter um all through uh your sonar did so if you were the best message pratt.snr on beam um through instagram or whatever it would be able to resolve to prab.snr on the beam application and if you guys are familiar with signal
or telegram saying end-to-end encryption this would be device-to-device level encryption oh sick that's awesome man and is that available um for people to download today um we have it on an internal test flight right now and we were going to open it up for a public test flight in december as we build out dev tools first it's better to approach developers before consumers gotcha yeah yeah makes sense to me uh we have a couple more minutes left here gang is there any questions from the crowd yeah i am trying to
find our adr about the ids uh this should provide a lot more context on the registration aspect you just threw that in the chat beauty and uh i guess if there's no further questions from the crowd what's the best way for folks to um follow follow the progress uh for sonar uh is there twitter uh discord yeah um we have a discord and we have a twitter uh you can find our i'll throw in our discord invite link in the chat and
our twitter is just twitter.com sonar underscore io beauty great stuff so if there's no further questions from the crowd then uh i want to thank you proud and uh nick thank you for thank you so much for coming on giving us an awesome overview of sonar really looking forward to all the innovation that happens here and yeah we'll be following closely thank you my pleasure and with that i will stop the recording
