“Bitcoin exists to remove intermediaries from the movement of money online. Without privacy, if someone can see how money is moving, they don’t like someone you paid, they can discriminate based on that.” - Dan Gould Dan Gould builds PayJoin, the privacy protocol that breaks Bitcoin surveillance while cutting transaction fees up to 25%. Satoshi flagged Bitcoin’s privacy problem in the white paper - PayJoin solves it without mixing, turning surveillance assumptions into dead ends. When privacy becomes an economic benefit rather than a cost, adoption follows. Episode Summary Dan Gould reveals how PayJoin breaks the core assumption that chain surveillance companies use to track Bitcoin users across the network. By allowing both sender and receiver to contribute inputs to a transaction, PayJoin shatters the multi-input heuristic - the dragnet surveillance tool that assumes all inputs come from the same person. This isn’t just privacy theater: PayJoin delivers up to 25% fee savings while protecting financial activity from arbitrary discrimination. Gould explains why Bitcoin’s Fourth Amendment moment hasn’t arrived yet, how interactive batching supercharges both privacy and efficiency, and why merchant adoption creates network-wide privacy improvements even for users who aren’t running PayJoin. The protocol requires no trust in third parties, no heavy dependencies like Tor, and works asynchronously so participants don’t need to be online simultaneously. With integrations rolling out across wallets and exchanges, PayJoin shifts privacy from an expensive add-on to a default cost reduction. Privacy, cost savings, censorship resistance - or you can keep broadcasting your transaction history to chain surveillance firms. About the Guest Dan Gould is maintainer of PayJoin Dev Kit, a privacy-focused Bitcoin development toolkit supported by OpenSats and Spiral. He launched PayJoin Foundation with eight independent contributors and a volunteer board to eliminate the server requirement that blocked widespread adoption of privacy-preserving Bitcoin transactions. Gould’s work on serverless PayJoin (BIP 77) enables asynchronous transaction coordination through encrypted messages, removing the barrier that prevented mobile wallets and merchants from implementing the protocol. His approach treats privacy as infrastructure rather than luxury - breaking surveillance heuristics while reducing fees makes adoption inevitable rather than aspirational. Social Links: * X/Twitter: https://twitter.com/bitgould * GitHub: https://github.com/DanGould * Website: https://bitgould.com * Substack: Privacy sans Mixing * Email: dan@payjoin.org Key Quotes “Bitcoin exists to remove intermediaries from the movement of money online. Without privacy, if someone can see how money is moving, they don’t like someone you paid, they can discriminate based on that.” - Dan Gould “Satoshi said all the inputs necessarily come from the same person. That assumption - the multi-input heuristic - is used to dragnet surveil everyone on Bitcoin. PayJoin is the simplest way to break that privacy problem.” - Dan Gould “Where else do you get to increase or improve privacy and pay less for it? Anytime you’re using a custodian, assuming you trust that custodian completely with your privacy, you are getting fee scaling benefits. But the problem is you have to trust that custodian.” - Dan Gould Key Takeaways * Surveillance companies exploit the multi-input heuristic: Chain analysis firms assume all inputs in a Bitcoin transaction come from the same person - PayJoin breaks this assumption by letting sender and receiver both contribute inputs, rendering surveillance attempts unreliable across the entire network. * Privacy delivers economic benefit, not cost: PayJoin reduces transaction fees up to 25% through interactive batching and cross-input signature aggregation while simultaneously protecting financial activity - making privacy adoption a cost-saving measure rather than an expensive trade-off. * Asynchronous coordination eliminates server requirements: Serverless PayJoin uses encrypted mailbox messages allowing participants to transact without being online simultaneously, removing the infrastructure barrier that prevented merchant and mobile wallet adoption. * Network-wide privacy improves even for non-users: When PayJoin transactions look identical to standard transactions, surveillance firms can’t safely apply their heuristics - meaning increased adoption creates privacy improvements for all Bitcoin users regardless of individual PayJoin use. Timestamps [00:00] Why PayJoin works like HTTPS - making surveillance unreliable across the network [02:11] PayJoin Foundation launch: Eight contributors building privacy infrastructure [04:30] How exchanges batch withdrawals to reduce fees without sacrificing privacy [08:32] Bitcoin’s Fourth Amendment gap - why digital cash has less protection than physical [14:42] Breaking the multi-input heuristic that enables dragnet Bitcoin surveillance [20:15] Interactive batching supercharges Bitcoin transactions with privacy and cost savings [27:45] Why merchants get fee benefits while improving customer privacy [35:20] Cross-input signature aggregation delivers 25% fee reduction with privacy [42:18] Serverless PayJoin removes infrastructure barriers through encrypted mailboxes [48:30] Lightning integration: PayJoin for channel opening and splicing [52:26] Essential privacy hygiene for self-custody Bitcoin users [54:27] How developers integrate PayJoin into wallets and e-commerce platforms [56:17] Six-month roadmap: Production integrations and multi-party PayJoin advances Resources & Links Projects & Organizations: * PayJoin.org - Protocol documentation and education * PayJoin Dev Kit - Developer toolkit with Rust, Python, Kotlin, Swift, and WebAssembly bindings * PayJoin Foundation - Nonprofit coordinating development and adoption * OpenSats - Funding source for PayJoin development * Spiral - Additional development funding Referenced Technologies: * BIP 77 (Async PayJoin) - Serverless payjoin specification * BIP 78 - Original payjoin protocol * HPKE (Hybrid Public Key Encryption) - Encryption without Tor dependencies * Cross-Input Signature Aggregation - Fee reduction through signature compression Mentioned Organizations & Projects: * BTCPay Server - Early PayJoin implementation * Bull Bitcoin - First mobile wallet with integrated PayJoin send/receive * Cake Wallet - Recent PayJoin V2 integration * Liana - Wallet with time-locked recovery exploring PayJoin integration * Bolts Exchange - Integration proof of concept from MIT Bitcoin Expo Podcast: * Subscribe: https://podcast.trustrevolution.co * Music: More Ghost Than Man Get full access to Trust Revolution at trustrevolution.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_02So the reason HTTPS makes sense as an analogy is because before HTTPS, everything on the web was totally unencrypted. And if you and I were having this video call and say we were both on hotel, say I was on hotel Wi-Fi, the hotel is a sort of third party in the middle that would be able to listen in on the stream and find all the packets. Once we introduced HTTPS, not that streaming was that easy back in the day, maybe it was emails instead, but assume it was. Once we assumed HTTPS,
SPEAKER_02then the ability of the third parties that are not us, the counterparties, to read that information was fixed. It was protected by encryption. Pay join is much the same in that when I'm sending you some money with a pay join, you still know my inputs and I still know your address ultimately at the end of the transaction on chain. But without that information of my wallet or your wallet, without those additional details, the second party information, third parties don't know that with any certainty.
SPEAKER_00Dan, welcome. Sean, thank you. Fresh out of the Department of Motor Vehicles, on to Trust Revolution. Appreciate you making that context switch. Hopefully it's a little more pleasurable doing this than that.
SPEAKER_02Yeah, absolutely. I don't want to be standing in lines and talking through a glass wall.
SPEAKER_00Nobody needs that. We're just talking to glass screens instead. Well, hey, so we have been working on this for a bit since you and I sat beside each other at an event at Bitcoin Park and started... talking about our beloved first and fourth amendments here in the United States. And so I am particularly excited to talk with you, to speak with you about your work, about what privacy means in terms of financial transactions and payments specifically. And let's start here.
SPEAKER_00Congratulations on getting PayJoin Foundation off the ground. And for those who may not be familiar with with the work and your leadership of it. Could you give us a brief background, Dan, on Payjoin and Payjoin Foundation and its relevance to Bitcoin and payments generally?
SPEAKER_02Sure. Thanks for that tee up. So I need to also thank my team, of course. The whole reason PayJoin and PayJoin Foundation exists now is because we've had around eight independent compensated contributors working on PayJoin for about a year. And we've got a volunteer board. It was time to be able to recruit directly for specific needs that the PayJoin dev kit had.
SPEAKER_02But I'm getting ahead of myself. So PayJoin is what you can think of as interactive batching. Bitcoin has had batching since... It became widespread in 2017, I think, when the fees got crazy. But if you make naive Bitcoin transactions, that's one transaction per transfer of money. And if you're moving money... often and high volumes that starts to really add up and become more expensive than
SPEAKER_02it needs to be so when the fees got high in 2017 people started batching non-interactively where like the common example is an exchange would service multiple withdrawals in one transaction where they'd provide a single input and be able to pay say a hundred people all in one transaction only producing one change, which kept their wallets small, kept their customers served often,
and they pay a much smaller fee for making that batch versus making the hundred
SPEAKER_02separate transactions.
SPEAKER_00And that is, I am, if I am a... Customer of Strike or Cash App or one of the more sort of consumer focused apps of that nature. I want to sweep my Bitcoin. I want to move it into self-custody, whatever that may look like. What you're laying out is sort of the operating process that these exchanges go through, whereby they're not having all their margin eaten up by fees, and they can process these withdrawals more frequently so that,
SPEAKER_00as you say, I, as a customer, a consumer, get what I want when I want it. That's right. And then if I am, again, that individual who, you know, maybe I'm holding IBIT. I want some, as they say, exposure to Bitcoin, but I'm not yet holding Bitcoin in self-custody. Or I am, as I noted, a Striker, a Cash App user, really looking at it. more as a neobank with an eye toward how do I enjoy sort of the full benefit or set of benefits of Bitcoin.
Rewind and explain why any of what you just described sort of matters in that context.
SPEAKER_00What ultimately does PayJoin get us or get that individual? What's the benefit?
SPEAKER_02So in the context of self-custody, this is what you're talking about as opposed to an IBIT or some ETF?
SPEAKER_00Well, more than I'm that person who is looking to take the next step into self-custody or just progressing, you know, toward using Bitcoin to its fullest extent. What is PayJoin? What's the impact of PayJoin on that individual?
SPEAKER_02So easy. Bitcoin exists constantly. to remove intermediaries from the movement of money online. So you want to be able to move money and you don't want to be censored by some party in the middle that says, no, you can't do that because I don't like that. In order to do that, we need privacy because without privacy, if someone can see how money is moving they don't like someone you paid if you're relying on them to move money or even if they can make a lot of noise that you move
some money then they can discriminate uh based on that so we need some baseline privacy and in the original white paper satoshi said that there's privacy problems with bitcoin and
SPEAKER_02that the way Bitcoin works with inputs like coins and outputs for each transaction, he said all the inputs necessarily come from the same person, which at the time was true based on the wallet software available, but it wasn't a consensus constraint. And that assumption that all the inputs come from one person is called the multi-input heuristic or the common input ownership heuristic and is used to dragnet surveil everyone on Bitcoin. It's a pretty...
easy assumption to make that all the inputs come from the same person so you can just look at the chain and kind of follow coins from a to b see how much money someone has um how much money they make on a regular basis who they paid in the
SPEAKER_02past and then in the future even who they might pay so pay join is the simplest way to break that privacy problem that satoshi brought up and i think of it as the next iteration of batching so the batching i mentioned is non-interactive batching with page on you have interactive batching where rather than the batch being made just by the person With the inputs, you can have a sender and a receiver both contribute inputs to
a transaction.
SPEAKER_02So this breaks the heuristic and it saves people money. It's supercharged batching for Bitcoin.
SPEAKER_00Right. And I think that's exactly what I wanted to convey is... That the, in my mind, significant innovation here is that privacy becomes an economic benefit, not a liability. And so, as you just teed it up, Dan, I'd like to go from... There to let's do talk Fourth Amendment. And so the Fourth Amendment says your papers and effects can't
be searched without a warrant.
SPEAKER_00We use physical cash. That protection exists. When we use Bitcoin, as you eloquently noted, so-called chain analysis tracks every transaction. How in your mind did we end up with less privacy in the digital version of cash than the physical one? I love this question because it's kind of like history rhyming, actually.
SPEAKER_02The same sort of thing happened when the telephone was invented. So, you know, even the telegraph before that, we had all these wires on the ground, people using Morse code. But they passed laws very quickly that made physical taps... The arbitrary, like if you physically spliced a wire into the phone cable to spy on someone, that was illegal. But then someone figured out, oh, you can just wrap a wire, a coil around the wire. You're not physically tapping it, and you can read the signal still.
SPEAKER_02And it took until the mid-60s to pass laws that made that... Fourth Amendment protected that required police departments and. Government agents to get warrants to be able to to search and seize that information. So how did how did we get here where it's not protected by the Fourth Amendment? I think it's just new ground. People aren't aware.
SPEAKER_02There was also a sort of a necessity when Bitcoin originally came out. We didn't have zero-knowledge proofs, so we weren't able to do that kind of verification without all the amounts being available in this public record. So it's part of... Yeah. Yeah. Yeah.
And that is certainly another point that I want to underscore is this is the
SPEAKER_00preservation of rights. This is not the assertion of new rights. And so you touched on it. You know, a government agency wants transaction data in the physical world, get a warrant. And so the question with Bitcoin is, you know, why does that standard disappear? And not, Dan, that I expect you to act as an historian, but I know that you, by necessity, as a builder, of PayJoin. get into this is,
SPEAKER_00you know, what's your sort of understanding as it stands with regard to the so-called reasonable expectation of privacy? And I'm thinking about, you know, cats versus United States in the 60s, I think it was. And so what is your assessment or understanding of how Bitcoin sits in that sort of that rubric of reasonable expectation of privacy? And where is Pajoin pushing us or taking us? so yes cats it was sort of what i was talking about um where
you have a reasonable expectation of privacy i think the issue with bitcoin is specifically that while the system is pseudonymous and has the potential to grant people the ability to preserve their privacy in practice everything people do is published to a permanent
SPEAKER_02record on chain as like I said, noted by Satoshi. And even before that, if people reuse addresses, if people are relying on a third party to sync... Third party doctrine kicks in. Well, yeah, not even that, but if you're... Beyond the legal part, just the strict... If you're depending on someone else to tell you what your balance is and you're not validating, you're revealing your entire history to someone else that you must trust not to reveal that. Never mind if someone goes and knocks on their door and says,
give this over because you're a third party and third party doctrine applies.
SPEAKER_02So we don't need to get a warrant.
SPEAKER_00Right, right. Well, and maybe to contrast that, you know, for those paying attention this week, I samurai uh the wasabi or pardon me samurai mixer um that Litigation has come to a head where the government has shown that they're taking a particularly aggressive stance. Prosecutors have claimed that Samurai pooled funds and operated as a so-called financial intermediary, and they're pushing for the maximum sentence of five years.
SPEAKER_00How does Pajoin's architecture differ from mixing technically and mixing? to the degree you want to go there, you know, sort of why does that matter in light of some of these lawsuits and some of these, I would say, witch hunts?
SPEAKER_02Yeah, it's a shame to see the way that's gone. That whole case is a disaster for so many reasons. It is. It absolutely is. The biggest one is just that they pled to the money service business charge and not some of the other charges, which seemed like the most ludicrous of what was on the table. The whole point of PayJoin is that it happens while you're making a payment. Like I said, it's transaction batching generally rather than some form of
mixing right it's in the flow in in in the process of executing or conducting a payment it is not a discrete separate activity is that fair even if it were which it's not i don't think that activity makes it more suspicious but it definitely
SPEAKER_02makes it um less convenient so payjoin there's it's got two things that really make it quite different from your classic coordinated coinjoy one is that it happens in the typical user experience so you scan a qr code like you would you're trying to pay someone you click send and in the background if both wallets support it it'll try to make a batch based on the configuration of each wallet And therefore, it doesn't require an explicit user action. I'm trying to mix and separate old history from new history.
SPEAKER_02But it also tends not to have this distinguishable fingerprint on chain. When you look at a coin join from a samurai or wasabi, you're going to see a lot of outputs that are of equal amounts. And when money is being transferred, whether in a batch or not, wouldn't usually look that way that would only happen if you're doing a self-spend because pay join both involves a transfer and only involves uh
two people mainly because it involves a transfer it doesn't have this signature you don't produce equal amount outputs it produces typically a transaction that has two outputs which
SPEAKER_0280 of the transactions on the network have uh Two inputs, I meant to say, not outputs. Have two inputs. So it looks like everything else on the chain. It's not really possible for someone to point at something and say with any degree of certainty that is a pay join. It looks like the rest of the traffic on the network. So it's much harder for a third party or even a second party to a transaction to discriminate based on history that includes a pay join activity just because you don't know for certain if it's happening.
SPEAKER_00Right, right, right. And if I am, then if we shift from a user of money, of Bitcoin to a developer, what is the benefit or why should I integrate PayJoin in rather than avoiding privacy features altogether in light of Samurai and other scenarios? Sort of what's the call to action to a developer to build PayJoin into their wallet,
SPEAKER_00into their consumer experience? Yeah, if you're avoiding privacy features altogether, I'm not sure exactly what that means.
SPEAKER_02I mean, you're custodying your user's funds and that's it. You don't go any further than that. You give people, like if you want to give people control because it's a benefit to them and a selling point for you then privacy is just another knob you're giving people the control to reveal their activity or not and it may even make your life easier because you don't need to manage any sort of personal data take responsibility for that but beyond that I think
The reason to integrate PayJoin now is because it gives this opportunity to your users to do these automated batches that fall back to the old way of doing things.
SPEAKER_02So it's optimistic and it's not going to break your flow. And not only do your users benefit with this idea of privacy, but the whole network stands to benefit as the floor upgrades, as this basic common input heuristic becomes less reliable for all. So if I were to send you money, Sean, you might know some details about what I sent to you and... Vice versa. But our ability to cluster one another to know,
oh, all of these coins belong to Sean. These are the people he transacts with in this amount becomes much less reliable.
SPEAKER_02And that improves everyone's safety. And in my opinion, the longevity of the whole network, the selling point of Bitcoin is that it is censorship resistant. Censorship resistant. And this element of privacy is necessary to preserve that.
SPEAKER_00Yes, and I think that cannot be overemphasized. This is delivering on the promise, I think, of what so many expect from Bitcoin, whether or not they understand deeply the technical details. And, you know, as you called out, there were... caveats that Satoshi made note of, but peer-to-peer electronic cash is what I hope most people expect of it. And I think what's so exciting about PayJoin is pushing closer
to that vision.
SPEAKER_00And my monologue here is only to say that There are not dedicated business models and firms that I'm aware of that are, you know, spying on me moving cash from point A to point B across a counter or to another individual. And so why should they enjoy that particular benefit or business model with Bitcoin? Beyond that, I think there's one thing I want to touch on with regard to why the time is now.
SPEAKER_02The Payjoin dev kit, is the tool that lets developers plug this into their wallet experience and until now if you wanted to have one of these privacy technologies in your wallet or your service i mean really if you have an exchange or a custodian or a treasury or a payment processor that's all viable you have a lending product now the payjoin dev kit in about 1,000 lines of code with two developers in a weekend, you can plug it into that existing flow,
SPEAKER_02wire up the RPCs, the glue, make some database calls. You basically implement how you'd save some data. And because this is approaching stability, we just did a release candidate for the 1.0 API. I think. Especially if you want to, you know, show people that you you do, in fact, care about user privacy, that the time is now because it's just possible now and it wasn't possible a year ago. I was yesterday taking I was refreshing myself on the Bitcoin
design guide and the
SPEAKER_00particular page on. Yeah. section or elements. And, you know, it's a bit above my pay grade, but what I so value about the Bitcoin design guide and the team, the group behind it is the sort of classic approach to what is the objective that a particular user has and what are they trying to accomplish to achieve that objective. And I think it lays it out nicely. I'll be sure to include that. But my understanding is that it is
uninvasive, and as you say, part of the payment flow as opposed to some of these other approaches, which I think have interjected a lot of friction, which we do not need, clearly. And I think we're already in a situation where we're sort of chasing a lot of
SPEAKER_00neobanks, a lot of consumer payments apps. And the more privacy we can enjoy, the less friction that it injects into the process, the better, which is great. Okay, so with that, let's get into a bit of the details, Dan, and I'll see if we can sort of keep this a little higher level with regard to the mechanics of PayJoin. And I think, you know, my objective would be for someone who is privacy curious, who is Bitcoin curious and or holding Bitcoin and wants to
understand what is this
SPEAKER_00magic that you have created, you and the team have created behind the scenes. Let's get into a little bit of the detail. So most privacy tools, I think, make us choose between convenience and and anonymity. PayJoin, which as I've noted, I think what's so powerful is it saves you money on fees while improving privacy. Could you walk us through sort of the Lego brick version of how that works? Sure. You've touched on it, but I'll just ask you to sort of go back and walk through.
SPEAKER_02Yeah. If anything gets too deep in the weeds, reel me in for a minute.
SPEAKER_00I'll pull you out. Yeah.
SPEAKER_02Yeah. So... Bitcoin has inputs and outputs. You know, you have coins. Anytime someone pays you, you get a coin. And if you want to pay someone a certain value, you need to supply sufficient inputs to cover all of the output values you want to pay. So it's kind of like dollar bills, right? If you wanted to pay someone $7 and you had a 10, you would use that 10 and give them a five and two ones and
SPEAKER_02you'd make change of $3. Now we don't need these denominations strictly, but another example, if you needed to pay someone say $8 and you only had two fives, you need to spend all, like the whole input. So typically when you'd make a transaction, like I say, you use one input and you'd get an output and change. with page one rather than just broadcasting that to the other person when they give
you their address the information they share includes a mailbox which is an out of band just like your email place to to put a message that they listen for so instead of broadcasting that transaction them you put it in the mailbox and they're waiting
SPEAKER_02for it they can take that add their own input and output so If they added some input and still wanted to be paid to the same address, they then just augment the output by the amount of their input. Take that same transaction, put it back in the mailbox for you as the sender to take out. And then you can check this. as the sender, verify that it pays only the amount you wish to go to the receiver and gives you sufficient change, sign it,
SPEAKER_02and broadcast it. And once you broadcast it, the receiver can see that, oh, this is what I, yeah, they get paid. And if for some reason, after putting it back in the mailbox, the receiver doesn't see that on the network, they always have that original that they got in their mailbox that they can broadcast to fall back on. So the interaction, the ability of the center and the receiver to send messages to one another gives the receiver the chance to augment the original transaction
with some more
SPEAKER_02transaction intents, whether that's consolidation as i described them including their own inputs and adding it to their outputs or even forwarding money to another person so instead of taking the output directly they could replace the output that would pay them with outputs that pay other people great that's the high level nice and then and what what is was the
SPEAKER_00fundamental breakthrough that made payjoin possible Or was this the grind over years to get this implemented?
SPEAKER_02Yeah, I don't know that there was one fundamental breakthrough. It's a little history. In 2018, there was a workshop in London that was Chatham House Rules. A bunch of people came together. I think the idea was called Pay to Endpoint then. Because even in Greg Maxwell's original CoinJoin project, bitcoin talk post which is i think from 2013 where equal output coin join is spoken of like putting payment amounts uh was was listed there and so
when these folks got together in london blockstream wrote an article called pay to endpoint that described how this might work you could use a web endpoint to do communication at a band and combine transactions uh preserving privacy because these transactions could have multiple interpretations like i said they don't really look like pay
SPEAKER_02joins I think Adam Gibson dubbed the name PayJoin to the idea instead of Pay to Endpoint, Pay to EP, which rolls off the tongue a little nicer.
SPEAKER_00Absolutely. Much better marketing.
SPEAKER_02Yeah. Mr. Cooks and Nicolas Dorier from BTC Pay put together BIP78, which was a simple PayJoin protocol that used HTTP. That was implemented quite widely, actually. And BTC Pay server, of course, Samurai, not Samurai, Aspero, Wasabi, JoinMarket. But the issue was you had to run a server. Yes.
SPEAKER_02And not everyone wants to run a server. And even if people do run servers, do they want to connect a hot wallet to it? There was just a lot of... um a lot of barriers to adoption that even were called out on the mailing list craig raw wrote on the mailing list and he's like you know the server thing is kind of stinky join market fix it fixes it by using uh tor but then even though all these wallets can send pay joins if they don't have tor they can't communicate with the joiner so there was this whole fragmented right uh situation
SPEAKER_00Low ceiling to the adoption curve, I think.
SPEAKER_02So this is around 2021, I'd say. Between 2018, 2019, the spec got made. It got rolled out to quite a few wallets where people did hand-rolled implementations. And it didn't really take off because it was hard to receive. It was really easy to write the sender, but not the receiver because you needed to have the server and it needed to interact with the wallet. So... around 2022 i had noticed i'd been working on equal amount coin joins uh in ios but
i kind of i realized after some time that the operating system doesn't matter we're not going to solve bitcoin's privacy by taking these manual steps and the page one idea had gotten some uh attention it seemed like people got the idea people liked
SPEAKER_02it Armin Saburi and I, he still works on PayJoin. We won MIT Bitcoin Hackathon hacking PayJoin into the iOS wallet we were working on, and HRF gave us a little grant to productionize it. And... That's when I really shifted focus. I'm like, okay, there's something here. Worked on the payjoin dev kit, which was a library instead. Like, how do we ship this thing as a library instead of a specific application? And in doing that and doing the integrations,
SPEAKER_02I realized that the protocol itself was the problem. So over the past two years, we've been working on an async payjoin protocol that instead of requiring the receiver to run a server... both the sender and the receiver communicate using these mailboxes that are blinded the messages are blinded from the server hosting the mailboxes and the server hosting the mailboxes is called the directory is run by a third party um and because of this now you can take the payjoin dev kit off the
shelf which is more or less an http client like a web browser client and some crypto sprinkled on top with partially signed bitcoin transactions so some transaction serialization and with this pure client software any wallet can speak pay join and slip it into their experience so the real the real breakthrough was this async pay join protocol
SPEAKER_02and the ability to use that with an off-the-shelf dev kit. So the dev kit is all highly tested, performant, written in Rust. It's systems-oriented. We've got the abstraction set up so they're very easy to reason about. Someone can come in and contribute however they want. And then we bind to that in all these different languages. So if your wallet's in Dart or Python or Kotlin or C Sharp, you can call this core library and know that your implementation is going to be interoperable.
SPEAKER_02So this confluence of factors, I would say mainly the async protocol that Yuval Kogman and I co-authored, BIP77, are the reason that we've been able yeah we're here we've been able to go from this thing that was sort of fragmented and difficult to use to something that is now in cake wallet and bull bitcoin mobile you know half a million monthly active users approximately can just scan a qr code it'll happen in the background brilliant and so
on the back of seven
SPEAKER_00years of grinding Here is a, you know, and I know you're a humble guy, but here is a significant breakthrough that fast forward gives us the ability, if you are a developer, if you're a builder, if you're a product person, to drop PayJoin into your consumer experience and off you go. That's right. And you said, Dan, I believe that you've compared page one adoption to HTTPS.
SPEAKER_02Yeah. And most of us, you know, we take that little lock in our browser for granted. So, again, for those who may be coming sort of up that curve, why is that the apt analogy?
SPEAKER_00And then what does that network effect curve look like as a result? Yeah. I'm glad you asked both of these questions because they're exactly why I frame it as HTTPS.
SPEAKER_02So the reason HTTPS makes sense as an analogy is because before HTTPS, everything on the web was totally unencrypted. And if you and I were having this video call and say we were both on hotel, say I was on hotel Wi-Fi. The hotel is a sort of third party in the middle that would be able to listen in on the stream and find all the packets. Once we introduced HTTPS, not that streaming was that easy back in the day,
SPEAKER_02maybe it was emails instead, but assume it was. Once we assumed HTTPS, then the ability of the third parties that are not us, the counterparties, to read that information... was fixed. It was protected by encryption. Pay join is much the same in that when I'm sending you some money with a pay join, you still know my inputs and I still know your address. ultimately at the end of the transaction on chain but without that information of
my wallet or your wallet without those additional details the second party information third parties don't know that with any certainty the reason the network effects can take off as well as is because https became seamless and embedded in
SPEAKER_02the browser any browser has this now i think this year Chrome is going to release an update where if you go to an HTTP website, it's going to give you a big warning. It's not for an invalid certificate, just if the thing doesn't have a certificate at all. It's going to say, do you really want to even go to this website? We've come so far in large part thanks to Let's Encrypt making certificates free. Yes, thank you to them.
SPEAKER_00You can start up a server.
SPEAKER_02Yeah, and that was a very similar model as well. It's a nonprofit, the Internet Security Research Group, supported by all sorts of... you know, the browsers and EFF, and they were able to roll out this software that automated HTTPS so that it's expected everywhere. PageLine's much the same. We've got the non-profit, we've got the development kit. You can include it in your wallet with a couple weekends. You can make a proof,
SPEAKER_02yeah, with a couple engineers and a weekend's time, you can make a proof of concept. And the last reason... call it https is because it contrasts with something like tor so this is beyond your initial questions but tor gives tor gives you second party privacy so you connect to some website and that website doesn't know your origin ip address even though you connect to them directly so right yeah true the
third party can't see
SPEAKER_02the traffic because
SPEAKER_00All parties are blind to the origin.
SPEAKER_02Yes, but the Tor protocol, Onion Routing, protects the IP address. And I think, I know PayJoin can go that direction in the future, but what we've shipped right now is the closest to HTTPS.
SPEAKER_00Yes. And I think, you know, the thing, again, that I would like to underscore is this is not nefarious. This is, would you visit a website where the lock is open on your browser? Of course you wouldn't. Would you engage with a bank that didn't implement HTTPS SSL? Of course you wouldn't. Can you imagine? No. Yeah. I mean, so I love that. And I think it is... dare I say, appropriate and powerful to make that comparison because that
is what should be, is that same level of protection from snooping and from invasions of privacy.
SPEAKER_00So bull Bitcoin, cake wallet, I believe foundation devices, is that a...
SPEAKER_02They probably the device itself will sign a pay join. I don't know if it works with either of those two pieces of software. You might be able to sign a pay join. with like Sparrow from that, the old protocol, but yeah, it would work. The protocol is backwards compatible. So there's that, like I said, Wasabi, Sparrow, JoinMarket, Bitmask, Wallet, and BTC Pay, of course. Cake and BullBitcoin have the new protocol. That's why I bring them up.
SPEAKER_00Yeah, I installed the BullBitcoin app last week. Brilliant. And so, you know, you're getting real adoption. This is not an academic paper. This is not a white paper. This is not aspirational. It's real. You know, what then would be, and you've touched on this, we talked about sort of to a developer, if we shift a bit, Dan, to a CFO, COO of an exchange, what is the message to them as to how they should,
SPEAKER_00it's a reiteration of what you said, how they should perceive PayJoin and what's in it for them for not as a dev, an engineer, a product person, but as sort of CFO, COO? What's the message to them? The biggest reason for someone in such a position to use PageOne is just that they
SPEAKER_02can raise their bottom line. They can save on fees. We've got an example on our website of a 16% fee savings, pretty modest with some basic batching. And this is assuming you're already doing some batching. Right. That's that's the main thing. I often get asked in terms of the compliance department, like,
SPEAKER_00oh,
SPEAKER_02what do I what do I do about this? I want people not like this.
SPEAKER_00I'm going to go there, but by all means, go there.
SPEAKER_02Yeah, no, I'd like to go there. I think it's I think it's related because it always comes up as the next question. And the thing is. It's an independent problem because these KYC measures, if you're obligated to do them, are data collection with regard to who you're dealing with. And nothing prevents you from collecting that information. So when I'm talking to someone in a CFO position,
this is naturally going to come up. the the bottom line can increase you can save on fees you basically take your batching strategy to the next level and you also can get higher velocity of money because you can do something like cut through so if you're in exchange as this example your depositors can directly fund your withdrawals so you don't have to take the deposit wait for confirmation and then spend that utx so you can actually
SPEAKER_02spend it in the same block with page interesting okay
SPEAKER_00Right. Right. So, yeah, you're not you don't have that carrying cost. And what is that? You know, you touched on it. I won't say this is your perspective or your position, but having had many of those conversations myself, I know that. Some, hopefully more and more over time of these forward thinking executives are looking at how to reduce. The exposure that they carry. to keeping so much personal data.
SPEAKER_00Is there a scenario in which, as you said, you know, if they're obligated, they'll do it because nobody wants to get perp walked out the front door. And that's a different conversation than we're having today as to KYC and FinCEN and travel rule and all this stuff. But, you know, is there a benefit to sort of shrinking that attack surface if you're that head of compliance? if one implements PayJoin? Are you sitting on less data? The reason I hesitate to answer is because as PayJoin is
implemented today,
SPEAKER_02the current protocol, it's actually about the same amount of data. You still know... who your counterparty is, what funds were sent to you, and what address was used. The biggest difference is that even if you give that information to a third party for analysis, the ability of the analysis is greatly reduced. Now, beyond that, I can imagine a future where an upgraded protocol has more effective batching,
SPEAKER_02where... as the recipient to a transaction you don't necessarily know which coins were sent to you or as a sender you don't necessarily know which address or addresses those funds ended up in you just end up with a proof this is would be very similar to lightning which as far as i can tell has proliferated and is uh possible to use within compliant regimes so i i think there's a future for that too but
SPEAKER_02To answer the question right now with PayJoin, you actually don't even need to consider that question because you have the same information you've always had with on-chain Bitcoin.
SPEAKER_00And again, you know, worth pointing out an exchange intermediated approach versus truly peer-to-peer. Appreciating that those are quite different. So if we, as you say, you know, fast forward, I'll just pick a number, 30% of transactions implement or use PayJoin. What happens to the surveillance model, Dan? Who will think of the chain analysis firms?
SPEAKER_02There are more problems that we need to address, actually. So yes, the common input heuristic might be gone, but we still have a lot of work ahead of us in terms of privacy. Every wallet tends to have a fingerprint. So there's things like unlock time, sequence number, the script you're using. amount correlations generally timing analysis of when transactions are made if you can figure out a pattern so their their pay join in its current form common input
heuristic is not the end of the story it does make the very most useful tool that chain analysis has obsolete especially if with 30 penetration it's you're taking
SPEAKER_02almost a 50 flip every two input transaction on the interpretation
SPEAKER_00And truth be told, I did arrive at that number on purpose. So, right.
SPEAKER_02Yeah, of course. Yeah. It's also difficult to measure. Like, how do you even know how many transactions and what volume is using PayJoin?
SPEAKER_00Right. Yeah, which is itself wonderful. So, you know, I think the takeaway that I wanted to pull out, and of course you nailed it, is it's a great start, but there's a lot more work to do. And in that vein... Does does pay join lay a foundation for doing some or more of what you've just laid out, sort of breaking some of these common heuristics or or is that the domain of a
SPEAKER_00different BIP, a different set of technologies?
SPEAKER_02I would say both. Like I would probably still call some of this stuff pay join. But it will require new specs and new tech. Mm hmm. The cool thing about PayJoin DevKit is we deliver this off-the-shelf package with all the goodies you want, and we can have some, what I like to call, chain-surveil-yourself tools to do analysis within your wallet and inform your transaction construction. So you can get some counterfactuals. You can figure out what the privacy effects of your wallet
would be just by using
SPEAKER_02the software that's being developed in the DevKit. Yeah. And the next big protocol change that'll happen over the next year or so for pay join is a multi-party pay join. So like I said, when you involve more than two people in a pay join, then there can be some real indistinguishability from the counterparty. So I pay you and I don't know what address you necessarily had. it's more interactive you have to send more messages around
anytime you have a distributed system it becomes more complicated but the the team we have focused on this is built to people who have been thinking of this problem for a decade plus and this problem has only been around for how long has bitcoin been around 17 years
SPEAKER_02yeah right so there are ways there are ways to overcome these challenges and then especially combined with some of the analysis that i see being brought into the clients and not just being done by surveillance firms and defensive way we will have very robust privacy for normal everyday people on bitcoin very soon fantastic that is
SPEAKER_00the that's the bullish sentiment i was hoping for um If we zoom out a bit, Dan, and we touched on the Fourth Amendment, I'd like to talk a bit about the first and code as speech. We rewind to the 90s. Daniel Bernstein successfully argued that publishing encryption code for PGP was protected speech under the First Amendment. Again, you are not a lawyer, but the samurai prosecution seems to attack that precedent and
SPEAKER_00Some, you know, some are saying it's it's crypto cryptography, not cryptocurrency sort of crypto wars 3.0. What's your read? And and, you know, how well do you sleep at night, frankly, with regard to the ability to enjoy First Amendment protections as a publisher of software?
SPEAKER_02I sleep OK with regard to that. The really screwed up part of. that case was again the fact that the money transmission was tied in and that that really Doesn't make sense even for someone that's not just publishing software, but running software on a server because that software didn't give them the ability to transmit the funds,
SPEAKER_00to control and transmit the funds.
SPEAKER_02They did not have custody of funds. No. So I'm glad to see what I think is progress in Congress on codifying the the right to publish this kind of transaction and formally enjoy the protections um but it's it's just until that happens it is a bit uncertain what the behavior will be especially the most concerning part of
SPEAKER_02That case, and the Roman Storm tornado cache case, was that FinCEN came out with guidance in 2019. In my view, explicitly, I mean, they did explicitly carve out anonymizing software providers, people that published and ran software, but Didn't have control of money. And then the judge, despite seeing this guidance, disagreed. And in the United States, judges decide matters of law.
SPEAKER_02And the case was able to be brought forward. So until we get some greater precedent in the courts or law passed by Congress, it's a bit up in the air. It needs to play out.
SPEAKER_00And in the meanwhile, without naming names, of course, you know, any sort of insights or anecdotes in terms of what you're observing as to chilling effect among Bitcoin developers?
SPEAKER_02The biggest thing is that the CoinJoin coordinators are no longer run by like white market companies. There are some gray market, pseudonymous, centralized, equal amount coin join coordinators. I know a lot of people are avoiding the U.S. in terms of, a lot of foreign people are avoiding the U.S. in terms of travel. I think that's a, it is like a vibe rather than based on reality because at the
same time we've seen,
SPEAKER_02you know, Phoenix come back to the U.S. There's just a lot of uncertainty. But the momentum, it seems, I'm not seeing a slowdown with regard to product shift. No, it's reinvigorated. I think the thing that's been beneficial in some ways is that the need for the actual privacy is here in force. I think before... When you had these companies that were making a profit on
running CoinJoin
SPEAKER_02coordinators, they didn't really need to provide privacy guarantees. They were the only game in town. And they made all these claims. Some of them continue to, the gray market stuff that's on the edges. And it was hard to... How do I put this? People didn't know any better, right? People didn't know any better. And I think we're seeing some of that analysis... come out now and people's focus is on things that will actually have more of a tangible benefit in terms of privacy um and some guarantees
some some real protections so a bit of streisand effect on on private use of bitcoin um in drawing
SPEAKER_00attention to Well, I would like to think that. Let's put it that way. You know, that in hunting or chasing down, creating these witch hunts, that they're increasing awareness. But maybe that's my aspiration. Well, let's talk about... I think there is. Go ahead.
SPEAKER_02Yeah. No, I think there is some of that. I'm agreeing with what you're saying. There's a... more momentum and motivation knowing that this problem really needs to be solved as a technological level because right the the government process even if it ends up doing the right thing it just takes so long and causes everyone so much pain in the interim that we need to have a technological solution to enforce it ultimately yes
Yeah, as some of us have heard far too many times, the all-important regulatory clarity, right?
SPEAKER_00There's a parallel universe in which we, I'll speak for myself, wish that we could simply transact in privacy and peace, but such is not the world. But in the meanwhile, the second to that is, okay, tell me what the rules are, right? Just so I know how to play the game. And as you say, that will be slow to arrive, but hopefully we're making progress. If we shift in to practical first steps, if I'm running a Bitcoin business now,
if I am a builder, a product person, you've touched on the pay join dev kit.
SPEAKER_00Um, how should I first approach thinking about privacy? And we've touched on this. So I'm asking you to reiterate and, and what do I do next? You know, if, if I am merely accepting, if I'm an online retailer, accepting Bitcoin for payments, if I'm a wallet developer, if I'm building something new and interesting, um, You know, where should I start to understand privacy with regard to Bitcoin payments and Pajoin specifically? And what do I go do next?
SPEAKER_00If that's a fair question.
SPEAKER_02I would separate thinking about privacy with Pajoin, fortunately, because a lot of the design is that once, if you're a business doing e-commerce, accepting Bitcoin, by the time you know Pajoin is happening, it's been taken care of for you behind the scenes in software. Thinking about privacy in general, much like you would on the internet, is about thinking about what information you're revealing and who has it. So the first thing to do is to make sure that you're validating
transactions
SPEAKER_02yourself, ideally, or at a bare minimum, you really trust the person that is doing the validation for you, because they're seeing, if you're depending on a third party, the whole transaction history, as well as all the people you're transacting with, how much money you have on a normal basis and you need to make sure that they're careful with that information ideally you're running why you're running a node or some light client uh software that allows you to sync privately um beyond that you want to be
broadcasting your transactions in such a way that the whole world doesn't know they're yours so using
SPEAKER_02something like tor or a relay um you don't want to be reusing addresses because if you're giving say one address to a person to reuse then it's trivial to cluster them all together i think those are the real basic things for someone who's starting to take more of a privacy conscious approach to bitcoin to deal with and then you know, just really consider what software you're using because some software...
SPEAKER_00And that's kind of, sorry to interrupt, Dan, that was sort of what I should have clarified is if I am that individual and I'm thinking of, oh gosh, so many that I've interacted with over the years in various roles who... are operating uh businesses and accepting bitcoin payments it's not to say they're going to implement payjoin but but really why should they ask or even insist that their e-com point of sale you know integrates payjoin which i think you've touched on the why yeah of course look at the reputation of the
software vendor what a other people that use bitcoin think of them um that'll that'll give you most of what you need it's imperfect it's harder than it's easier than going and looking at github issues and uh commit history right i think that'll give you a good start
SPEAKER_00Absolutely. And then if you are a builder, what are sort of the first two or three steps that one takes to begin to build POCs or pilots with PageOne? What does that look like? I know you've said it's quite straightforward and I get that, but maybe what are those two or three steps they should take?
SPEAKER_02Definitely don't hesitate to reach out. If you go to payjoin.org, we've got a Discord. You can find me and ask me directly, and I will help you. Yeah, or you can send me an email, dan at payjoin.org, and I will help you. But beyond that, if you go to... payjoin.org we've got some documentation on what the protocol is it links to the crate which is approaching a release candidate there's a reference implementation on bitcoin core that i've heard is invaluable when when doing
an implementation so you can follow that as an example and plug in and you ask some questions you
SPEAKER_02shouldn't have a terrible time of it it should be it should be pretty straightforward you should maybe even have some fun
SPEAKER_00Yeah. As Kali said on Nostra today, hey, if you want to stick around, be sure you're having fun. And then lastly, Dan, give us some spoilers, man. What does the next six to 12 months of Page One look like? Oh, you're going to see rollouts. Yeah, you're going to see... We did proof of concepts at the MIT Bitcoin Expo Hackathon this past year for an
SPEAKER_02integration with Bolts Exchange and Liana, and those have made some pretty significant progress. We've been We've been keeping them off of our priority list. So we got the actual SDK stabilized. But now that it's stabilized, we're shifting in integrations mode again. So you're going to see that and you're going to see some progress in this multi-party pay join protocol. There's even... some pay join cross input signature aggregation crossover
there's a lot more savings than you can get even with pay join if you combine these things and uh you're familiar with cross input signature aggregation i am but i don't want to assume everyone is yeah so cross input signature aggregation lets you combine all
SPEAKER_02of the witness information in a transaction all the signatures uh into the size of a single signature in the full aggregation case that's been proposed. There's been some security proofs and some tangible algorithms published in a paper this year at Dalios. And the biggest question with full aggregation was, well, what protocol do we use to actually aggregate the signatures to actually, because you need to interact much like Pajoin, you need to communicate between the different people providing
signatures. you're not doing it on your own um and because page one already has this sort of interactive protocol we can piggyback one on the other and then that example that's on our website of a 16 fee savings versus naive can turn into something like a 25
SPEAKER_02fee savings you can get this massive incentive to use Bitcoin by default in a privacy preserving way. So watch out for some explanations and fun pitches of that coming soon.
SPEAKER_00Incredible. And so, I mean, that clearly is the TLDR for anyone counting sats is up to or no guarantees, but a potential saving of 25%. Yeah, and this is a simple example of a relatively small transaction, honestly.
SPEAKER_02I'm talking four inputs, six outputs. I think we can get significantly better than that, but I haven't done napkin math and tried to push the envelope. I'm just like, okay, what's a kind of simple example and do some calcs on it. And I mean, where else, and I'm thinking through this, where else do you get to... increase or improve privacy and pay less for it i don't know that i've got any examples uh that come to mind so i think there are honestly i
think a lightning is is a big one uh it's hard to use in self-custody but lightning is basically a coin
SPEAKER_02join like you're you're combining um transfers from different people and settling later um and if you're if you're using e-cash you're giving up custody but you can have some potential privacy benefits i mean anytime you're using a custodian um assuming you trust that custodian completely with your privacy you are getting fee scaling benefits but the problem is the problem is you have to trust that custodian it's very possible that they just say oh this information i left that on a hard drive and we
let the uh-huh We let the hackers get into it or even they have some program where they publish it
SPEAKER_02and sell the information to someone else. Absolutely. Practically on Bitcoin, especially for on-chain wallets, there's nothing like PayJoin.
SPEAKER_00How could we wrap it up any better than that? Dan, really appreciate the time. Thanks so much. We'll stay tuned. I'll get all these links out for everyone to keep track of this fantastic progress and we'll look for those announcements and all the wallets to get our hands on to use PayJoin. Thanks, Sean. Thank you, Dan. Take care.
“With 12 words, you can travel the world. Your money arrives in the country before you do. It cannot be taken from you.” Roland Bewick builds software that makes that sentence true - and just taught an AI agent to do...
“You cannot have data compromised that you do not have.” James Lee has spent two decades watching breach transparency collapse - from near-total disclosure in 2020 to just 30 percent today. The president of the nation’s...
“If somebody gets control over your personal AI - all your health data, all your financial data, all your emails, everything you've thought about - they own you.” Jesse Posner built FROST threshold signatures and...
“All it takes is the political will or the political mistake to turn it on. And it’s there.” John Robb maps the path from post-national identity collapse to automated totalitarian surveillance - and explains why most of...
“The cypherpunks who tried to build digital cash before Bitcoin might one day be remembered like America’s founding fathers.” Aaron van Wirdum spent five years documenting the decades-long war to build money governments...