Building the Ethereum Universal Signer
Devcon·Mon, Nov 16, 2026, 12:00 AM
Transcript
[music]
So, thanks everybody for being here. Let's get started. Today I will be talking about building the Etherium universal signer and let you know a little bit more what this is. So first, why are we doing this now? It's a good question.
There have been a few incidents in the hardware wallet space that you might have noticed. Coldcard we don't really know how they are generated the entropy. I mean nobody cared to check. Ledger has a supply chain problem with an implant that was very smartly designed to store to steal money. And Keystone lost their genuineness key among other incidents.
And the common thing about all those problems is that they took some time to be detected and they are hard to check. So well, the good news is that AI is changing everything.
[snorts]
Because agents can write firmware, can almost do a PCB today. They can design cases, they can flash, they can test, they can do a lot of stuff. And actually they are much better at designing code that at designing pictures now because well, you can't really tell that the code is slop nowadays and the pictures are definitely very very much slop. So you can build your own hardware wallet, it's a hobby and everybody can be your own hardware wallet vendor. So yeah, and it is even proven by statistic now because between 2014 we had Trezor which was DIY from the beginning and I have seen a few people building Trezors on ESP32 on the open hardware stage.
So this was pretty cool. Sorry. Huh? That's well. No.
Back. Oh, yeah. Okay. In 2018 we had the Firefly hardware wallet so only one another and in 2026 then we have a lot of open DIY hardware wallet happening with the widget which has been very successful on the open hardware stage as well. Ledger wallet PQ1 presentation coming next.
One key has been doing a DIY and NVK has been forking the Trezor code for their own wallet. And yeah, man, even generally people nowadays are doing MCU kits that are designed for AI. So, they tell you you can just bypass your firmware. So, it is definitely the year of do-it-yourself firmware. Uh now, speaking a bit about the universal signers.
So, first we are going to look at the component of a hardware wallet and discuss this a little bit more later in the next slides. What do you have in a hardware wallet? You have seed management because you need to handle a seed. You have some crypto because you need to sign stuff. Potentially, you have some genuineness if you want to prove that your device is legit.
You are going to manage applications in your hardware wallet. You have, of course, the UX if you have a screen. And then transport to know how data is exchanged in the hardware wallet. Each component, if you see the hardware wallet like this, each component can be specified and coded by an agent. And here I am talking about the Ethereum signing, which we'll do more specifically everything which is related to decoding Ethereum transaction and knowing how to sign those Ethereum transactions.
So, the way it is designed is very opinionated. It's written in Rust because you get more guarantees at compile time. So, it's the perfect language for agents. It's air-gap ready. It's using ERC 4527 QR uh codes and the same logic, the same CBOR for exchanges over other transports.
It's mini It's minimalistic. So, you have many crates and you can just pick the crate that you want when you are building your own device. And very important as well, it is designed with crops in mind. Meaning that if there is a specification that requires a bit more external data, the idea is to start with a minimalistic one. So, here I am pushing something I nickname verifiable signing, which is just displaying a hash of your application before being able to do clear signing without taking data from the outside and without having a root of trust.
Uh, I've been speaking for a while, so if you have attention problems, I mean, who hasn't, you can just you can just scan this check the code and ask questions a bit later. But then, well, the architecture, how does that work exactly? At the top, there are different implementations that I will be speaking about on the next slide. They are using a common crate which will a little bit orchestrate everything. Then you have some decoding, you have some signing, you have a crate that will manage the instructions you have to display.
And in the end, the implementation will take those crates and will do its own things, so will decide how to display stuff, will decide what the UX looks like, and everything is built using a log because we have good libraries today in Rust, and the idea here is to give a way for hardware signers to use those libraries with a minimal overhead. So, about those implementations, to show you that the same crate can be used for very different things, there is one running on Passport Prime, which is a device made by Foundation. So, it's running QL as which is the fork of Zeus using a UI on a color screen based on Slint. It has a camera, it has USB, BLE. Another implementation is running on Ostros, which is a new device made by Crossbar running Zeus with an e-ink screen, USB HID, and BLE.
The DEF CON 34 badge, which is a board chip a little bit more powerful. Board chip is also using Zeus using a specific chip, an open risk five that I am I am going to talk about it very quickly after. Text UI, and finally a board which is just the chip by itself with no UI at all. One common point about those implementations is that a lot of them are using Zeus. Why?
Zeus is a new operating system that was designed by Bunny, who is a famous hardware hacker who also designed a chip, by the way. Uh, so it's a microkernel, which is targeting RISC-V uh, chips using with an MMU. It's based on an open VESC VEX RISC-V implementation, and the RTL is available. Meaning that it is an open source it is running on an open source chip, which is uh, there is a there was a presentation about that at 10:00 a.m.
this morning, if you want to check it again. So, everything is verifiable from code to chip. And the way the operating system is done is that it will it will implement first memory management so mutable shared in hardware. Basically, pages will be exchanged with the MMU when another process need to access it. So, it's really meant uh, to be written in Rust and to be running Rust.
Uh, let's see an example on how agents can use can work uh, by doing something. So, just adding a UI to Zos. What are you going to do if you want to target an ink screen? First, you need to talk to the UI panel so that just well, everything is the hardware. But, if you have been designing stuff on ink, you know that ghosting is very annoying.
So, we call that playing with waveforms. Uh, you can decide to either reflash the whole screen, reflash a part of the screen. And of course, you want to hide all those complexity from the design of the widgets. Uh, users just have to put to design the UI. They don't want to care about waveforms.
So, you can abstract that. You can abstract that in a simulator as well, so that you can see it on your computer when when you are designing stuff. Finally, you will be designing the widgets, and then you will be integrating all that into your application. All of those blocks have been coded by an agent, and can be verified. So, you can you can see what it you can see how it looks on the simulator, then you run it on the hardware.
And well, you can believe me or not, but you can check it, which is better. There is really not a lot of overhead to get things running on hardware. I mean, a little bit of optimizations, but agents are really powerful for that kind of things. So, what's coming next for the universal signer? Uh, I want to support portable clear signing, so with ERC 7730, once we get a way to get common descriptors for everybody, we are discussing this.
The standard is evolving. So, and more implementation, of course, of the universal signer because today it's used in a few implementations, but the most common part is that I have been designing them, so I would really like to have more people playing with that. And the idea, I won't say to wipe code, but you can lean code. No, so you can well, you can play with nice uh gadgets and see how it works for you. So, that's not the end of the presentation.
Now, I am going to talk about design trade-offs that you have when you are designing your own hardware wallet. So, are you going to be do it your Are you going the do it yourself way or you Are you going to ship a device? It's a good decision to make for a vendor because first, when you are doing do it yourself, you are not going to earn a lot of money. You are pointing to a bit of material, and then you have to find the business models that can work with that. So, please be creative.
I have no ideas on that, so I will let you create it and run it. You can ship a device. Hopefully, it's profitable, otherwise you are doing something wrong. There is some trust added on that, of course, because you are trusting the vendor, but the other thing is that the vendor can add a way for you to verify that the device is legitimate. You can't do that with a DIY device for obvious reasons because, for example, if you ship if you ship a component with a secret, anybody could use it, and so you would be shipping your own way to design fake devices, and you don't want that to happen.
So, now the next question, when you have a device that you receive in your hands and you want to verify what's running on the device. You have a lot of people that will tell you it's open source, so you can verify. Well, not really. First, you might want to dump the device memory, but if you want to dump it for an application, then you have a chicken and egg problem because you don't really know if the application is lying to you or not. So, you have to be creative about the way you do that.
And yeah, pick pick your one, for example, has some good ideas. I think they will be speaking about them probably. Uh but you have always to remember to be careful if you use security features of a chip that is non-hardened. For example, if your assumption is that the boot code is never going to change or Trezor has been doing that and it can be disappointing a little bit later. Um another question when you verify what's running on the device is to know if you want to do it once, so when you receive it or if you want to do it all the time.
So, if you want to protect again what we call an evil maid uh that will get your device changing change it and give it back to you. That that's very different, I mean, design-wise. Um if you have typically you can use cheap debug features such as JTAG or but then are they usable? Are they accessible to the user? If it's a commercial product, it's hard to do.
And then you don't want to leave them on because um you don't have security if you do that. And if you think about ROM chips, ROM do not exist really nowadays. I mean, people are just using flash with special access conditions and of course it's different because then uh creative hackers manage to find exploits usually. Um so, you can have multiple application now running on a hardware wallet. You have multiple ways to implement that.
You can do an open-source firmware which doesn't really support multiple application, so then you just flash the firmware for multiple application. You can use a multi-application OS that will support application loaded at run time. Then you have to think about access because all applications might be able to access the same keys. You don't want that to happen, so you can protect access conditions per applications. Uh and on those you don't really have multiple applications, but you can have an application acting as a loader for the other ones.
Uh so, there are way to there are ways to cheat, I would say. Um another question you can ask yourself is do you want your product to be stateful or stateless? If you meaning is it going to keep the seed inside the device? If you want it to be stateful, then of course it must be hardened against physical theft. Um the way people will do this is by using different chips.
So, you will have one less secret chip holding the code and one more secret chip uh accessing the data as in you would pair those chips together to prevent people from just accessing the other chips. There is a cool trick also done by Trezor T with an SD card which is a pass phrase so it would generate a pass phrase randomly and use it on the SD card so you can just remove it. You have some open security chip available which are interesting if you want to go through those design and still be open. There is the Tropic Square today Tropic 01 and direct by Crossbar. Then if you want to be stateless, you don't need to protect the storage but you still need to harden the executed code pass because you don't want your application to be changed on your device.
You will get the seed from an external resource. It could be an SD card. It could be just scanning a paper, scanning QR with a seed. This is popular in the Bitcoin space with seed signer which started the seed QR standard. But of course you still have to trust the ways the devices running your code so there can be some well, there can be some bad things going there.
So genuine check which is something that you are going to use to know if your device is legitimate or not. One thing which is keep good to keep in mind is that it's not only done for security reasons. You could use it as something commercial. You could say for example, I'm running this service and if I am connecting a genuine device to it, I am going to have extra benefits for the user. So you can for example sponsor transactions.
You could have better EP wise. That's an idea to do and I don't many people are doing this at the moment. Of course for to do that you need a strongly protected secret in device and then you have privacy questions because if you use one key per device, this is a this is a global UID so people could be able to recognize your device and then to link your keys or your activities back to you. So that's not very good but that's quite secure. If you use a shared key, then it's more private but it's more dangerous because if someone managed to find the the shared keys then you can compromise a batch of devices depending on the size of the batch.
It can be bad. And finally, one thing which is good to understand for the genuine check is the exact scope of it. Because when you do a genuine check, usually you verify that one chip knows a secret, but it might not be your expectation. You might think that the genuine check is checking the whole status of the device, which is usually not the case. I mean, there are ways to implement this.
We'll be talking about just in the next slide, I think. Yes, a little bit more. So, if we talk about implants now, because implants are really the thing that are scary for everybody. So, in the case of Ledger, the secure element doing the genuine check was untouched. So, the genuine check was still passing with an implant.
The implant which was just looking at the bus between the secure element and the screen and reading everything from the screen. So, you can think about it like an OCR with a SIM card sending data read on the read on the screen to the outside world. And of course, the screen is dangerous because it's displaying onboarding data. So, it's displaying your seed. And once you have the seed, you can steal the money.
So, you can think of implants like mod chips. If you like consoles, so they exploit complexity. Every time you have complexity in a device, people will think about what happens if this part fail, what happens if I can replace it, what happens if I can fool it, if I can fool another another part of the device to think it's talking to a chip but it's not one. So, you have several strategies to try to protect against implants. First, you can make them easy to detect by the user.
So, for that you need to have a device which is fully observable. You want it to be easy to tear down and reassemble. A transparent case is not enough because there are many ways to create the implant. You can make it passively harder to add an implant. Basically, by having a strong hard to open case.
You can use ultrasonic welding, for example. Potting, so but this is going to hurt observability, so it's going to well, again, another trade-off. You can make it actively hard to put an implant by using a mesh which will be some kind of wires uh around your PCBs, plus a battery that will erase a secret if the mesh is this is uh is cut, which is also uh hard to do and not super reliable. Or you could use some kind of super new trick, I mean, to detect the implant by using the own properties of the implant against it. Uh Mark Karpelès has been doing that for the Ledger implant, trying to detect it on a live device without opening it uh by trying to make the antenna resonate uh basically.
Uh so, yeah, that's good, but that's a bit complicated for an end user. Um so, in my opinion, the right way to deal with implants is to make them harmless. So, it might be a bit uh odd to say that. Uh so, how do we do that actually? Uh I think we win if the attacker needs both an implant and malware to be able to do something bad.
Um so, first we want simple cheap solutions. We want to reduce complexity. We want to make things as simple as we can. And then, the remaining attack vector for a regular hardware wallet is the screen because the screen is uh something dangerous when we are generating the mnemonic or when we are importing a mnemonic or entering a passphrase. Um so, the way to close that is quite easy when you think about it without changing the hardware.
First, you need genuineness because you are going to be uh you are going to need to know that you are talking to the real secure element. And instead of displaying your 24 words on device, you will just display 12 you will just display 12 words on the screen. And and 12 words sent uh unencrypted by a key that is validated by the secure element to the host. So, you have an unencrypted channel between the host and the secure element checking uh that what is sent comes really from the secure element. The secure element is still generating the 24 words.
You have 12 on screen, 12 on the host. And then, the implant cannot see the full seed um because it would need malware uh to be able to see the other 12 words. And if you just have 12 words, I would say uh it's good. Um so, talking about my ideal implementations, how would I do it today if I had to design a device? Uh I don't have to, but just my opinion.
If I want to do it as do-it-yourself, so I contact Genuine Nano, I would source the parts from different manufacturers for both practical, security, and well, economic reasons. And I think people should contribute to open designs on those DIY devices. Typically, you want to be able to switch parts. You want to be able to use different MCU. You want to be able to use different screens.
You want to make it easy for people to just mix stuff, order from different suppliers, and avoid being tracked. Then if you are making a pre-built device, genuineness is still very important, but it should be easy to inspect. You want to make it implant proof so you can use the tricks I have been talking about before. And yeah, so that's it. If you want to know a little bit more, you can I have link to this slide this talk and a bit of Those are talks I gave at Def Con on well, still thinking about hardware wallets and a little bit more on the Bel chip, which is the chip that I have been using a lot for testing Zeus.
And Coz Bar, so maker of the maker of Bel chip is running a hackathon. You can register and you can have some fun with this chip as well as much as I had. Thank you.
Thank you, Nicolas, for such a detailed talk on an important topic these days. No worries. And let's jump to questions. We We just have quite just have few of them now, but remember that you can keep asking questions as we speak. So do not lose your opportunity.
And the first question is, when is clear signing live on these devices?
When is always an interesting question. So I will give a developer response. When it is done.
[sighs] [laughter]
Okay. That will do. The next one is pretty comic one. Is Veggie a serious project? Do you think about branding can be better?
It's a very very very serious project and I think the branding is the branding is genuine because you want to make things fun. You want to make self-custody fun and it's the first time this is tried. So, I think the branding is genuine. And honestly, the design is clean. It's using a secure element.
So, it's a yeah, I would definitely recommend to build one.
All right. Moving up next, what commercial or DIY device would you use today?
Me? Ledger.
[laughter]
I was expecting that. I was expecting that. Okay, let's move on. Who should use which wallet to be secure now?
It's really it's really a personal question. If you want to check everything, then I would recommend using a do-it-yourself wallet with a secure chip so that you can just play with it. You can open it. You can build one yourself if you want. So, but it's it's really personal.
I think the first question to ask is to understand to look at this talk. Look, I mean, understand this talk well and look at your personal risk and then make an educated decision.
Okay. Up next, we have a pretty uploaded question. Have you thought about making your hardware wallet post-quantum?
Yes, of course. And I would say it's a non-question today because every hardware wallet pretty much can be post-quantum because the algorithms are not very complex to to write. So, either I mean, maybe for firmware updates, I mean, that's the only thing where you need to be post-quantum pre-release. But if you want to be post-quantum post-release, that's basically a firmware update away for all of them.
Okay. I think the next question is kind of related, so we will jump to the other one. Universal signer in AI world. I guess the author is doubtful about having one universal signer when AI can break stuff.
Uh, what?
I'm not sure that was a question, so
[laughter]
Fair enough.
Yeah, I mean, and to be maybe to answer a little bit more seriously, yeah, I mean, it's just a signer. In the end it's designed with AI. The best thing today to beat AI is another AI, so yeah. I think that's definitely the way you want to design critical software today. You want to do that you want to do it with AI, you want to do it with formal proofs.
Formal AI is the best at generating formal proofs, so yeah, why not?
Okay.
[music]
Automatic transcript — names and jargon may be misspelled.