Key takeaways
- Railgun is a smart contract system enabling private DeFi transactions by allowing users to deposit funds into a private balance and interact with protocols like Uniswap and Sushi Swap anonymously.
- Railgun is partnering with Ren Labs to enable users to privatize Bitcoin and use it within DeFi applications through wrapped rBTC.
- On-chain transactions are publicly visible through block explorers, allowing companies like Chainalysis and Nansen to track and sell financial data, which Railgun prevents through privacy controls.
- Privacy in financial transactions is positioned as a fundamental human right comparable to medical records and legal privilege, not exclusively for illicit activity.
- Institutional investors and sophisticated traders benefit from privacy to protect trading strategies and positions from public scrutiny and competitive tracking.
What Railgun does
Ashton Addison: Can you give us an overview of the Railgun project?▶ 00:43
Alan Scott: Put simply, Railgun is a smart contract system that lets you do DeFi privately. You put funds into a private balance held on the Railgun smart contract. Then you can use that balance just like any other wallet to interact with things like Uniswap, SushiSwap, yield farms and private staking.
Ashton: Are there limits on which assets can go into Railgun? Can you move Bitcoin or Ethereum in?▶ 01:09
Alan: We're working with Ren Labs so that renBTC can go directly into a private balance. That will be really exciting for people who want to privatize their Bitcoin and use it in DeFi. In terms of limitations, the sky's the limit. What matters for the anonymity set is building TVL and activity in the smart contract. We'll do that through the SDK we've developed. It's a developer kit that's easy to use, so integrations for DeFi builders should be quite easy.
I'd say 2022 is probably the year of PriFi, private DeFi.
Privacy on a public ledger
Ashton: Bitcoin and Ethereum transactions are transparent by default. How does Railgun preserve privacy, and what changes on a block explorer?▶ 02:41
Alan: A lot of people new to the space are surprised by how public crypto is. Ethereum is a public ledger, and the same goes for Bitcoin, Polygon, Binance Smart Chain and Solana. Block explorers distill all that information so people can track and verify transactions. It used to be that the pseudonymous nature of an address was enough to obscure who you were. As adoption has grown, it's becoming clear that heuristics alone can identify you, and for your financial data that isn't desirable, even at an individual level. Imagine swiping your card at Dunkin' Donuts and everyone there, and the corporation, had access to your financial data. You'd find that an egregious breach of your privacy. Large players like Chainalysis and Nansen apply AI and other techniques to the blockchain to collect, collate and then sell your financial data. Railgun is in stark opposition to that. It lets you decide who has access to your financial data, so you can send USDT or other stablecoins privately without doxxing yourself. On the block explorer, if I send you funds from within Railgun, you'd only see money come out of the smart contract. You wouldn't know who it came from or from what balance.
Ashton: Privacy tools often get criticized as only helping criminals. Is that fair, and who is Railgun for?▶ 06:22
Alan: The "privacy for bad actors" straw man is brought up frequently, and I think it's a bit disingenuous. Most people understand that privacy is a human right. You wouldn't want everybody to have your medical records, and you'd want what you pay a lawyer to be private. Imagine going to Target or Walmart, swiping your card, and the store getting your entire financial history and current balances and then tracking you into the future. I think that's why there are so many anons on crypto Twitter. As for who we're catering to, it could be anybody who wants to transact in DeFi privately. It does tend to appeal to larger whales and institutional buyers. If you're getting into an $18 million position in a token, or developing a new farming strategy, you'll probably want to do that privately. So we're gearing it towards those people.
Why big players want privacy
Ashton: Can you give an example of why on-chain transparency is a problem for big players?▶ 08:43
Alan: Not every trade is a home run, and having your track record on-chain for the rest of forever can be a bad thing, especially if clients are tracking your wallet. A good example is our strategic partnership with DCG. They put $7.5 million worth of DAI into the Railgun DAO treasury in exchange for some tokens the DAO voted on. When we did it, it was pseudonymous, just "Fund X". It took the community just over two hours to figure out that it was DCG. A bit of block exploring on Etherscan was enough. That forced our hand to go public, which wasn't necessarily a bad thing, because it's really great to partner with DCG. But if they had wanted to keep it private a little longer, they couldn't, because on-chain analytics completely doxxed them. With Railgun's privacy technology, that wouldn't have been the case.
Ashton: When will privacy-preserving DeFi become a main topic of conversation?▶ 11:27
Alan: I think it happens as the market becomes more aware of just how not private it is. We can already see players getting excited about privacy, especially on the trader and institutional side. There's capital sitting on the sidelines that wants to participate in DeFi but chooses not to because it isn't secure or private. These players are used to traditional finance, where they can use a dark pool and trade large blocks privately without upsetting the market. On the individual level, people really desire financial privacy, and as on-chain analytics become more pervasive I think they'll see how important the tech is. We're starting to see glimpses of it. CoinDesk recently ran a privacy week, and zero knowledge is a huge trend, with a lot of that tech used in privacy-preserving protocols. I'd say 2022 is probably the year of PriFi, private DeFi.
It took the community just over two hours to figure out that it was DCG.
Where Railgun stands today
Ashton: Can people start using Railgun now?▶ 15:11
Alan: Yes. It's deployed on Ethereum, Polygon and Binance Smart Chain. If you just want to test the tech, you can do that for free on the Ropsten testnet. The beta is out, and we're looking forward to the v1 release. We're currently doing a security audit with Trail of Bits. We take security very seriously and have done a ton of audits, including multiple with ABDK. Once this one is finished, we'll do the v1 launch, which will include the relayer network to privatize gas. We're also developing a mobile application for Android and iPhone that uses Railgun tech. It has a wallet with an incognito mode built into the front end, so users can transact privately.
This interview has been edited for length and clarity. Recorded February 2022.

