Privacy-Preserving Primitives in Hardware Wallets

Privacy & Compliance Summit Buenos Aires 2025 · 19 Nov 2025 · 6:25

Simon Masson, cryptographer at ZKNOX, shows how to sign RAILGUN private transactions on a Ledger hardware wallet. The signature uses the BabyJubjub curve and a ZK-friendly hash, so Ledger's built-in algorithms cannot be used and ZKNOX implemented it as a custom Ledger app. Signing takes under three seconds. A generic curve implementation and FROST threshold signing are nearly done. Key derivation still needs Ledger's secure element support, and integration into the Ethereum Foundation's Kohaku wallet is planned.

Speakers

Topics

From Privacy & Compliance Summit Buenos Aires 2025, hosted by Stable Summit.

Transcript

Hi everyone, we are I'm Simo from Zenox and I'm going to present something related to hardware wallet integration for pres privacy preserving protocols. Uh so it's a work I've done with my colleague Renault from Zenox and we were collaborating with rail gun. Um so just to present our company briefly Nicola was one of the co-founder of Ledger. So in uh the PE for the people who know hardware wallets they probably know Nicola and Rena and I are more in the cryptography side. So implementing uh some privacy preserving protocols and also other stuff related to postquantum

cryptography for example. Uh so we try to implement things on the hardware wallet but also on the on the chain. for writing smart contracts and we try to have an overview of all the cryptography related uh to the blockchain. So if you're interested in our work, we everything is open source. So you can go to our GitHub to check. So now I'm going to explain what we implemented in the hardware wallet. So just to give a brief overview of what is needed in the privacy pres preserving protocols. For example, in Reagan when Alice want to sp to send some money to Bob, she needs to create a newifier and

then create a ZK proof related to some commitment in a Merkel tree. a lot of things that I won't detail here but at the end there is one proof that is computed and one signature that is also computed outside of the ZK proof and this signature needs to use the secret key of the account of Alice and this is what we want to compute on the ledger so that we don't lose a found if someone steals the private key so we target this signature generation on the ledger on the hardware wallet So as I said you need to use a secret key and if you use today rail gun you you are not able to use uh the hardware

wallet because you need to use the software to compute this signature. So if you want to implement this on a hardware wallet you have basically three options between ledger and other hardware wallets that are available. But the thing is that this signature is not a common signature as in SRM or Bitcoin. You need to use a custo a custom elliptic curve that is designed so that the the zik proof is efficiently computed and the hash function is also chosen so that this zik proof is efficient. So if you want to implement this in a if you want to use a ledger to to compute this signature, you won't be able to use the the algorithm that they

provide, but you rather need to implement this uh this signature. So what we did is that we decided to use the ledger for now because it has an open source option to write your own application which was a bit easier than other hardware wallets. And we implemented this uh signature computation on the ledger using um a flex like this or any ledger wallet. So I'm not able to show directly on my laptop but it's a very ugly um cryptographer design. So I will rather show what you would see on the on the

ledger. So you just when you want to to sign your transaction on ray gun you would see like just a display as a normal uh review transaction then you would see the hash of the transaction that you want to sign. So everything related to the commitment of the of the rail gun transaction. Then you can check from the from the wallet the hot wallet and the transaction hash displayed on the ledger. From that you would sign the transaction as a common Ethereum transaction and the signing process works and then you can use the hot wallet to process a transaction.

So if you want a um an integration, you can ask Zion that is here. He has a very good uh UX that lets you use the hardware wallet to sign a transaction. And um it's going to be soon integrated into Kohaku wallet, which is a project by the SRM foundation trying to push pres privacy preserving protocols into wallets. So just to conclude and to summarize what we did, we provide a hardware implementation of this uh signature computation on the ledger.

Um so we have an implementation of this specific elliptic curve baby job and also uh a generic implementation so that you can switch to other curves that are also used in other um other blockchain or other protocols. Uh we are almost done for implementing the frost signature scheme which is um a way to have like multi- signature using the same back end and uh to be able to use for example a hot wallet and a hardware wallet to sign one transaction.

We still have a bit of work to get optimized scalification but it's already quite fast actually to sign with a ledger. If you want to check, I can show you. But it's only uh less than 3 seconds, I think, for signing a transaction. We don't have the derivation of the secret key uh fully implemented because we need the the access to the secure element, which we can't do now, but Ledger have to do this uh beep 32 derivation to let us make it work. And of course we need to integrate this into Kohaku wallet and uh this will be made public soon I think. And yeah that's it. Thank you for your attention.

Related talks