How RAILGUN Powers Private UX for DeFi
Privacy & Compliance Summit Buenos Aires 2025 · 19 Nov 2025 · 11:07
Alan S and Zy0n, contributors to the RAILGUN privacy project, trace how RAILGUN grew from the early mixer era into a feature-complete privacy system on Ethereum. They argue that usable privacy means not sacrificing utility: a public-key design keeps keys separate from the SNARK proof, which makes private multisig signing and hardware wallet support possible. A demo shows a multisig coordinated over Logos messaging with private signers and balances, and a hardware wallet signer built with ZKNOX approving a private transaction. They note a RAILGUN transaction cost about 180 dollars in 2021 and now a few cents.
Speakers
Topics
From Privacy & Compliance Summit Buenos Aires 2025, hosted by Stable Summit.
Transcript
Uh, I'm Allan. Uh, I'm a contributor to the Rail Gun Privacy Project. And, uh, I have my good friend here, Zion, who is also a contributor to the Rail Gun Privacy Project. Uh, and this will be a bit of a uh, Tweedled D and Tweedle Dumb bit of conversation. I being the dumb one. Um, and I guess, um, it's right here right now. >> Uh, yeah. Cool. Um, so we're going to talk a little bit about, uh, history of of of Real Gun to start out. We'll keep it brief. Uh, we'll keep it interesting. So, Robin got started uh probably in early 21 and uh the goal was to try to make a more featurelete privacy mechanism. Uh at the time, the only options to get privacy on chain was either to go to a centralized exchange um and risk that they shut down like uh
Mount Gox or FDX uh while your funds are in there um or to to use a mixer, right? And uh mixers weren't really feature complete and that really wasn't ideal. Even whenever uh Tornado Cash Nova came out and they allowed arbitrary deposit sizes and withdrawals, uh there were some security assumptions in there that were pretty undesirable. Um I think it was uh at the time they had architected it such that it bridged by omni brbridge to XDI. Uh and that's a pretty big security assumption. Bridge livveness uh and security is something that has to be appreciated. And so Railgum was like, hey, we're going to we're going to do this differently, right? Uh and there was going to be a couple of really important considerations uh to the architecture. Uh I I won't bore you with a lot of them, but um it's been a really
long- winded uh very interesting ride of gas optimizations trying to figure out uh what works, what doesn't work. Uh and it's really quite funny. Back before uh e what was it? Um what was it 1559? What was the the cool gas uh EIP that they did? >> Put me on 1591. >> What is it? 1559. >> Smart people in the back. 1591. >> I think it's 1591. Anyway, uh gas was really quite expensive back in the day for rail gun. Um in a 21, a rail gun transaction was something like 180 bucks. Uh and today, uh the gas is a lot more >> few cents now at the low gas cost.
>> Yeah. So if it's like 0.0, we get like maybe four four to five cents, which is really really sick. >> Um and so it's definitely been a long ride. Uh but we've been we've been after uh feature completeness, right? So anything that a public address, a private address would be able to do. And um the architecture has really gone after that pretty aggressively. Uh one of the big differences for Algon that uh doesn't really happen for right a lot of privacy protocols for EVM uh is that there is really proper key separation from the the snark proof. Uh I don't know if you want to talk a little bit about that.
>> So within rail gun we use a public key system to verify instead of providing the private key directly into the circuit. So it gives you an abstracted way to prove ownership over the underlying asset rather than actually giving off the key to the circuit and then proving it in a in a zero knowledge proof that you own it. So it gives you ownership over it full way through the the process of signing it. >> Uh yeah and so having that sort of separation also allows a little bit of flexibility on the signature side. Uh which makes it really particularly cool for uh things like hardware wallet support. Um I think have have ZK Knox people talked yet?
>> Not yet. Yeah, they're going to talk later about some really cool hardware wallet support stuff. So stick around for that. That'll be really sick. Uh but then uh it also allows for uh NPC. Uh I don't know Hoover's up there, but if you can play the first video, that'd be sick. Um and so uh yeah, Rail Gun has a really sick um multisig architecture. We're going to talk a little bit about that now. Take us away, dude. All right. So, here uh is the uh multi-IG application we've produced. Uh right now we're logging into our multi-IG account. Um this wallet that you log into it does not have any uh attachedness to it other than it is what owns the local private storage and how you control your keys. So, it's more
along the lines of just an authentication system to get into it. But uh once we get in, we're able to create and join sessions. Uh and you'll see that here in a minute. So each participant names their uh account and that's what's passed along through these creation sessions so that the participants participating and the coordinator knows who is joining. So right here this guy here is creating a session picking the threshold. uh you have up to 10 participants in this iteration, but it can be up to as many as desired. Um same with a threshold. It has to be at least uh
at least one. Um >> can't have a zero threshold. >> That'd be sick. Zero threshold. Everybody take my money. So right here the session name and the symmetric key are what allow you as a participant and a signer to communicate securely with the parties in this uh multi-party signature. >> And what are we using for the communication infrastructure there? >> Uh so that's Logos messaging. Um it's a private mixnet slash uh lib p2p uh solution for decentralized serverless communication between applications and that's what uh powers this entire process. So right now the coordinator is
waiting for the participants. He has received the uh coordinator's uh response. So once all the participants have joined the coordinator in this process assigns the roster out and the participant ids so that they can then generate their uh their share within this process. Um that is the natural uh sharable viewing key that all view only wallets of rail gun own. And that is what is the basis for the multi-IG and hardware wallet cores. So at the base of it on the wallet side they only need to see what balances you have and how to spend them.
They don't have the access to spend that. So they request it from the multi-seg app and uh once the signers approve of the message, it goes further on through the signing process and actually allows you to spend the tokens. >> Yeah. So this unlocks a lot of really important things that happens in the world of crypto. So who here's ever used a multisig? >> Sick. Oh yeah, I asked that yesterday. We didn't get a lot of hands, but it's really cool, right? Uh how comfortable are you that you are a signer on a multisig? Do you let people like know all the time that you're the signer on the multiig? Damn, Arin's a brave man.
Uh, this is a pretty not good thing, right? Especially if you're a signer on a lot of different multisigs, it can create like a really weird surface area for your security uh as an individual. So maybe not uh personal advice, I wouldn't tell many people, but u you know, suffice it to say, right, you can have uh what this really means is you can have private signers uh of a multisig and they can have a private balance of tokens, which is really really unique. Um, it's something that I think hasn't really been done um before in EVM land. If it has, come find me later and we'd love to look at it and compare notes. But um it's it's really really sick. But let's take a look at >> uh Yeah, exactly. Let's see the second one. So again, we have a lot of really
tricky stuff um in uh rail gun land. And what's really really cool, again, having that key separation from the Snark stuff allows us to also take and use hardware uh to produce signatures and then do the really cool ZK stuff in a more performant client like uh maybe your computer or something. >> Is that your water? >> No, it's not mine, but it's not open. So, you can have it. >> Excuse me for one second. So right now we're we're logging in and then we >> Yeah. So uh right here we're displaying the usage of the hardware wallet. So you have to connect it then uh calls out to the hardware wallet
assigns your public key or pulls the public key from the hardware wallet and then allows you to know what your rail gun account will be. And then you embed that into the the rail gun wallet itself. So the sharable key and the personal multi-ig key are how you interact with the rail gun wallet itself. So we already have a wallet loaded up. Um that'll Is this still It's still playing. >> Yeah. Good old ZK Knox signer. >> Yeah.
So here we're loading up the wallet. We're about to send a transaction. Oh, is this the right is this the right one? So, it's normal basic flow of using a rail gun wallet. just go in decide your transaction and then once you get to this stage it basically bundles everything into a message and passes it off to the multi-IG signer. So we see that here um all the data required in
the subtransactions. So every rail gun transaction can be a conglomerate of multiple rail gun transactions inside of it. So right here we're confirming it. It's approving the request. We could see it in the the side there. But in a moment here, we'll see the signature come back from the signer and then the transaction actually begin to prove. And there there it was. It flew by pretty fast, but uh she quick. >> Yeah, she's quick.
>> It's a really simple flow. >> Yeah. And um this is a pretty intentful architectural decision for Rail Gun very very long ago uh to have this really um be feature complete, right? And so this has kind of been that uh chase, >> the last mile. >> Yeah, exactly. Right. Um Multiscig has been three years of research. Hardware uh got unlocked by some cool folks at ZK Knox. They're going to talk about that stuff later. It' be really cool. Um and uh we're we're really super stoked. Um I think one of the big unlocks for for crypto privacy is to make it such that people don't have to uh sacrifice utility uh to use a privacy mechanism and that's really what we're after here
right so you can do multisig you can do hardware wallet security uh we're doing a bunch of really cool research on pretty seamless DeFi stuff too so uh we're going to continue that pursuit uh try to provide as much utility as possible ways to deploy capital that people want and um thanks for coming to my TED talk thank Thank you.
Related talks
- Privacy-Preserving Primitives in Hardware Wallets
- The Next Wave of Privacy Products | Alan Scott and John Meurer Jr. | RAILGUN | ETHDam 2023
- Parallel Systems, Parallel Freedoms
- 🟢 LIVE SPECIAL: Charles Hoskinson & Mert Call In On Today's Show
- Privacy on Ethereum Now: Key Challenges
- Getting Serious About Ethereum Privacy
- Keynote: Glass Houses and Tornados
- Why Institutional Custody Breaks on Shielded Chains
- Privacy is Existential
