Encode x Worldcoin Educate Series: Orb Software & Hardware
Encode x Worldcoin Educate Series 2024 · 30 Aug 2024 · 56:00
Dan Girshovich walks through the Orb, the open source verification device behind World ID, covering why the iris is used, how the multi-camera hardware and tamper detection work, and how signed boot and hardware-held keys let anyone check what an Orb is running. The session then steps through the open source software, from biometric capture and fraud detection to iris code generation and encrypted transfer of data to the user's phone, with a long audience Q&A.
Speakers
Topics
From Encode x Worldcoin Educate Series 2024, hosted by Encode.
Transcript
hi everyone welcome back to the second Workshop in the encode worldcoin educate Series today we have a really interesting one on orb hardware and software so I hope you're all excited if you need to catch up on Workshop one which was an introduction to worldcoin then the recording has been posted on the encode Club YouTube channel so do check that out if you missed the first Workshop I know there's a lot of new faces here today so I am inviting our speaker up to the stage hi Dan hey everyone let me remove my stream and you're welcome to share your screen how's
that Yep looks perfect I'll disappear off stage and the stage is yours great thanks for having me I'm very excited to get to present the orb it's a really fascinating and uh complicated piece of hardware and software I assume most people here have already heard of it and as um was already mentioned you can look at DC's introduction from Monday for more about like why we have an orb and and I will quickly review that just for completeness but he has a much more thorough introduction there also next
week there'll be more details on the biometric system though I'll touch on them it's not the focus of this presentation my goal is really to show you what's in the orb and walk through the key parts of the software and I'll step through the code towards the end first off as many of you might know the orb is open source so all of the hardware and software I'll be talking about today is on GitHub and we'll actually step through some of the the source code in this repo this repo has the hardware schematics there are a small number of components that we rely on for security
or fraud prevention that are not included in the open source repos I'm happy to talk about those more in this presentation ask comments in the chat and we have an interesting design for how to isolate those components to make sure that they're not part of what the community needs to trust when they think about how to interface with an orb okay so first what is the orb it's the verification device the most secure verification device for a world ID as part of the world coin protocol again again DC went into all the details the very high level is that it provides a credential that can be
used to prove your a if somebody uses this protocol they know you're not a robot and you're not a dog more realistically you're not just an AI agent pretending to be a human and you're not a human with many accounts in the same service um but so though this doesn't work and this doesn't work this should work exactly once per person and then that credential can be reused without returning to the orb in a protocol that at a high level looks like this and more details looks like this I won't go through all of this
the focus of this presentation is on this box here but this is just to remind everyone that it's part of a much bigger system which over the course of this series we will elucidate okay I'm not sure actually if the questions in the chat will pop up but I'll take a break about halfway through to check on them okay and then so that's the what you might immediately have some questions I think the natural ones specific to the orb are here these are the ones I hear most often and the full answers are included in our frequently asked questions page and the white paper for the full
details I'll do the quick one aners here we use the iris and we use Biometrics in general for scalability inclusivity and fraud resistance so scalability means it will work up to an over a billion people and for example face or fingerprint Biometrics uh don't work uh in in that case is just simply not enough information in those modalities to get to a billion person scale um we also use Iris Biometrics and Biometrics in general because almost everyone has um the ability to use the orb even if they
don't have for example a government ID or a bank account um and finally iris is very hard to spoof so there's a lot of information coming in through your eyes that the orb can use to make sure that it's not for example a fake eye or modified eye and that's not as as true for example for fingerprints why couldn't we do this on a phone even if phones had good enough image quality which many don't there's also just a security question how do we trust that the compute on a phone is valid hasn't been tampered with and so the a large part of the requirements of the orb which we'll get into is for the it's for the compute to be highly secure
another common question of course is what if the orb gets hacked it is custom hardware and you're trusting that the design of that Hardware is secure the long answer to that is included in part in the white paper in part through the audits that we published but the very high level answer is that the protocol doesn't fully depend on orbs being perfectly secure there are lots of different layers to the security and it's not in that sense a single point of failure also very important is that if you've signed up at an orb and then it later gets hacked by design your data is not at risk and I'll show a bit of how that works soon uh number four is about where that
data is stored if it's not on the orb and it's not on um tfh servers for privacy the answer is it's on your phone and I'll also show how that works how it's transferred and how encrypted finally because the orb is custom Hardware that means there's a manufacturer for that Hardware there's a team that designs it how could that be decentralized and how can a community of people build trust that the hardware is doing what it says it does for example all the things I just mentioned and this is very different than other more common parts of trusting crypto projects where you have open source code running on a blockchain in a
smart contract and literally every step of that execution is um available for everyone participating to see and so it's radically transparent and there is no equivalent to that exact equivalent to that in the hardware space um because these are atoms not bits and they're hard to or nearly impossible to fully verify um and I'll talk a bit about um the design of the orb and how it it helps this um but the full answer is actually overviewed in the advancing decentralization section of the white paper just quickly check the chat I'll try to cover some of these in the coming slides um but the quick answer is that
um we are using established methods for Iris recognition so there's a question about if we're using novel biometric Iris measurements ours are novel and the quality of the image capture and the segmentation which I'll show but how we turn that into an iris code is actually using quote established techniques I'll skip questions that aren't specific to the orb for now and maybe get back to them later I'll continue please continue to add questions in the chat I'll check them from time to time what does it take to make an orb there's a lot more than it's here but this is the high level overview as I briefly mentioned it's very important that you don't have to trust some
external party or some server to have the images that the orb processed these are sensitive pieces of data that are personal to everybody and as soon as it gets uploaded to some server you don't really know what it's doing there's no way to really check it so by Design the orb has the necessary onboard compute to do all the processing and so the images don't need to be stored or processed on some server you have to trust and they don't have to be stored in the orb itself I briefly mentioned transparency and verifiability key P pieces of this is that we want to be able to open source the hardware and the software and that feeds into the design um we also want to
support the ability for anybody to walk up to an orb and check certain properties of it examples could be that it's running the code that um we say it is which would be the open source code another example would be that it has the keys the private crypto keys that the the corresponding registry on the blockchain expects and there's actually custom Hardware in the device that holds private keys and as we iterate on the orb design to make it more verifiable we want to expose the ability for anybody to attest that the key and orb purports to have is actually on the device I should also mention here
that the way you could check that the open source code is actually running on a device uh one way would be to actually take the memory off of a device so walk up to an orb and pull out some SD card and then check that the code that's on that SD card is what's in the open source repos and the existing orbs don't have this functionality but um the next version of the orb uh By Design does which is something I'm personally very excited about I already described that irises were chosen to be able to scale to to over a billion people and that requires not just using Iris recognition but actually having high enough image quality so that you can avoid having
kind of false matches is what we call them what if your IRS looks pretty close to somebody else's that's not identical but it's close enough we need image quality to make sure that we can see those differences and we don't accidentally put you in the same bucket in addition to the iris IM quality which I'll show examples of we also need high enough quality for the face images this is much easier but because World app soon will support face identification as part of world ID 2.0 uh it's a fraud prevention measure we locally compare the face of the user in World app to the face that the orb saw and to do that
comparison the orb needs to have good enough face images and you can see that in the open source code um of course we we have to make the orb secure I already discussed this a bit but um the way this works is we have extra sensors it's not just a camera for the eye and a camera for the face but there's actually five cameras U most of them looking at the face across different wavelengths and I'll show these in a second and that helps prevent the types of attacks where somebody might be messing with the orb or messing with their face to try to get extra World IDs verified we also have temper detection so if you try to open an orb there are
sensors in there that can see that and deactivate the device these crypto keys that I mentioned that are on the device they're stored in something that's similar to a hardware wallet so you can think of every orb as like a hardware wallet and that lets us check remotely that an orb still has the key that we put on it in the Factory and that way when the orb is talking to our back end we're sending data from the orb to the phone we have assurance that it's a legitimate orb so this makes it hard to for example make a counterfeit device um we also have compute Integrity this is part of oros
it's one of the features that we've built in and this means that when an orb boots it always boots exactly the same thing and that is the kind of verified or signed cryptographically signed uh source code that was built from the open source repos um and not something that somebody else modified and this is how um the protocol can be sure that the guarantees um imposed by the actual implementation in the open source code are actually being executed on an orb if it was easy for anybody to put their own code in an orb then we could never trust the information that was coming off of it
um finally of course we making lots of orbs and uh we want to sign up the whole world so it can't be that it has to be only experts can use it it can't be that you need perfect lighting uh it can't be that works inside but not outside so a lot of the design of the orb is actually just to make it easy to use in lots of environments and and robust in case there's some environmental stresses this is the kind of evolution of the orb over time I was lucky to have joined between this one and this one and so I I was the round for development focused on the software and
like bringing up some of these sensors some things you might find interesting is that the first versions of the orb actually had two cameras so two two lenses and two sensors one for each eye to save money we switched to one where there's in said two mirrors and so each Mirror Has like a direct view to each eye and can independently track them to get the capture and for various reasons including the ease of assembly of this contraption we switched to a single mirror and it will go look at one eye and look at the other eye it doesn't have exactly as direct line of sight as this do design
but it turned out to be good enough for our purposes zooming into that version of the orb you can see and this is the one that you've probably seen deployed it has a chrome shell we've made several thousands of these at this point and so this is the orb as you know it there's a front unit and it has the five the four sensors that I mentioned that are on the face and we'll zoom into these in a second uh the tracking mirror which feeds into a lens and captures the Eye Custom infrared illumination and there's a battery there's there's a cooling unit with a fan to keep the main
processor uh and then we'll zoom into this main board in the second as well here's another kind of exploded view just to give you a sense of what's inside this is a lens that I mentioned and the Chrome shells okay so now if you're looking just at the front of the orb if you took out the shell this is what you'd see here we have a face camera that is in the near infrared so that's like just below it's visibly what where your eyes can see if you go even further down in in the frequencies of light you get into the range that is considered like a heat
camera so it can see the infrared that's naturally just coming off your body because it's hot this is also pointing at the face this is very similar to a front facing camera on a phone so it's a visible light camera and we use this for getting visible images of the face as well as scanning QR codes uh and this one's interesting it's actually um a depth camera so you can see up to 1 cimeter depth resolution the face you could imagine that if somebody tries to cheat the orb by putting a screen in front of it like this that has a picture of a face and or many other kinds of attacks like
a display attack like a print out attack it'd be nice to be able to see that there's a 3D structure in the face and the the main idea is that all these sensors these four plus the I can get combined using neural networks on the device to be very good at detecting when is there a legitimate human that's just trying to sign up for the first time versus somebody trying to trick the orb and this is one of the main technical constraints of the device it makes it complicated it makes it expensive but it sets it aside from all other Hardware that's available in terms of being able to on its own tell if you're trying to cheat this is the one side of the main board we also have the other side some
pieces I I'd like to call out on this side is the kind of Main microcontroller and later in the presentation I'll zoom into the software that's on here we also have an SSD and on the next version of the orb this is being removed for an SD card that's externally removable as I mentioned and then as you can probably seen in the other photos there's these very large red super capacitors and these are used to buffer energy and then quickly dump it into the infrared illumination system that was here that's these LEDs we have three different wavelengths on this version of the orb and this is The Flash so the orb
is a camera and this is The Flash it's actually invisible mostly invisible but it is a very bright light that ensures that we always get a consistent capture no matter the ambient Lighting in the infrared and I'll actually show the code that uses that information in a bit and then finally on the other side of the main board you would see the Nvidia Jetson we'll zoom into what's running on here later in the presentation we also have lots of peripherals related to networking like Wi-Fi and LTE on this version of the orb we didn't end up using LTE but the next one we will we have GPS though it's been spotty indoors as you might
expect and yeah on the top of the orb we have additional LEDs for um informing the user of like the operator of the orb what it status is and for the users there's an external the front-facing ring of LEDs and if you've signed up at an orb you see it do this animation to let you know what stage is in and um that the capture is successful not I think this is probably a good time to double check the chat for questions see how can the orb verifies it's from the original vendor and not a malicious one that's a great question
I'll get to that in a second won't orbs rescanning process lead to Iris duplication uh so this is a question about how Iris codes work and get compared and I'll also talk about that in a bit and then there's a question like can you just put an eye in front of an orb and not have face around it and the answer is no it's important part of the designs as I mentioned these these questions these sensors are combined to form a model of what's in front of the orb and that model is highly specific to a legitimate use and an eye by itself or an eye from a different animal or a photo of an eye or
a fake eye an eye with artificial a contact lens that changes its Iris texture all of that by Design gets caught by these sensors and the corresponding machine Learning System that's a good question it was also asked how do you know an orb is not how do you know an orb is legitimate and not malicious it's not shown here but there as I mentioned there's Hardware wallet or secure element on each device and it has a private key that is um generated there when we manufacture the orb and then um there's a trusted step where the correspond public key is
is put into a registry and that registry will eventually be public or onchain um and so then anybody could go up to an orb and by asking it to sign some data with that private key they can generate a proof that this orb is one of the ones that the protocol accepts as legitimate and not some counterfeit device and that would work even if there's many manufacturers it's very tricky problem but that's the plan and then there was finally a question about Iris duplication if you get scanned twice won't that won't that cause some kind of duplication the whole point is that you have a unique IRS encoding and that when the orb generates that code
and sends it up to the service that checks uniqueness if you've done it before that service will say you're not unique it'll block you and then you won't get a verified World ID the second time if I didn't answer the questions or you have further questions please put them in the chat this is the lens that I mentioned I have it here because it is one of the more interesting parts of the device because it was custom tailored if you will for the orb to achieve as High Iris quality as we can get for this use case which is relevant for like the distance that users are from the device and the fact that we don't know that distance so it
has to quickly um change its focus and track the user's eye um interestingly it's a liquid lens so that means there's actually um a piece of liquid in there that that is actuated to change its shape and um that helps achieve the requirements that I described um this is a larger view of the tracking system with the lens and the mirror and so this mirror actually moves left right up down and um the image of the eye comes in bounces off these two mirrors and then goes through the lens and then it hits the camera sensor this is the only sensor that's not in the front so all of these four sensors are in the front looking at the face um this is the entry
point to that it tracking system I just showed and that sensor is on the back of the device um so four sensors here and One sensor in the back here this is a comparison of the Iris texture that you would get from an orb versus other Iris scanners and the main thing to know here is it's because the use case is different so many Iris scanners they're designed to check that somebody is within some small set of existing people so maybe you're trying to limit access to a very secure building so you have the 100 people who are allowed to have access get their Iris scanned and then their Iris becomes their password so
when they come into the building they get scanned again and you compare their Iris to the hundred that are already there so that's authentication or matching the iris against a small set in the world coin use case it's the opposite problem we have a very large set of existing irises and instead of matching to that set to get into something you're actually not matching that set so to get a verified World ID you have to have an High that's not one of the million or one day billion that have um already been registered and it turns out and this is detailed in full glory in the white
paper and several blog posts um it turns out that this problem of D duplication versus authentication is requires much higher resolution images of the eye you need much more information in the eye to scale that up uh and then I'll actually show more details about this um in a notebook prepared by the by metrics team but this is just a quick overview of what's happening so after the iris image is captured the orb locally converts it into one of these codes and then these codes are what are used for checking uniqueness on the back end very interesting work recently happened to make this even more secure
where actually the code is broken up into three different parts and sent to different servers to do the uniqueness check and interestingly we have the property that any of those individual servers actually don't see any information about the iris code so the three parts individually provide no information about the whole code only if you had all three could you recreate the original code and even though that's true they're still able to collectively check uniqueness that's called the secure multiparty computation design and there's recent um blog posts and even explainer video from Remco about how that works so if you're interested in
like how this part could still remain private and secure check that out okay now that's a really quick overview of the hardware if you have more questions about the hardware please throw them in the chat and I'll quickly check that the next section I want to go through is software which is what I work on more closely but let's see what's in the chat has any government shown interest in having orbs for their own country the answer to that is yes and there was a recent publication related to the Nemos project in Malaysia the specifics I'll let you read
about and there'll probably be more information coming out soon but this is in in collaboration with the government let's see is the private key generation code open source there's actually no code uh in a sense for this or at least none of ours so the hardware that generates private key similar to in a hardware wallet it doesn't it's not that you generate a private key and then you put it on the orb actually this piece of Hardware generates it internally and then it only sends you the public key out so by Design nobody ever sees a private key and so yeah there's really low-level
hardware and maybe embedded code on that chip that generates a private key but that is not open source the design for the secure element is not open source patients with cataracts or other diseases cannot verify the iris that is true yes so there are there's some people where Iris recognition will not work we try to make it work for as many people as possible so we do through like purpose built data collection experiments and through users donating data through World app we do have a whole team that looks for kind of edge cases and sees which ones we can still make work but there will be some people where it will never work and the
protocol has to adapt in the future to uh find a way to allow them to still use World ID without going to an orb at least in in the same way as we have it today that includes Pirates this is a great question can you track people on the application layer based on the data from the orb uh the answer is no and it's a bit outside of the scope for this presentation but if it's not and I think it was at a high level covered in DC's presentation on Monday but the the short answer is that the zero knowledge proofs that world ID use make sure that both the it make sure two things one is that the data from an
orb is never linked back to the World ID itself when you when you verify with some service with World ID they can't know which Iris code that corresponds to and then secondly if you do that across many services you can't even track that same world ID across those services and I think the world ID docks are probably the best place to look for more information on that the sensors are off the shelf maybe in the far future we'll think about customizing them for maybe better security can the orb tell us someone's wearing contact lenses yes that's one of the requirements for the orb because there are some contact lenses that change the texture of the
iris and we need to be able to block those people and say please take out that contact lens because we wouldn't be able to see their real eye underneath and so that there's a combination of having very good Imaging and custom machine Learning Systems running on the device enable that kind of detection what if you generate irises with AI so that's a great question that you would still need to somehow convince the orb to accept that Iris as I already mentioned there's many sensors on the orb and they're all integrated into one system that checks for checks that the user is legitimate so it's not just about having an iris
pattern but having a real live face and a real live eye and there's a lot of information coming out of your live face and live eye besid sides the iris pattern that the orb is looking at to make sure that you're not cheating if Ai and so the answer to what mechanism will the Orb used to address this is it's the same mechanism that the orb is already using to for example detect contact lenses and that is a yeah you need more you need to not just generate the whole eye of almost even your human um that's the idea there's a separate part to that which is what if you can somehow bypass all of the sensors and somehow inject the IR pattern right into the computer on the device or change the software on
the device and that goes into the compute Integrity mechanisms I described before in the tamper detection so that it's hard to modify what's inside the orb and that one I already answered keep them coming love it so yeah moving on we're about halfway through to software so this is something I work more closely on than the hardware and we have a team of roughly 12 people at this point focus on all the software inside the device plus a whole separate team that works on the neural networks on the device um and as I mentioned before it's open
source and so actually I'll step through the code and I'll be looking at repos that are publicly available under MIT and Apache permissive licenses we already did this actually so there's a much more kind of tech technical Deep dive it'll go into way more details than I'll do in this presentation but if you're a software engineer um or want to be a software engineer or especially if you're interested in Rust there's a roughly 45 minute walkthr that I did with um anastasio's Valentine moderated by looks like this um and so we walk through all the different code that is used for doing a sign up um
and and so actually a lot of this code I'm about to step through here but first I want to show what's actually inside we have a Jets and Xavier NX so that's actually a chip that has both a CPU and a GPU on it it's called a system on a module key it only uses 20 watts and so like gpus that are used to train models like chbt use 50 times more power than this chip but it's still enough to do real time image processing for the fraud detection that I already described and for the iris encoding and I'll actually show
different steps of that in a notebook in a second we built a custom operating system that's based on auntu and Debian Linux dros and it has some of the features that are required for the security in the orb and for verifiability in in parallel to Linux there's a realtime operating sorry there's a trusted execution environment so this is a much smaller and easier to verify operating system that is designed to run secure code and that's inside of a secure Enclave on arm this is an arm chip that's called TruStone and on Intel it's called sgx and this is the name of
the OS that's running in the trust Zone environment what's special about that environment is that a there's a lot less code and there's way fewer places where there could be a bug that would let somebody hack the system and V it has actually special Hardware access to secrets on the device that Linux can't see so that means you can use it for example to encrypt other keys or encrypt parts of memory and that's if somebody packed Linux completely they still couldn't decrypt those pieces of data and then on the Jetson most of the code is in Rust and we'll see some of that the interfaces to
some of the machine learning models are in Python inside of this trusted execution environment for security we have applets written in C and then Nvidia provides a framework called tensor RT that allows compiling the neural networks into a form that's efficient for this device and we leverage that to do the inference on device and all of this is under this repo open sourced except the machine learning models which are in separate repos I'll show you in a second additionally to the Jetson we have two microcontrollers one is the kind of main MCU that is talking to most of the peripherals on the
device that includes things for the user interface that's there's a button on top there's LEDs that I showed before there speakers and it's managing the power and data for all of these peripherals it also talks to the Jetson and the other microcontrollers um it has the GPS data coming in um we have temperature sensors and voltage sensors to make sure the device is healthy and this microcontroller will turn things off if things go out of out of whack and then critically it can do real-time triggering so we want to be able to control and software exactly when each camera is triggered maybe for
example you want the illumination system to be running at 30 htz but then you want to trigger another camera just in the time between those flashes So to avoid interference and that's done by using external triggers to tell each camera or each LED when it should flash or when it should do the capture there's the lens that I mentioned and it has a lowlevel feedback loop implemented on the main microcontroller to keep it stable and then a higher level feedback loop to do the actual autofocus on the jet there's the 2D tracking for the mirror that I mentioned and the
interface to that is all done through this microcontroller and if you want to see what any of this looks like it's also open source in this orb fir and all of it's written in embedded C there is a second one so this says 2x arm cortex m4s the second one is the interface to the secure element and The Temper detection system which I won't go through now but for example it has features that allow detecting if the orb has been opened and it has the interface to use that secure element for signing or attestation which as I mentioned before can be used to check an orb isn't counterfeit it also can be used to allow
the back end to know that it's talking to legitimate orb at this point I wanted to really quickly flash some code just to show anyone who's interested where it is and what it looks like the first place to look if you want to learn more about the code on the orb is this blog post for when it was open source back in March this year and we tried to give a highle overview of the compute which I just went through and a tour of the code so along with this video there is like a really highle flow outlined in the blog post with links into all of the different parts of the code that um are relevant and I'll show some of them
now so this is the starting point it's the orb software repo and the code I'm going to go through is actually all inside of orb core so you can click through and you'll see it here and so everything that's related to capturing the images processing them into Iris codes signing those Iris codes encrypting the image data sending it back to World app is inside of this kind of main application on the device and you'll see each of these steps in the open source code so here is like one of the highle entry points for doing a signup so why it's called do sign up um and I think it it really reads like a high Lev flowchart of the
main thing the orb is doing so after some initialization the first thing that an orb does when you press the button we have two right now so one is to unlock the orb from the operator side so the operator of the orb shows a QR and the second one is the user QR and this is used to pair the user's phone to the data that's on the orb so that it can be encrypted and sent back to that phone this is also how we then later know that the world ID private key that the user generated on their phone is the one that should be verified or verified if they pass the uniqueness check so that's some critical data we get right up front I'll
move on to this step so here is where all the cameras get turned on you can see that here so we're enabling the cameras themselves we're also enabling neural networks to process the data from those cameras and some internal agents that are doing things like moving the mirror to track the eyes or changing the mirror Focus to get a sharp image of the eye and this one is changing the LEDs to make sure that the eye is the way brightness and as that data comes in it gets processed through these handlers there's
one that handles the infrared data really the output of the infrared neural network or the network that was trained for infared data and here is like a a key part so we have the image that came in it has the score that the neural network assigned of how good it is and if it's above a certain value which is here um then it's good enough to continue means like we found a sharp enough high quality Iris image And We additionally check that the brightness is right and if these two are valid then all of this data gets packaged up into the output of the biometric capture just
here and gets sent to the next stage the pipelines this is Imaging take the picture and this is process the picture and we'll look through a really great collab Google collab hosted python notebook that the AI team prepared and this will be a large part of the focus of next week's presentation on biometric so I won't show exactly how each step works that'll be next week or sorry in the next presentation but I will just show the output so that you can see what's done in that step so the IRS has already been captured as part of the
whole eye image and the first thing is to figure out which part of that image is the iris self and this is actually it turns out one of the hardest parts because there's lots of different types of eyes lots of different ways that they might be partially uded like by the eyelash here um the pupil can be different sizes there's all kinds of Reflections and rotations so um it's very important that the AI can tell exactly which pixels are for example ey lash and which pixels are Iris and a lot of work goes into training the model that can do this um and again everything I'm showing is part of the open source code then once the iris is detected we do at this point all kinds
of fraud checks like in the chat it was mentioned the contact lenses so this would be the point where we're also checking in parallel that there's no nothing fishy going on maybe it's a a picture of an eye maybe it's a display maybe it's a contact lens and uh then we actually have to pull out the iris itself and so these parts here the unwrapped version of these sections here and so it's like turning the circle into a rectangle and then that rectangle gets processed this is something called the Gabor method and I mentioned before it was asked in the chat do we use existing techniques and yes this is an existing
technique we've highly fine-tuned it for our use case but it uses something called a wavelet transform which is in the class of frequency domain or pers spectral methods what that means is it's looking at patterns at different scales in this um picture of the eye and um extracting information from those patterns that is highly robust to all kinds of other Transformations you might imagine for example if we got the same picture but it was slightly brighter or if we got the same picture but the eye was slightly more closed or the pupil was slightly larger or it was rotated all of those have to be accounted for in
the method that goes from here to here and in the method that compares these codes to other codes um and so when people talk about the orb hashes your eye this is what they mean so it's it's taking this photograph of an ie and turning it into one of these unique codes and then it's not done on the orb but the next step is of course sending these codes up in a secure manner to be compared against all previous codes and if that step passes that's when you have a verified World ID great and then last but not least it's my favorite
part the output of the pipeline which has these Iris codes in it is used both for detecting frauds this is where for example the contact lenses are checked and we pass it to upload self- custody images so here the iris code and the corresponding images of the IRS and face from basically all five sensors you can imagine are packaged up and critically encrypted so encrypted and signed so the this last step here is encrypting the entire package with the users public key which came in through the QR code that the user showed this is generated the corresponding private key
is generated in World app on the user's device and so the overall package is encrypted with the user's key such that if that package ever leaked it's only the user or if it was in this case upload it to a back end to to get it to the phone even though that back end sees the encrypted package because the user owns the private key it's basically garbage data nobody can see these pictures except the user and so that's that's the most important part you can also see that some of this data is double encrypted so the in this case actually the Raw photos the iris code itself and the face
Vector are not double encrypted because they're actually used later by the user's phone but the raw images which right now we don't have an explicit future use for but may in the future are all Al encrypted with a key that is stored by the tfh backend this is an additional security measure so that even if both your self- custody package and your private Keys got leaked maybe your phone got hacked um your actual raw Biometrics are still protected um and that's basically it if you look at do sign up it it's the end this last step is just sending all that data sending the
iris code specifically to the uniqueness service that I described and I'm skipping over it because interestingly this is moving so this step is currently done on the orb that's why it's here in open source code but it's moving to be done in World app and that's because actually it helps decentralize the protocol so think of the orb just as a camera that takes images processes them and sends them back to you and then anything else that has to interact with the protocol sending the iris code up for a uniqueness check can be done from World app or basically from the user's device and that reduces the kind of trust that you need to have in the orb
itself I'll double check the chat for questions we've actually got a load ofs in the questions tab which to find you at the bottom of the screen got it I didn't see that I was looking for it before but didn't see it I'll get to both the subject can be moving a little bit but we don't the orb doesn't ask it to change its eyes doesn't ask it to Blink so you just in front of the orb and it captures your eyes there's no specific thing that you have to do um the source code is on online so I I'll post The Links at the end but it's the orb software repo um and you can see kind of all the details in this um blog post that we posted here
how can someone access my IRS codes if you mean can you access your own IRS codes technically the answer is yes because they're they're on your phone we don't right now expose an interface to that there there's no use case for somebody to do it but in the future you might imagine there's lots of apps that inter interface with the protocol and some of them might support uh inspecting the biometric data that you have probably not that interesting but if you really want to see your iris codes technically they're on your phone after you sign up thanks for the link to the collab notebook let's see if somebody loses their private
key great question I actually have this in the end and why does it have three wavelengths so I'm just going to check how much time we have we have four minutes 3 minutes and just look at all the questions I'll try to get through as many as I can so very quickly if you lose your private key or remove any of the data associated with the signup in the future hopefully soon there will be a reset flow where you can go to an orb and instead of doing a normal sign up you do a reset where your original public key and Associated World ID gets deactivated and you get a new one um and this is fine because it's just important that everybody only has at most one
verified World ID and so as long as we can by matching your iris code code back to the original World ID delete it the public component of Your World ID is matched to your iris code not the private component and so we have the ability to delete or deactivate the original World ID and generate a fresh one and related to that is because your world ID isn't a a login it's not like a password you're just using it to prove humous on top of some other login so if you use it for Twitter you'd still have Twitter login and then there would be this extra step where you could prove you're Human by losing it as long as you can get a new one you still have all the
access you previously had we have three wavelengths because we wanted to build the or to be as general as possible and we didn't know 100% what we would need in the future and one of the ideas was that you could get much higher much more information out of an iris if you image it across three wavelengths than if you only have one and that's still in research but the next version of the orb only has two Iris recognition ml is open source but the model that's open sourced was not trained on the same data as the real model but all of the code is open source and that's actually what we were looking through so this uh notebook is part of the open
Iris um part of this recoil and you can see exactly how both the how the model works and how to use it uh let's see I'll stop sharing for now so are you allowed to change the iris in the software for example with bugs I'm not sure what you mean but the if the software was not Faithfully converting an iris into an iris code that would be a bug and it would break pretty fundamentally the protocol because then if somebody signed up twice it probably would allow them to have multiple it's one of the reasons it's important to have all of this open source so all of
us can check it for can you get fully functioning orbs to do research on them DM me I guess would be the answer to that I'll put my credentials in the chat my my email in the chat at the end an individual doesn't see be able to check we already answered that one answered that one when can I buy the hardware that's a great question we're working on this so right now orbs are not for sale but they're rented and people get paid in the world coin token for each person that they sign up but we are hopefully going to transition to a model where people can
actually just buy the orb and I don't think we have any publicly available dates for when that will be but soon TM if I didn't answer your question that was a good good time to screen but I think we're out of time so my email is here see didn't work that's my email I'm very happy to answer any more questions that come up later also for the record the name I forgot before is Miguel Miguel did the interview previously for the walkthrough of the orb so if anyone wants to know more technical details of how software works
specifically and dig into the functions and the infrastructure and Frameworks that I just really quickly flashed go check out the previous video that we had where Miguel interviewed me Anastasio and Valentine it's about 45 minutes and it's in the open sourcing blog post which is the main link I want everyone to take away from here and it's that cool thank you everybody thanks for the great questions I hope this made some sense and like I said before feel free to reach out to me for any future questions thank you so much Dan for that talk we've had loads and loads of questions I did actually remove oh sorry remove some of your questions from the
chat so that we could get through the relevant ones but do come along to the rest of the workshops because I'm sure in one of those you can ask your question to another speaker who will be able to answer it but we had so many we couldn't get through all of them so sorry about that guys we'll see you next week for our next two workshops on Monday and Wednesday I'll send you the calendar invites this week so you'll know when they are but they're at the same time every time so thank you so much for joining us everyone and have a nice rest of your day thank you thanks everyone bye [Music]
Related talks
- What's Buried Under the Identity Stack? A Talk About Real Privacy
- Human Keys for Digital Human Rights
- zkSummit14 - Live Stream
- Episode 302 - ZK for web2 interop with zkLogin & ZK Email
- Best Compute Over Private Data Application/Protocol - ETHOnline 2024
- Aisling Connolly - vetKeys: How Blockchains can keep many Secrets
- Managing Secrets in your DApp with NuCypher by Justin Holmes
- Maclane WILKINSON - DECENTRALISED KEY MANAGEMENT
- KeySpace: End-to-End Encryption using Ethereum and IPFS by Samuel Walker (Devcon5)
