ETHMilan26 - Clear Signing: A Security Imperative for Hardware Wallets
ETH Milan · 5 Jul 2026 · 13:37
Jan Setina, firmware product lead at Trezor, explains why protecting keys is not enough if people sign data they cannot read. Using the Bybit theft as a starting point, the talk shows how raw call data, ABIs and the ERC-7730 metadata standard make transactions readable on a hardware wallet, and how transaction simulation adds a check on outcomes. It also covers missing metadata, upgradeable contracts and malicious approvals.
Speakers
Topics
From ETH Milan; community: ETH Milan.
Transcript
Hello everyone. Uh I'm Yan from Treasor. Uh I'm in Treasor and the product team. I'm responsible for the firmware and connect uh products that we have there. And today I want to talk about the clear signing and transaction simulations and how it is important and how does it work. But let me first start with the thing that I think majority of you remembers uh from last last year. There was uh a by bit in February where almost 1.5 billions uh dollars were stolen in in just one transaction.
and bybit one of the biggest uh exchanges all uh on on on the world. They had all of the security measurements that one can potentially have. They had different hardware wallet from different vendors. They had uh multisc processes set up. The the professionals that that are that were signing the transaction were were trained. So how it like how it happened? Uh it happened because of one simple reason and that is that they signed something they didn't understand.
It wasn't failure of technology. Everything worked as as expected but it was a failure of understanding. And the BBIT is not the edge case. uh it's of course one of the I think it it is the biggest thing that happened in in this field last year but this is how DeFi currently works and usually people uh can like sign this almost every day.
Just another example, almost half of the billion dollars were stolen in 2024 just because of u unclear instructions on on the signers. But you can see it everywhere. If you are doing some swaps on DEX, you don't actually know if you're approving a swap or if you're approving some uh drainer contract. The same with the token approvals where you don't know if you're approving uh 10 USDC or or a million from it to NFT approvals, bridge calls, account obstruction everywhere we are uh we we are seeing uh that people are blind signing.
So why harbor wallets cannot catch those things and why it cannot display um like the things that people can understand. Uh I just want to recapitulate on what harbor wallet is and why why are they there? Uh why why we have them here. So hardware was our singlepurpose device that uh that was created by Treasor uh in 2013 and they had one job. They generate private keys and store them offline uh without anyone from the from the internet or without any contract or or malware can access the private keys.
treasure or any hardware wallet should have a trusted display and it works as what you see on the on the display itself is what you actually signed. So there is no way how the hardware wallet can sign something different than it is displayed on the uh on the display. And last thing why it's really important is that like no one uh that that it needs a physical confirmation of of a human to to do any action. So neither some malware or in in current world AI agent can approve the
transaction uh for you. you are the point of uh like you are still in the loop and this is important. So let's take a look how the transactions looks like uh on the on the hardware wallet now and they might look like this. What you see uh is um some arbitrary data in a hex format uh that is perfectly fine for the for the EVM but they're not really fine for the for the user because you users cannot know uh
what this transaction will do uh what they are actually approving like no amount no recipient nothing and to be honest like we are now forced to to use this because there is no uh any other way. So the problem is that like you cannot do an informed or you cannot make an informed decision from the screen. So uh even if you have a hardware robot and it's it's still good because your private key cannot be stolen, you are still blind uh if you're signing transactions like this.
Let's take a look um how does the call data looks like. I hope you see that. So this is a example of how how such transaction of uh swap on unis swap free from 5 USDC to 5 USDT look might look like. Uh the data are in the in the hex. So let's take a look on them. Um first four bytes tells you uh what functions will be will be called. Then there are other info like token in token out fee recipient of the swap uh some deadline ammo uh
amount in and uh amount out. So the data are already there in the in the hex uh format but users uh don't usually know how how how to read hex formats. It's it's meant for the solidity um language and it it means for for the EVM. So how such hex uh how such a hex call data uh can be translated to human uh readable format so humans know how to uh that humans know what to what to
actually confirms. There are several layers. Uh the first one is ABI. It stands for the application binary interface and this is produced together with the contract uh in the solidity compiler and it helps you to decode the raw call data to something more understandable. So um if you're if you put your contract into so easy compiler it will give you this AI and then you can take that then you can see that from the raw hex data that don't have any any value any sense you are starting to see something so uh as I said from the first four bytes you
see the functions and then um then you can see that token in has this uh contract token out has this contract address and amount in etc. But the problem is that even like this is this is much better than than the rockolita uh you still don't know what you are actually approving because users don't usually know uh how how many decimals such contract addresses. So it's really uh uh it doesn't give you any advantage because you are still approving 5 millions units of this contractor which is not really great. So that's where the
RC 7730 comes in. And what the 7730 do is actually it it sits on top of the ABI and uh this is standard which creates uh how the meta metadata for every contract should look like. And it tells you or it tells the users how should the meta metadata decoded by AI should be showed to the user.
This is a example how such metadata may look like. And if the API decoded metadata are decoded with the sensor 300 or if the metadata uh are used then it can look like this that users clearly see what they are doing that it is swap you are swapping from USDC to USDT it's 5 USDC and you see clearly the recipient and the contract and it might and it soon will look like this on on harbor or I hope every harbor wallet.
However, clear signing it's not a single silver bullet. There are several problems. So as I said the 7730 creates a registry which contains the metadata for every contract and this metadata have to be created by human and they have to be uploaded to such registry and if if the registry doesn't contain any metadata about the about the contract then it will still fall back to clear to blind signing.
Another thing where this is not enough is that even if the metadata are created by someone but the contract is upgradable and gets upgraded you you see something different than you should on the hardware world. And last last thing, even if the clear signing and everything looks nice, you can still confirm some malicious contract that will for example train your wallet. So clear signing makes transaction readable, but it doesn't make them understandable. You don't know what will happen after you actually confirm and broadcast the transaction to the
network. And that's why we have transaction simulations. Transaction simulations uh what it does uh the provider or the wallet that supports transaction simulations take your transaction and runs it against the current state of chain in the sandbox. So you don't really So you see what will actually happen and it will tell you what will you actually approve uh what will you what will actually happen. So if you if you are signing swap then you will see that uh you are swapping 5 USDC to 5 USDT and you are not approving any
malicious contract and it catches for example the drainers or uh unexpected amount allowance and currently it is in the majority of of the wallets uh out there as well as in Treasure Speed which is our company app for treasure harbor wallet. Clear signing together with transaction simulations provide a very good security upgrade for the end users. The clear signing explains intent before signing and the transaction simulations tells you what will actually happen if you sign it. So together they they are very good very good they are they are making
the security for our users better. uh basic understanding of how EBM works remain essential. A clear signing standard wasn't done by treasure. It uh the foundations will were laid by ledger uh more than one year ago and then it was further refined with the with a working group under the Ethereum foundations. Uh you can see the registry on the GitHub and if you are the developer or builder please register your contact. uh it will make the world ecosystem safer. If you have any questions and ideas collaborations, please catch me out. Thank you very much.
Related talks
- What You Sign Is What You Get: Ending Blind Signing with ERC-8009
- Build on Trezor: Join Us in Scaling an Open-Source and Secure Future
- Building the Ethereum Universal Signer
- Building the PQ1: The first verifiable post quantum hardware wallet
- Clear Sign All The Things
- Securing DeFi - A sneak peek in the world of Ledger Nano Ethereum plugins
- Nicolas BACCA - SECURING DECENTRALIZED EXCHANGES WITH HARDWARE WALLETS
- CryptoTerminal for Trusted Ethereum Transactions
- DevNTell - Cypherock
