3 mins
10 months ago
CEO
Bull Bitcoin releases serverless asynchronous Payjoin (BIP77) send and receive capabilities for its mobile wallet
I am very excited about this new and bleeding-edge feature, because it has been a long-standing ambition of Bull Bitcoin to become the first Bitcoin exchange to process Bitcoin withdrawals via Payjoin (Pay-to-Endpoint) transactions.
However, it was hard to justify Bull Bitcoin investing time into building this feature since there were no commercially available end-user Bitcoin wallets that were able to receive Payjoin payments.Â
Indeed, in order to receive Payjoin payments (BIP78), a Bitcoin wallet needed to be connected to a full node server and be online at the moment the payment is made. This means in practice that only merchants, professional service providers and advanced full node users had the capacity to receive Payjoin payments. This is, we believe, one of the major reasons why Payjoin had failed to gain significant traction among Bitcoin users.
For this reason, the Payjoin V2 protocol (BIP77) was conceived and developed by Dan Gould, as part of the Payjoin Dev Kit project, to outsource the receiver's requirement to run his own server to an untrusted third-party server called the Payjoin Directory. In order to prevent the server from spying on users, the information is encrypted and relayed to the Payjoin Directory via an Oblivious HTTP server.
Bull Bitcoin’s Payjoin ambitions had been put on hold since 2020, until there was more adoption of Payjoin receiving capabilities among end-user Bitcoin wallets…Â
But it turns out that in the meanwhile, Bull Bitcoin developed its own mobile Bitcoin wallet. And it also turns out that the open-source Bitcoin development firm Let There Be Lightning, which we had collaborated with in the past, had itself collaborated with Dan to build a software library for Payjoin that was compatible with and relatively straightforward to integrate into our own wallet software. All that was missing was to put the pieces together into a finished product.Â
Thanks to the collaborative open source effort of the Payjoin Dev Kit team, Let There Be Lightning team and the Bull Bitcoin team, the Bull Bitcoin wallet has now become the first commercially available end-user mobile wallet on the Google Play store to implement the BIP 77 Payjoin V2 protocol.
Moreover, the Bull Bitcoin wallet has also implemented asynchronous Payjoin payments, which means that a Payjoin transaction can be “paused” until the receiver or the sender come back online. This way, the receiver's mobile phone can be “turned off” when the sender makes the payment. As soon as the recipient’s phone is turned back on, the Payjoin session will resume and the recipient will receive the payment. This is a major breakthrough in the mobile Payjoin user experience.
Download the wallet here
We would like to thank the Human Rights Foundation for allocating a generous bounty for the development of a Serverless Payjoin protocol and its implementation in a mobile Bitcoin wallet, as well as OpenSats and Spiral for supporting the work of Payjoin Dev Kit, which made this all possible.Â
Why does this matter?
Payjoin, also known as Pay-to-endpoint, is a protocol which allows the Bitcoin wallet of a payments receiver and the Bitcoin wallet a payments sender to communicate with each other for the purpose of collaborating on creating a Bitcoin transaction.Â
I first heard about Payjoin (then called Pay-to-endpoint) in 2018 and it completely blew my mind. What I liked most about it was that it was not a protocol change to Bitcoin, but rather it was an application-layer protocol that allows wallets to communicate in order to create smarter and more efficient Bitcoin transactions.
Whereas in a normal Bitcoin payment the transaction is created by the sender, and all the inputs of that transaction belong to the sender, in a Payjoin payment both the sender and the receiver contribute coins as inputs.
In the Bitcoin whitepaper, Satoshi wrote:
some linking is still unavoidable with multi-input transactions, which necessarily reveal that their inputs were owned by the same owner.
With Payjoin, this assumption is no longer true. With Payjoin, we have fixed one of Bitcoin’s most fundamental privacy problems... without changing the Bitcoin protocol!
In a Payjoin transaction, the output amounts visible on the blockchain does not necessarily reflect the value of the payment that was actually exchanged. In other words, you can’t easily tell how much money one wallet sent to the other. This is great for users that are concerned a malicious third party may be attempting to obtain sensitive information about their finances without their consent. This does not however pose an accounting problem for the Bitcoin wallets involved in that transaction: since both wallets are aware of which coins they used as inputs and outputs, they are independently able to calculate the "actual" value of the payment that was sent even if the payment on the blockchain appears to be a of a different amount.
Payjoin breaks the common input ownership heuristic, an assumption used by hackers and fraudsters to track ownership of addresses on the blockchain. The neat thing about this property of Payjoin is that it benefits everyone on the network, not just the Payjoin users themselves.
It allows the receiver of a payment to opportunistically consolidate his utxos when he is receiving funds, in a way which does not necessarily appear to be a consolidation transaction on the blockchain. Depending on the configuration of a payment transaction, it can also make a regular payment look like a consolidation. Â
In addition to these benefits, the introduction of collaborative peer-to-peer transaction protocols opens up exciting opportunities for the creation of Lightning Network channels, as well as efficiencies for transaction batching.Â
How to use Payjoin in the Bull Bitcoin walletÂ
It’s so seamless, you may not even realize you are using it!
To receive via Payjoin, simply navigate to the “Receive tab” using the network “Bitcoin” and you will see a Payjoin invoice. When you want to get paid, send this invoice to the payer, or show them the QR code. If the sender’s wallet is compatible with Payjoin, it will be up to the sender to decide whether or not they want to use Payjoin.Â
To send via Payjoin, simply paste the receiver's Payjoin invoice, or scan the associated QR code, in the Bull Bitcoin wallet. If you decide that you don’t want to pay with Payjoin, simply turn off the Payjoin toggle.Â
Acknowledgements
- Dan Gould, author of BIP77 and leader of the Payjoin Dev Kit project, developer of Rust-Payjoin.
- Spacebear, contributor to Rust-Payjoin.
- BitcoinZavior and Kumulynja from Let There Be Lightning, developers of Payjoin-Flutter.
- The Bull Bitcoin wallet team 🧡: Jules, Ishi and Morteza
- OpenSats and Spiral, supporters of the Payjoin Dev Kit
- Human Rights Foundation, supporters of Payjoin via their bounty program
- The early Pay-to-Endpoint wizards Adam Fiscor, Adam Back, Adam Gibson, Matthew Haywood, Nicolas Dorier, Kukks... and many others
Payjoin ressources
- Payjoin.org
- Pay-to-endpoint original description
- BIP78 (Payjoin V1)
- BIP77 (Payjoin V2)
- Payjoin Dev Kit
- Bitcoin Optech
- Bull Bitcoin Wallet
Related Posts
Learn more from the following articles
5 mins
11 days ago
BULL - the Perfect Bitcoin Wallet
They said it was an impossible dream. They told me I shouldn’t create a Bitcoin wallet that satisfies the requirements of cypherpunk Bitcoin experts, but that’s also ideal for onboarding newbies that have no idea what Bitcoin is. That I should either pick one or the other. And they were all wrong.
CEO
3 mins
about 1 month ago
Guide to Buying Bitcoin in Costa Rica
Buying Bitcoin in Costa Rica is simple with Bull Bitcoin and the Bitcoin Jungle app. Sign up in minutes with your email and SINPE Móvil or bank account. Choose between two options: direct purchase, where you send colones or dollars and receive sats in 20 seconds; or balance top-up, which lets you buy whenever you want with limit orders or automatic purchases. Fast, secure, and sovereign—that’s how Bitcoin is acquired in Costa Rica.
King in the Jungle
2 mins
about 1 month ago
The easiest way to increase your daily limits in Costa Rica
If you enjoy the services we offer and want your selling limits to increase, the best way to achieve this is by supporting us with something very simple: promoting the discounted purchase of Bitcoin among your contacts. The best part? You can get rewarded for this!
King in the Jungle