Road to Noir 1.0

ETHCC 7 · 11 Jul 2024 · 19:03

Savio Sou, product manager for Noir, gives a primer on zero-knowledge proofs using a Coca-Cola recipe analogy, then traces the open-source Noir language from its 2020 start with Aztec Labs and the Ethereum Foundation to its alpha and beta releases. He outlines the Noir 1.0 goals of performance, production readiness and public good, and a roadmap that runs from a feature-complete candidate in Q3 to a full release in Q2 2025. Q&A compares Noir with Circom and covers its proving backends.

Speakers

Topics

From ETHCC 7, hosted by Ethereum France.

Transcript

Noir today with you guys. But before we dive into it, let's do a quick show of hands just for me to like learn a bit more about you guys. If you have heard about serial knowledge proofs before, the term itself, the concept itself, could you do a raise of hand just to see? That's very nice. If you have heard about or know the concept of serial knowledge DSLs or basically developer tooling, Circom, Halo 2, Socrates, could you also raise your hand? Oh, that's impressive. How about hearing about Noir specifically? Can we also do a show of hands?

Oh, that's nice, nice, nice. Yeah, cool. This should be a perfect talk then for you guys, both the ones that already know about Noir and hopefully the ones that don't, to understand a bit more what we have been building and what we are building towards. A brief rundown of today, um, since this is the morning talk on the CK day of ECC, we can go through a brief 101 of how zero knowledge proofs work, then a bit on Noir's journey from how it started up to today. And yeah, a brief overview of what's coming next in 1.0.

Starting with serial knowledge proofs. So when we think about general computing or basically traditional computing, we're always simply doing just the compute. So for example, if I key in one plus one, it comes out two from the computer itself. When we think about serial knowledge proofs, then it's not just about computing, but also proving your computation. So that's the proof part. And when we think about the serial knowledge part, it's simply proving without revealing all the inputs to your program. And the textbook definition of serial knowledge proofs then is simply to prove something without revealing everything that goes into your proof.

That sounds super boring. Um, and who cares, you might ask. Well, this is actually a picture that I took a few days ago of a zero knowledge proof itself. Hold on to that thought on why Coca-Cola is a zero knowledge proof. But we can first start with a graphical implement uh the graphical view of a serial knowledge proof workflow, which always consists of two parties. One, the prover, second, the ferrifier. What the prover does, it fits in inputs to its program, it computes the program, which then he proves the program itself, proves the computation, generates a zero knowledge proof file that is passed to the ferrifier himself or herself to verify the proof. And basically the program then tells you if the proof is valid or the proof is invalid.

You might then ask, then how does Coca-Cola fit into this whole story, this whole equation? Well, when we come back to this overview of the zero knowledge proof pipeline, the bottle of Coke is actually the proof itself. But what is it proving? It's proving the recipe of the best drink in this world. And who's the prover? It's Coca-Cola the company himself. Um, it's it has the recipe, it is generating a zero knowledge proof of it owning the recipe itself without revealing the recipe to you, the verifier, which you can then tell after drinking if it's the best drink in the world or not. And when I'm talking about like serial knowledge proof development and like the pipeline to a lot of different developers, to people, they always say like serial knowledge proof is hard.

Developing serial knowledge proof is very difficult to maneuver, but when you actually think about it, fundamentally, what it matters is the separation of prover and verifier. As long as you get the parties right, then it's just a matter of turning what you have been used to in terms of computation, like doing a cargo run or simply executing your program and splitting it into one being run by the prover side and one being run by the verifier side. It's just turning one button into two button and you get zero knowledge proofs. And what about noir?

What does noir has anything to do with this? Noir is the open source language for constructing zero knowledge proofs. And when we come back to this beautiful pipeline, once again, noir is basically the engine that could be powering this whole pipeline. If your developer develops your program and business logic in noir, it offers automatically the capability to generate the prover software as well as the verifier software that you can then deploy in different environments. Could be on servers, could be on your mobile phones, could be on smart contracts as well.

Then let's go through a bit on Noir's history leading up to today just to get a bit of context. Noir started back all the way back in 2020 as an exploration co-fund co-funded by not just Aztec Labs ourselves, but also with Ethereum Foundation. You can see this beautiful first commits in the repo back in the day in August. And it entered into the alpha stage in 2022. Shout out to whoever that was in DEF CON Vogata in the cloud here. But that was the first Noir hackathon that we hosted.

And yeah, it was the public debut for Noir in the public scene. Then enters 2023, which we reached Noir beta. And Noir then both the language itself as well as more importantly, its JavaScript tooling around it, enable the capability for developers to build serial knowledge applications that are web browser ready. Shout out to those in DevConnect, DEF CON, Istanbul. As if you were hacking with Noir back then, that was very likely the first beta candidate that we had.

What about today? Leading up to today, where are we with Noir, the language with Noir, the ecosystem? First of all, credits to all the contributors in the ecosystem. We have seen a lot of new language syntaxes, for example, traits, bounded facts, metaprogramming. And for all CK nerds out there, you might find the folding attribute very interesting. But thanks to the contributors, we have accumulated a lot of new language syntaxes over the years, but not just syntaxes, also libraries like Beg UN, for example, hash maps, for example, a few more hashing, Poseidon 2 different libraries that is being added to the set itself. And also a lot of toolings that have been coming up, spanning all the way from IDE plugins to mutator testers, as well as full fledged debuggers in IDEs that have been contributed by the community.

And what are we building all this for? It's for the developers that are making use of noir. Noir has been seen as one of the fastest growing languages, not just in the CK space, but more importantly, in the entirety of Web3 space at all. We have now, and these developers are now building like a hundred plus projects on GitHub with more than 10 plus companies founded just based on the language itself and making applications off of it. It's exciting times. Oh, fun fact.

I was looking through my old slides, and this was actually the exact slide that I shared in Taipei last year when I was trying to do a project overview of the Noah scene back then. I attempted to do another jab today, and it looks pretty much like this. No longer can we fit everything in one slide, definitely. We probably need 10 plus or even like 20 plus slides just to do that. So then what comes to Noir 1.0 then? What's next for the language itself? There's one guiding principle.

The main overarching theme of Noir 1.0 is for the people, by the people. And what do I mean by that? Is we need three things. First of all, performance to make sure what we can deliver to users' hands are usable and with good UX. Secondly, production ready. It's not just about good UX, but more importantly, also about safety, stability. And third and foremost, public good. Noir has always been meant to be a public good, not just as an Aztec only thing that we are building in our labs. Starting with performance.

Noir 1.0's aim is definitely going towards supreme speed as well as cost profile when it's come when it comes into play. We have been doing a lot of internal benchmarks that could then inform our upgrades as well as um optimizations, um, tasks that we have been laying out. Um, we have been deducing libraries that could be useful. Um, we are also having a list of many optimizations and performance upgrades that we could be fitting in into the 1.0 milestone itself. Then, oh, sidesetting a little.

Why do we need and value performance so much? It's because that's the critical Lego block towards trustless privacy with zero knowledge proofs. I won't dive into too much technical details here. If you're interested, um, search for Aztec's client-side proof generation blog post. My colleague Lisa wrote a very great piece going into why it's critical. Then moving back on to production. Um, we have been working with a lot of projects that are building with the language itself, and they are sooner or later entering the launching phase, which are bringing things into people's hands. So with Noir 1.0, we are definitely doubling down on documentation, on tests, on code reviews, as well as with collaborations with a lot of auditors out there to make sure we aren't just building something for the sake of fun.

It's important to be sure that what we are delivering into users' hands are both safe and stable to use, and this is what makes that happen. Moving least, um, last but not least, public good side of the Noir itself. Noir has always been open source from day one. It is meant to be credibly neutral as well as chain agnostic. I would also love to take this chance to um credit the 90 plus contributors to the Noah Lang Repo and to this day. It wouldn't have been, it wouldn't have happened without all these great people in the community working together on the language itself.

And it's not just the language itself as well. There are a lot of great grassroots libraries, toolings that is coming up from the community. There are great teams working on the Plonky 2 backend, great teams working on compiler scripts, as well as CKKit the library, for example, that hosts a lot of great primitives in Noir. And to this point, leading up to this exact moment, you might be feeling, oh, this is super exciting. Goosebumps. I can hear maybe feet storming as well. And naturally, as Web3 crowd, we always ask like when Noir 1.0 then.

I'm happy to bring to you at ECC the Noir 1.0 roadmap. We'll break this down all the way from today in Q3 towards Q2 next year. Starting with staging candidates, we'll have two release candidates when it comes to Noah 1.0 before its full release. The first one is the staging candidate, which it will be feature stable as well as feature complete by the end of Q3 this year. Leading up to the audit candidate that's coming at the end of the year, which throughout our further optimizations, tests, as well as internal code reviews, it will be fully documented and tested and being ready for the audits that is coming in. Q1 next year, spanning across the quarter to improve as well as ensure the security guarantees that we are providing with Noah itself, then leads to the full release of Noah 1.0 in Q2 2025.

And here we are. If you really look at the roadmap, we are very close to the first stage in candidates, which in no time leads to the full release itself. And that means now is the perfect time to start building with Noir today. If you go onto Noah, NoahHivenlang.org, you can get started today, build with us, and let's launch towards production. I'm Savio, the product manager of Noir, aka the bug report and feature requests guy for Noir. So feel free to ping me for that. But in the meantime, thank you all for coming in and looking forward to building with you.

Okay, we have time for some questions, so please raise your hand and I will bring you the mic. Okay, I have a simple question. So why should I use this language instead of Circum, for instance? That's a very good question. A lot of people ask this as well. I would say there are two things that we are better than Circum specifically. First of all, it's definitely developer experience. So Circum, if people are familiar with it in the crowd, it's very circuitry, as in you are not necessarily coding as how you are coding in, for example, Python, in for example, Rust.

You are basically feeding in segnos that goes through different gates that then compose into your entire business logic that you want to work with. Gates as in like electrical engineering or electronic engineering, those kinds of gates. So it might not be the most intuitive or intuitive thing to pick up for sure. And that's at the same time, the most intuitive thing to maintain as well as upgrade in the future as well. When it comes to developer experience of the language itself. The second thing is then performance is for sure a thing, because we don't only work in a silo within the noir team itself on the language on the compiler, but at the same time, we work very closely closely with the backend team within STEC Labs as well as all the back-end teams out there that are building different proving backends that could power noir programs.

And that means we have a lot of tighter collaborations as well as optimizations that are going into place, not just on improving like general proving speeds or vervocation speeds, but also like all the new proving system features that could be exposed through the language as well. So if you count those two things in mind, then it's a no-brainer, I would say, to pick noir over others. Thank you. Okay, do we have more questions? So uh I understand that you don't have a default backend right now, so we have integrations with different ones.

Uh what kind of automatization are you using, or what kind of like possible proving systems can you uh like can you support as the backends? So right now um we definitely support not necessarily we support, so it might be a semantics thing, um, but to be fair, it's more about which proving systems are compatible with noir itself, because noir is as a high level language, it then works with different proofing backends behind the scene under the hood. It's more about which proving systems are able to comprehend as well as work with noir source code that is being compiled down to the um proving system opcodes. And on that note, the current available proving backends right now are first of all Burtonberg that is being researched and developed within Aztec Labs.

It's on Ultra Planck now, moving towards Ultra Honk, so folding soon. There are also two teams working on different flavors of Plonck E2 itself, which is working with Noir. And there's one more team that is working on Halo 2, and there are a few more outdated proving backends in Groff16, Marlin that with some upgrades could be made compatible again with Noir today. So yeah, that's the rough scene of proving backends. That's a very good question.

Theoretically, there's nothing stopping Noir and its intermediate representation to work with Stark. It's just that we haven't started any, at least I don't know of any explorations today just yet. More questions. So you mentioned that you want to have an audit. How do you audit the programming language?

Sorry, can you read it? What do you want from this audit? How do you audit the programming language? What do you want to audit the translator to some circuits? What kind of object I envisioning? I'm not sure I'm getting it. So transparent, you said? Or yeah, I mean, so you said you want to audit noir, and I'm just curious. It's a programming language, right? Yes. What uh what kind of outcomes of this audit they want to have? They want to prove that it's correctly translating things to something or something like that. That makes sense.

Um so just to briefly recap on the pipeline itself. So basically noir is what powers the entire thing here. So for example, if I'm coding like one plus one um and do that in noir, it's not just computing one plus one um um in the language and the tech stack itself, but it also comes with the capability to generate a proof that you actually prove that, for example, one plus one equals two, and it comes with the ability to generate the verifier software as well for you to deploy on, for example, maybe a opponent player, maybe on a smart contract that can verify that um you have generated a proof um about one plus one equals two, and it will check that if the proof is correct or not, and simply outputs a true or false. So it's basically the the it's a programming language, but at the same time the entire text stack that powers this entire zero knowledge proof um workflow if that makes sense.

Thank you, everyone. Can we give one more applause for Sabio?

Related talks