{"id":10190,"date":"2022-04-08T15:05:05","date_gmt":"2022-04-08T15:05:05","guid":{"rendered":"http:\/\/ci029e26b8500026ec"},"modified":"2022-04-08T15:05:05","modified_gmt":"2022-04-08T15:05:05","slug":"coinjoin-coinswap-enable-bitcoin-privacy","status":"publish","type":"post","link":"https:\/\/bitcoinmagazine.com\/technical\/coinjoin-coinswap-enable-bitcoin-privacy","title":{"rendered":"How CoinJoin, CoinSwap Enable Basic Bitcoin Privacy"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p>Four prominent software developers joined an on-stage chat at the Bitcoin 2022 conference to explain and discuss <a href=\"https:\/\/en.bitcoin.it\/wiki\/CoinJoin\" target=\"_blank\" rel=\"noopener\">CoinJoin<\/a> and <a href=\"https:\/\/en.bitcoin.it\/wiki\/CoinSwap\" target=\"_blank\" rel=\"noopener\">CoinSwap<\/a>, two kinds of collaborative Bitcoin transactions that seek to increase the privacy of the involved parties.<\/p>\n<p>\u201cThe most important thing is to use the tools and encourage others, explain to them,\u201d said lead developer of Sparrow Wallet Craig Raw. \u201cNormalize CoinJoin and CoinSwap because they are really for privacy. If you believe that [privacy] is a basic human right, why should we be ashamed of that?\u201d<\/p>\n<p>In addition to <a href=\"https:\/\/twitter.com\/craigraw\" target=\"_blank\" rel=\"noopener\">Raw<\/a>, lead developer of Fully Noded <a href=\"https:\/\/twitter.com\/Fonta1n3\" target=\"_blank\" rel=\"noopener\">Fontaine<\/a>, Suredbits developer and The Bitcoin Company co-founder <a href=\"https:\/\/twitter.com\/benthecarman\" target=\"_blank\" rel=\"noopener\">Ben Carman<\/a>, and CommerceBlock CEO <a href=\"https:\/\/twitter.com\/gregory_nico\" target=\"_blank\" rel=\"noopener\">Nicholas Gregory<\/a> also participated in the panel.<\/p>\n<p>Even though a CoinJoin can\u2019t remove the \u201cpast trail\u201d of the bitcoin funds being CoinJoined, the collaborative transaction enables the break of assumptions, known in chain analysis as &#8220;heuristics,&#8221; that keen observers often leverage to track and de-anonymize otherwise pseudonymous transactions.<\/p>\n<p>Similar to a CoinJoin, a CoinSwap also sets out to break on-chain ownership heuristics through a joint transaction. However, the latter differs in the way that the transaction is constructed. While a CoinJoin usually requires people to build a regular Bitcoin transaction together, a CoinSwap leverages <a href=\"https:\/\/en.bitcoin.it\/wiki\/Contract\" target=\"_blank\" rel=\"noopener\">smart contracts<\/a> to effectively swap the exact same amount of bitcoin between two people. The smart contract guarantees that either party doesn\u2019t cheat.<\/p>\n<p>\u201cThe issue that we&#8217;re trying to address is the fundamental issue that bitcoin is not fungible at the protocol layer, so we have to address that in the application layer,\u201d Raw said.<\/p>\n<p>Out of the two techniques, CoinJoin has gained more popularity over the years. <a href=\"https:\/\/bitcoin.stackexchange.com\/questions\/103668\/coinjoin-implementations\" target=\"_blank\" rel=\"noopener\">JoinMarket, Samourai and Wasabi<\/a> all have their own implementations of a CoinJoin, and each caters to different users. While JoinMarket is <em>fully<\/em> decentralized, Samourai and Wasabi leverage a centrally-coordinated CoinJoin implementation known as ZeroLink.<\/p>\n<p>&#8220;A coordinator just takes the inputs and organizes them,&#8221; Raw said. &#8220;There is no custody of funds, we are talking about taking a bit or data and reorganizing it.&#8221;<\/p>\n<p>CoinSwap, on the other hand, was until recently solely an area of research. In February, <a href=\"https:\/\/www.mercurywallet.com\/\" target=\"_blank\" rel=\"noopener\">Mercury Wallet<\/a> became the first CoinSwap implementation to be deployed. The wallet, of which CommerceBlock is behind, implements a novel layer on top of Bitcoin based on the concept of statechains to enable users to quickly transfer full custody of an amount of BTC to anyone with increased privacy and without paying miner fees.<\/p>\n<p>\u201cA statechain is a Bitcoin Layer 2 that \u2026 is a way for transferring your UTXOs off chain. We swap the coins and private keys in a non-custodial way. There is no on-chain taint as CoinJoin has,\u201d Gregory said, adding that there is a risk that you end up with an undesirable coin, for example from a known hack.<\/p>\n<p>\u201cBut you can attest that you participated in a CoinSwap,\u201d he added, as a way to prove you were not behind that past coin history.<\/p>\n<p>While many people still believe that Bitcoin enables anonymous transactions, truth is the novel peer-to-peer (P2P) digital currency is arguably more transparent than the traditional financial system where banks and corporations maintain a record of transactions and citizens can leverage cash to undergo private transactions that are only known to their counterparts.<\/p>\n<p>At the bare minimum, techniques like CoinJoin and CoinSwap enable bitcoin funds to reach the level of privacy the regular citizen is accustomed to in their daily U.S. dollar transactions, because both tools can bring forward-looking privacy even if the user had to provide personal information when they purchased that bitcoin.<\/p>\n<p>\u201cWhat we are asking for here is not strange, it is a normal thing,\u201d Raw said.<\/p>\n<p><em>Bitcoin 2022 is part of the Bitcoin Event Series hosted by BTC Inc, the parent company of <\/em>Bitcoin Magazine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A cohort of developers discussed CoinJoin and CoinSwap on stage during the Bitcoin 2022 conference to highlight the main characteristics of these Bitcoin privacy tools.<\/p>\n","protected":false},"author":2572,"featured_media":5744,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[2016,291,2218,93,73,303,2277],"class_list":{"0":"post-10190","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-technical","8":"tag-bitcoin-2022","9":"tag-coinjoin","10":"tag-coinswap","11":"tag-news","13":"tag-sparrow-wallet","14":"tag-suredbits"},"author_data":{"id":2572,"name":"Namcios","nicename":"namcios","avatar_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/12\/pfp-96x96.png"},"featured_image_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/knapsack-and-unequal-coinjoin-transaction-amounts.jpg","_links":{"self":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/10190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/users\/2572"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/comments?post=10190"}],"version-history":[{"count":0,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/10190\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media\/5744"}],"wp:attachment":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media?parent=10190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/categories?post=10190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/tags?post=10190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}