Context-Based, Private Proof of Uniqueness
ETHCC 7 · 11 Jul 2024 · 21:00
Sebastian Rodriguez of Private ID, the company spun out of Polygon ID, explains context-based unique identifiers: a way to prove you are one unique person without exposing a permanent identifier. He says an ID derived for each context, such as a session set by the verifier, stays the same within that context and cannot be linked across others. His examples are ticket limits per concert and DAO voting, where each proposal is its own context, so votes stay private but cannot be duplicated. He adds pairwise DIDs against correlation, and says in Q&A that this solves identity verification, not full KYC.
Speakers
Topics
From ETHCC 7, hosted by Ethereum France.
Transcript
Hello, hello everyone. We are starting now. Thank you. Everyone. So my name is Sebastian Rodriguez. Probably in the agenda you saw that then the company on this event was Polygon ID and now it's Private ID. We just spoon off from Polygon. It was it's very recent. And when we apply for the for the talk, we're we're still Polygon ID, right? But this is the new company, new round. Same product, same team, same mission, right? We just spoon off from Polygon. With that said, uh, let me start with the topic.
There is no shilling in this session, so let's go for it. Um so think about the last time you did this, right? And under all the reason why we do this, right? When we present our national ID, our passport, um any of this uh what they they say tier one credentials, right? And there is a reason why they call this tier one. Because when we do this, what does the other side get in exchange for this presentation? Right? The other side, the verifier of this ID gets uh all these four things, right?
After presenting it, we become identifiable, we prove that there is a source source of uniqueness, right? Uh uh we become accountable because anything that we do from that point in time is gonna be lasting on that unique permanent identifier that I cannot detach from myself, right? So that this is what creates reputation, long-lasting reputation, right? So we become accountable, and then we may also become eligible because we are a citizen, because we are older than anything. That belongs to the attributes of the identity uh identification, but in your national ID, the most important point is the unique identifier, is the number, right? All the other things are attributes that may make you eligible for certain things, but they don't create identity, uniqueness, and accountability, right?
So these identifiers, what we call unique identifiers, right? These are not like they are not just in a database. Their main property is that they can only be generated once by you as an individual. In the case of national IDs, this is a responsibility of the government to make sure that they don't issue it once, right? And we would try when we try to divert from the government, we end up with biometrics because it's the only thing that we cannot replicate more than once. So now today the topic of the talk is context-based unique identifiers, right? And this is a summary of the idea.
The idea is super simple, right? The implic the implementation is not that simple, but the idea is very simple. The idea is that you would you want to hide that unique identifier, you want to protect it, right? Because remember, that unique identifier has implications like your long-lasting reputation and your long-lasting activity. It's really who you are. You cannot detach from it. So even the bad reputation will be attached for you with you forever. And things like universal digital ban could be implemented, right? Imagine that you are being banned from digital services like from Google.
If you are banned from Google and for life, then you're dead, right? So imagine that you are not banned from an email account, you are banned with your biometrics, or you are banned with your national ID. You cannot get detached from that. There's no, that's game over, right? So these unique identifiers need to be protected. One way of protecting them is to create what's called context-based unique identifier, which is creating a derive, a cryptographically derived unique identifier in each context for each interaction, right? So imagine that you go to buy alcohol or a discotheque, you don't present your national ID, you just automatically create a fungible uh identifier just for that interaction, right? Um so these context-based unique identifiers need to have uh need to have a certain number of properties, right?
The first property is that they need to be cryptographically derived from a valid universal unique identifier. Why? Because the second thing, right? They need to be cryptographically verifiable, right? So the verifier that is receiving this context-based unique identifier needs to be sure that he's getting the right thing, right? That he can also control that you are not getting that service twice. So to all effects, it needs to have to have the same properties that your real unique identifier, right? And the only way to make that verifiable is through cryptography. Uh it should always be the same in the same context, right?
Think in a context like a session, right? I think it's easier for developers if when you start a transaction, you establish a session between the user and the application, and then things uh are stored in that session or refer to that session. The context is the same, right? So if I go to a verifier, if I go to the same discotheque, right, and I generate fake ID or fungible ID, right? If I go for the second time to the same discothec, it shouldn't be impossible for me to generate a fungible ID that is different from the first time. All the time that that discotheque or that application is used in the same context, right? So in the same context, me as an individual, I cannot generate different things.
And of course, it should not be reversible. I should shouldn't have any way to find out what is the real um unique identifier, but should be reversible also in other ways as well. Okay, so what is this so important? Again, there are few sources of uniqueness that we can really use and trust, right? And that's a challenge because many people have been trying to create uniqueness proofs based on data aggregation, social graphs, etc. etc. Uh, but at the end of the day, they are approximations, right? Uh so real hard evidence uniqueness is super hard.
And the only hard solutions for that so far are either depending on big institutions with the law and the power like governments or biometrics, right? And the combinations of having universal as ID exposed versus having uh biometrics uh versus having context-based uh is higher depending on where you are, right? And the worst combination possible is we have biometric unique identifiers and we are exposing them in every interaction, right? That is the dystopia, right? So we think when you move to the to the column on the uh on my right, uh things are a bit better. Now, uh enough enough about theory.
Now, how are we we we have implemented this idea in in private ID, right? And I like to explain how it's implemented, right? Because it's um I think it's uh it's a good uh uh way of seeing also what are the technical implications of it. So this is it. It's not uh it's not it's not a lot of magic, but it it's built on a layer of a lot of magic, right? So there is a lot of things that we have been building in the protocol for years, so that allow us to do that in a quite simple way, because there is a ton of CK under this. But the essence is that you get your context-based unit identifier as a hash of a number of concepts and things that we have.
We have the Genesis ID, which is your the identity that you create in private, you get the schema hash. There is announce in the middle, but I will jump to the schema hash uh because it's important, because you need to know that that context-based identifier has been created or has been derived from a valuable good credential. So, what type of credential are you using to generate this ID? I need to I need to be able to know that. And then there is the newly fired session ID. This is the context that is that the verifier sets. And you don't need to know a lot to code this.
There is a graphical interface that is called query builder. You can go to our query builder, you build your query, and then there's a button saying, okay, I want to check uniqueness, and this is my session, right? One, two, three, four, five, whatever, right? This is my session. Uh well, it has all these properties, right? There's one credential per session, it's brute for resistance. Uh we can combine this with pairwise the ID. If I have time, I'll try to explain that as well. And then the the session is it's not that's why we don't call it a session. It's not time-bounded, right? It's a context. You can use the context in whatever time frame that you want. So, what is the verifier really asking?
Let's say I'm an application, I want and I want to check your uniqueness. Canonical use case in Web3, I have an error, right? I want to give away money, but I want to make sure that I'm not giving away to bots, right? That is exactly the case that we're doing with Linea and VERAS right now. So I want to make sure that you are unique. So as a verifier, I will ask, present me a unique identifier in the session, blah, blah, blah, that is derived from a national ID, that's the schema, right? Credential, and issued by a certain well-known identity like a government. Right?
This is this is the query that you are seeing this in this QR code here. And the answer is it's a context-based uh unique identifier. That's it. With all the zero knowless proofs that guarantee all the parts of the question. So it's uh it's generated from the right schema, it's generated from the right issuer, it's taken from the right attribute, etc. etc. Pretty much it. Some examples to understand how you can work with this. So uh how do you use the context? Case number one. Imagine you are a concert page or selling concerts, right? What would be the session there?
Well, if you make the session of the context to be the entire website, your rules about uniqueness will be okay, since the context is the entire website, I can uh create business limits on the amount of tickets that you can uh buy across all concerts. So I could implement and say, okay, two tickets per day, I don't care which concerts, right? Or you could say, you know what, I'm gonna make each concert a unique context. So I can apply rules of uniqueness and say each unique person can buy five tickets of this concerts, two tickets in that concert, etc. etc.
Right. And also, this becomes more interesting when you go to things like because buying concerts doesn't reveal a lot of you. I mean, you maybe have bad taste in music, but that's it, right? But if you go to a DAO, right, and you have different context in each uh voting, right, and you define that in each proposal for the DAO you will have a different context, then you're presenting a unique identifier to each proposal, which means we can still guarantee that you vote only once, but it's impossible for for us to make any correlation between your identity and your votes, right? So you are basically a different being in each proposal, but you're still proving the verifier uh in a hard way that you're not voting uh twice.
Right? This is what it takes for real privacy in democracy and voting, right? And there is a last thing, I don't know how I'm doing time, uh, but I think we're okay because I'm not being told off so far. So there is uh another thing, which is how do you present the credential, right? Remember the picture, sorry, I'm gonna do something very ugly, going to the first thing, right? There is a guy holding the credential, right? And the way you match the picture in the credential to the guy is because there is an identity and there's there is an identifier, right? In the world of credentials, that means that when you present a credential or you present something, you're doing that from an identifier that you control.
In the case of decentralized entities, this is decentralized identifiers. A decentralized identifiers is a long number, long string and numbers, right? But you can prove that you hold the secret that is in control of the DID, right? So okay, so imagine the case of the DAO. I'm presenting uh a different fungible passport number to each proposal, but I'm doing that from the same DID, right? I'm doing that from the same cryptographic uh from the same identifier because somebody needs to hold it, right? Well, then uh you again are in the case of you can track things, you can correlate things, you can say, okay, yeah, you are telling me that you are this different passport number in these four proposals, but you're doing all the always from the same DID, right?
So then it's broken there. Well, for that, we implemented, I think four, five, six months ago, something called profiles, that now the D foundation is calling pairwise ID, so we're changing the name to pairwise ID. Pairwise DIDs is exactly the same concept. We are not, we are generating a different fungible DID, a different DID for each interaction. So now both things are changing in each interaction the identifier and the proof of uniqueness. So it's impossible to correlate, to trace, etc. etc.
And for the user is very convenient because he only got the credential once, right? You you pass KYC once and then you are able to share everywhere, and they cannot correlate you or track you down. So last words before questions is um we deeply believe that in the in the what is coming is is uh uh uh strong demand for trust. You have seen, I think this is this was the day probably where most sessions were about either trust, verification, verifiability, uh, etc. etc.
right? The full full day in this room has been about that, one way or the other, right? And we think because that's because uh it's clear there's gonna be a need for trust, right? There's gonna be a need for us to be verifiable, and this proof of uniqueness are gonna become commonplace in many services and applications, right? Because how easy is or will be to fake identities, right? So our proposal is to build uh tr to build tools that don't undermine our privacy in the process and show whoever the decision makers are that if they decide to go in the wrong way, it's because they want or because they can't. Thank you.
Do you currently have uh any partnerships with institutions or governments to adopt your solution? We are uh discussing with several governments. Um before okay. Apocalyptic timing. Uh so we are the uh we have been discussing this with governments, I would say over the last six to eight months. We see an increasing interest in in sovereign identities. With uh European Union is leading that interest and that trend. Uh so I think now it's quite clear that governments want to have that uh they see that as a critical part of their infrastructure, right?
Uh I can give you an example with GPS, right? Uh GPS was for is for free, US gives that for free to all nations, but Europe has developed their own GPS because they know there's a strategic asset that if any time US decides to shut down, uh it will be critical for us. Identity is pretty much the same, right? So governments don't want to delegate on Google identities, et cetera, et cetera. So we see an increased in this, and yes, we are talking to the governments. Uh reality is that they are all running proof of concepts and they are all trying to see what's gonna be the uh decisive uh technological stack. And the European Union has basically decided that for everyone, so now it's like a race, right?
Now that European Union has said this is the technical stack, uh everybody is is running to uh to implement something. Um thank you so much for the presentation. I'm interested in any implementation of this technology applied to DAOs, uh the AOs, um, for private voting. Is something similar to snapshot? Perfect match. This the uh this uh private ID was before Polygon ID, but it is based on an identity protocol. Uh I see that we have Jordi on the audience.
Uh he started this uh as a way to bring digital democracy, right? So uh there is a reason why we are so high in the scoring of privacy. I mean, we have tons of unique features all about privacy, because in the context of uh general election, right? Uh the life of people are are at stake, right? So if you are thinking about DAOs and uniqueness, yes, uh this is a perfect match. Thank you. Is this enough to provide KYC to Debs? Uh sorry here.
Um because I think govern governance um won KYC because in the worst case they want to hunt down criminals. So what would happen in the worst case where they like uh take the proof, come to you, like like who's who's the citizen with this like uh second DID or whatever? This is this is the most uh thank you for the question. Is it's is a uh anything related to KYC is always uh one of the questions, right? So short answer, no. This doesn't solve KYC, right? And and a lot of the projects that are using CK to solve for KYC are also not solving KYC. The reason is this solves identity verification.
From identity verification to KYC, you have a ton of obligations that comes from storing information for a certain time, that comes to provide the data to authorities to do AML checking, right? All these responsibilities require much more complexity of services that I have presented today, right? So this will give you all uh a lot of security in the identity that you can trust. But if you're looking for real compliance, right, that is so on our roadmap, but we are understand we understand how complex that is. We will be able to provide that, but not now. Thank you.
Thank you for the talk. I have this question. The identity is somehow related to a national ID, right? So my question is related to those people that have two or more nationalities and passports to present, and how do you control that? Or if you have in mind how to handle that. Well, first uh I like to correct your first statement. Identities are not national IDs. National IDs are representation or a proxy for identities, right? And as a proxy, they are not perfect.
So if you want something that is better, so the challenge with the national IDs of the passports is the lifecycle management, right? In that regard, biometrics is better. It's just better, right? Because it's not only that you have two nationalities, that your passport number changes over time, right? There's all kinds of things. And each country has different crazy roles about that. So the life cycle of these documents is far from being perfect, right? A much better solution is to have biometrics. Now, when you when you you when as a community, a country or an organization you want to choose your source of uniqueness, you need to balance that imperfection, right, with the implications of using biometrics, right? So I would say it's better because all the systems that we're using, they have to cope somehow with this lifecycle challenges, right?
And there will be corner cases and there will be situations to organize. But you need to wait. What is worse? That a person with two passports gets an unfair benefit on the system, uh, or that everybody needs to go through biometric scanning sorry did i answer your question uh yeah um so it's probably simulation uh a person with two IDs can register there and uh have two identities two the two different identities so for certain applications it could be a problem uh but maybe it's just uh a single flow in the in the system that will depend that will depend on the context of the application I would say that would only be important in the context of global applications right most services uh they know the context of the countries they are serving right uh but yeah they they could there are cases and corner cases where somebody may get an unfair ambitious by having two passports okay last question no no but just to clarify the the basis of the identity is something we call the genesis ID uh he was showing the passport but that was just uh in the context of an example right like it you don't like necessarily require the passport as the basis for hiding the the genesis ID right it's still a set of of keys that you're hiding yep okay we are run out of time okay thank you very much for coming and listening give me a visa give me a visa give you a
Related talks
- Digital Protests and the Future of Democracy
- Unlocking Digital Democracy with ZK Identity - Bangkok 2024
- Sebastian Rodriguez - Open Data, Data Spaces, RWA, CDBC...and Identity
- Permissionless (ZK) Registers
- ZK HACK III - Build a ZKDAO with UniRep Protocol
- Privacy: Past, Present and the Post Quantum World - Dr. David Chaum | ETHDam 2024
- ZK Voting App Deep Dive: Mixers, Merkel Trees, and Build with Noir - BuidlGuidl's Builder Bootcamp
- MACI - Private Voting - ETHGlobal Singapore 2024
- ZK Badges: A new primitive for self sovereign identities by dhadrien | Devcon Bogotá