private compliant DeFi protocols - myth vs reality
ETHCC 7 · 11 Jul 2024 · 23:44
Panther Protocol's head of product and chief architect ask whether DeFi can be private, compliant and decentralized. They present a multi-asset shielded pool using a UTXO model, Z accounts with configurable KYC, blacklists and limits, and KYT attestations proven in zero knowledge. A data escrow lets operators decrypt details only in special cases such as lawful inquiries, which they say is not a tool for routine monitoring. They call this smart compliance and leave open whether regulators will accept it.
Speakers
Topics
From ETHCC 7, hosted by Ethereum France.
Transcript
Coming in large numbers after the Rave party last night. All right, so my name is uh Saev Akhtar. I am head of product. I have been uh doing a mix of uh uh development, coding uh architecting a little bit, and then product management for the past 20 years. Um in the ZK space for three, three and a half years, uh built some other DeFi projects. Today we are going to talk about um one of the one of the major problems that DeFi has right now when it comes to regulation and compliance.
Uh, and I will be joined with my colleague, Chief Architect Vadim here. So we would be kind of sharing some slides together. Um so what we are gonna do is today talk about um just a little bit on what is lacking in the DeFi world uh and try to see how we can find a balance between you know what we call data privacy, uh decentralization and compliance. Uh we will talk about the challenges uh uh and the smart contract solution that we look at in the Web3 space, and then finally make a point that DeFi can satisfy the regulatory needs that we expect. So right now, the way we see is uh we are still waiting for uh the lift off, so to speak, of DeFi.
Um we have seen a lot happening in the past few years with DeFi protocols. Um we feel like privacy has been a major problem, um, and it has been said and brought up in different forums uh that DeFi lacks privacy. And in in one of the slides, we are going to see uh at least uh we believe that the privacy aspect in the DeFi world is not even as good as in the in the in the current banking and the current financial systems. Because we'll see.
We'll see why. So the other thing is because of lack of privacy and other factors, we see that some of the privacy protocols that does exist are subject to bad actors utilizing them for laundering money and things like that. There's also problems where we feel like the privacy protocols, it's harder for tools like chain analysis and other chain monitoring tools to find out who the actors are, what the transaction looks like, how much of money was transferred, and who deposited, who withdrew, and things like that. Which leads to less popularity of privacy coins, private solutions.
And then we feel like because of all the compliance risks that are there, people are forced to lose privacy. And probably banks sharing with the regulators and other reporting requirements are fulfilling, but the rest of the world does not know about that transaction. In the DeFi space, we feel like everybody knows about your transactions.
And it's not that hard to find out your real identity based on your pseudonymous public addresses. Also, bank has to comply with regulations, they have to report suspicious activities, and there are other reporting requirements. We are here to put a solution and basically ask ourselves if DeFi can be private, can it comply with regulation, uh, and still keep the ethos of decentralization, which we will see how when we kind of touch a little bit on the technical aspect of how things are implemented. This is a list of projects in the DeFi space, some of which are trying to accomplish, if you see all the columns there, which relate to the aspects of regulation in terms of KYC, monitoring the deposit, rate limits, you know, proof of innocence is one concept that came up recently in a paper published by Vitalik and Amin, where they talked about how a UTXO model-based shielded pools can have a proof of innocent kinds of feature where users can always trust that the other person they're transacting within the pool are the right actors.
So this was published by Greenfield. Panther kind of checks most of the boxes here, but this is again, this is I think I believe it's a six month old report. We did a lot of other works. Uh and here we are to show what uh Panther protocol is researching and developing in terms of on-chain solutions for satisfying the regulatory compliance needs for licensed operators. What does that mean?
It's it's a lot of things. Um in the further slides, we will see how we kind of try to accomplish different aspects of all the regulatory needs using the tech stack that we have today, and we will be touching a little bit on zero knowledge proofs and what zero knowledge proofs are and how we can utilize zero knowledge proofs for compliance. On the tech side, uh Panther is a multi-asset shielded pool, which allows transactional privacy. It's a UTXO model for asset.
There is a concept of Z account, which is primarily like a bank account that ties all the transactions, user controls, um, compliance within the shielded pool, and Vadim will talk more about that. Um again, um, from a Merkle trees, uh, think of it like a database, but in a Merkle tree structure um that stores all the assets. There is shared anonymity set across supported networks, and we use SNARKS as a proof systems uh for this. Now I will just take a quick invitation to Vadim, and he'll talk about the next few slides here.
Yes, thank you, Saif, and uh thank you all for taking your time to listen to what I have to say. Uh well, let's uh look at uh technical features that facilitates supporting some of the uh regulatory compliance requirement. Let me look what it is. So they are named here, major ones, and then let's look one by one at them. Oops, yeah.
So in the center of the system is the uh concept of the account. Basically, this represents identity of uh a user, uh, but uh it lacks the personal identifiable information, but uh consists of uh the data which is needed to privately identify user in the protocol, and um uh well it may be linked to the personal information based upon what we call main EOA in case when user needs to identify himself with like in a traditional way it use the user may use this one, and uh well the in order to have the activated the account, the user needs to go through the KYC process. But this KYC process is very much configurable, and um every transaction spends uh what we call the Z account UTXOs.
This is just technical representation of the Z account and creates a new one with almost identical features, except, and this is the point why we recreate the accounts UTXOs, except some counters, updates of limits and things of that, which later may be used to prove some statements about user transactions. Okay, yeah, definitely we support some blacklists, like first of all, Z accounts, blacklists, so they are like maintained on the DAO level and maintained of the level of the zone. We'll talk about it a little bit later.
And in every transaction, user needs to prove in zero knowledge that his Z account is not on either of those blacklists. And in order to do that, we structure it as a sparse Merkel tree, which allows for easy proof of exclusion. And those are not just the only blacklist which the protocol supports, but those this one are the major ones. Okay, well, KYC attestation, it plays kind of a central role in a lot of protocols.
Basically, this is a claim saying that a user has gone through the KYC process, but important addition according to some configurable rules. So the KYC provider is the one who is authorized to sign the attestations, and uh KVC profile is information, private information which is detached from the Z account, but in some cases may be linked to a Z account, providing cooperations between parties involved. And yeah, during the onboarding user proves in zero knowledge that he the user has a properly structured and signed KYC attestation, which itself guarantees that user indeed passed through the KYC process as required or configured by the protocol.
Well, zone is a very important concept. Or if you think of in terms of the Miocal trees of UTXO, you can think of like some logical part of this tree. And this part is indistinguishable for external observers. So an external observer cannot say, look in observing transactions, which zone a transaction belongs to. Limits allowed what is maximum amount of a deposit that a transaction may have in these zones and so on.
But another important thing says like the concept of routing. So an asset comes to this zone and it may be spent in another zone. And routing defines which zones are illegal to source assets into this zone and where assets created into the current zone may be spent into. So it allows like fine-grained the configuration of what transactions are allowed. And yeah, like on every transaction user proof and zero knowledge that the transaction user tries to do conform to all these configurable rules.
It's not very popular in uh but uh the reality is um the requirements of authorities are to you know to keep records and to be able to answer to inquiries in some special cases. And this is the mechanism data escrow helps. So like the data escrow is kind of a private information about a transaction which is uh encrypted and is a part of a transaction. Um but the important things that the protocol, the arithmetic circuits, they ensures that the encrypted information indeed the correct information about the transaction on one hand, and the encryption is done properly, so that this is guaranteed.
And well, it can be used for two purposes. Like the first purpose is just you know using the uh special keys, uh operators or parties like zone operators or KYT provider or like uh they collaborating may disclose not disclose but may decrypt this information and get access to this information. But in very special cases, it's not a tool to analyze every transaction because of the massive off-chain cooperation which is needed between the parties, and because of the computational resources needed to open a single data escrow UTXO.
So these special cases are like forensic investigations, lawful inquiries of authorities and things like that. But on the other hand, since user knows the content of the data escrow since his browser work preparing it, this is the basis for zero knowledge proofs and selective disclosures of some of the private data and you know statements about that private data. Well, uh KYT attestation, it's not such things as quite well known as the KYC attestation, but if we speak that KYC attestation is a claim about the user, the KYT attestation is a claim about a transaction itself.
So that this is the claim that some transaction, uh for example, depositing of token from the external wallet is considered to be under the below the risk score threshold, and this claim is signed with the circuit-friendly signature by the attester. And in every transaction, user proves in zero knowledge the correctness of uh the signature and the correctness of the attestation. Checks, there may be different actors of the protocol who may act in such a role, and this is configurable for zones.
Like every zone may have its own set of attesters, KYT and KYC rules, limits and so on. So like here where the zones are very handy. Well, if we look in general on the flow of the like major function of the regulatory compliance, which is transaction monitoring, like the idea is pretty simple. So on onboarding or on doing a transaction before that, before doing the transaction, user requests from a provider, some attestation, and the attestation and other rules of the protocols are checked by smart contracts and zero uh knowledge circuits.
Certainly, some part of the information required for these checks goes in private fashion. Like, but some part of the checks, some part of the information of the private information goes in clear and disclosed and is disclosed to the provider, which creates a question. Can we do better? May the compliance process be facilitated if private data remains confidential. The idea of it is like these checks and procedures based upon the zero knowledge proof and selective disclosures rather than on the private data in clear.
And we'll see that this may be achieved using almost the same building block we've been discussing before that. Okay. So that again, if we speak on the application of the smart compliance toward transaction monitoring, that what we are trying to achieve is just like we want to prevent illicit activity through the transaction monitoring and risk analysis at runtime using proofs and uh selective disclosure, and doing it, we uh thinking of the following design principles. So the first principle is like the pre-transaction checks should be at runtime, like just before the transaction should be preferred over the after transaction, like post-mortem analysis and monitoring of uh transactions, and okay.
Well, and then uh the we we and then the those checks are based on should be based on obfuscated data and proofs, but the access to the user information still needs to be possible subject to very clear and safe access rules, and we use the same blocks in order to uh to provide them. So, in general, like what we are moving from and what we we we are researching to move from is like instead of giving private data as an input for the rule based transaction monitoring, let us give proofs as an inputs, providing that we still have data escrow as a source of uh detailed information and private information in special cases.
Once again, in special cases that may satisfy the requirements. Well, I think I've run out of time. And just uh the final word if we well, yeah. I mean, we'll we we'll be here for questions, but but quick uh quick last slide to summarize uh the state of affairs that we are here for uh and we are uh promoting. So, as you've seen, what Panther Protocol is is doing is researching uh and developing these kind of tools, uh, an on-chain compliance solution, really we call it smart compliance where zero knowledge can be used, uh, and we are hoping that some licensed providers uh will be able to use them. Um so yes, so the main question here is on one hand, we see that there are more stricter approach and scrutiny that are happening to privacy protocols, and on the other hand, we feel like the technology has emerged and um we can address uh address these issues uh so that it can be considered by regulators.
I mean, it's no different than the the way we have seen in the history how economies have scaled and technology has advanced and regulation has changed. I mean, most of you might know that Uber, when they launched in San Francisco, they were banned from operating because the taxi regulations in the city of San Francisco was different, not what Uber compliant. When Uber launched, they were called Uber Taxi. When they realized this, they changed their name from Uber Taxi to Uber and kind of became more like a software provider to match a driver with the riders. So, you know, that's the hope.
We don't know whether it's myth or reality, but there are some open questions to be addressed here. Thank you so much.
Related talks
- Why Privacy Matters | Ameen Soleimani | ETHDam 2023
- EBC22 | Trusted Identities with Private Blockchain Transactions
- Beyond the Blacklist: The compliant way to do private transactions
- ZK-ID in the Context of DeFi | European Blockchain Convention 9
- Privacy-First CBDCs
- DappCon 2023: The Future of Privacy and Proof of Innocence - Ekrem Bal
- Compliance and the next wave of privacy applications
- Privacy and Compliance: From Tornado Cash to Privacy Pools
- 135 - Crypto Wars 2.0 with Zooko