In this tutorial we're going to cover how to do a Fiat to Monero trade from the brand new (and long awaited!) Haveno Decentralised Exchange, using the Face-to-Face (F2F) payment method.
Sidenote: i don't recommend face-to-face as a payment option of choice, this is just to try out how a basic trade Haveno DEX works!
Before reading through this tutorial, make sure you understand why Decentralised Exchanges are the next step in Decentralised Finances in this blogpost i previously made, so that you have all the context.
As we are covering a DEX (Decentralised Exchange), it means we are not covering how to use a website onto which you are purchasing monero (like the now defunct Localmonero (RIP)), we are covering a software that you install on your computer (hence the Decentralisation in "DEX"), to trade Peer to Peer (P2P) with the other users.
The resilliency of Haveno is on multiple levels: First of all the more Seed nodes there are, the harder to take down the Haveno network is. The anonymity provided by the Tor network of Haveno for all nodes (which is on by default), also adds up to the resiliency.
Clientside, the more peers (users) there are, the more diverse and bigger the exchange will be, and so will the decentralised market be at large. The sooner the Monero market moves to Decentralised Exchanges, the more unstoppable it will become.
Lastly if the Haveno network is completely taken down (let's say if all the seed nodes are taken down somehow), all that's left is for another administrator to spin up a new haveno network since the code is all open source, to repeat the cycle again.
You can check out my quick coverage of Haveno DEX on Monero Topia here. (Definitely check out MoneroTopia for the latest news in the Monero world, awesome show!)
DISCLAIMER: THERE ARE NO OFFICIAL HAVENO NETWORK INSTANCES, THERE ARE ONLY THIRD PARTY HAVENO NETWORKS LIKE HAVENO RETO.
IF YOU SEE A HAVENO CLAIM TO BE THE OFFICIAL NETWORK LIKE THIS ONE, DONT FALL FOR THEIR SCAM!
You can check out the Reto team over at their official website at https://haveno-reto.com
Hardware : (Personal Computer / Laptop)
Host OS: Linux
Hypervisor: libvirtd QEMU/KVM
I recommend using this setup into one of the above mentionned VMs, either for Private use, or Anonymous use, as per the 4 basic OPSEC levels. (Note that Deanonymization will happen during the Fiat transaction, but it is minimized as you're revealing your identity to an other peer, rather than to a centralised exchange)
First, we need to find a Haveno Network, Haveno Reto being one of the first ones to show up, we're going to try them out:
Let's get the Haveno binaries from Reto's github repository, (which was forked from the original Haveno repository, maintained by Woodser)
Here, we are on a debian machine, so we download the "haveno_amd64_deb-latest.zip" package (which contains the .deb file)
Then unpack the zipfile wherever you want:
[ mainpc ] [ /dev/pts/5 ] [~]
→ apt install unzip -y
[ mainpc ] [ /dev/pts/17 ] [~/.mullvad-browser/Downloads]
→ ls
haveno_amd64_deb-latest.zip
[ mainpc ] [ /dev/pts/17 ] [~/.mullvad-browser/Downloads]
→ unzip haveno_amd64_deb-latest.zip
Archive: haveno_amd64_deb-latest.zip
inflating: haveno_1.0.11-1_amd64.deb
[ mainpc ] [ /dev/pts/17 ] [~/.mullvad-browser/Downloads]
→ sudo dpkg -i haveno_1.0.11-1_amd64.deb
[sudo] password for nihilist:
(Reading database ... 226388 files and directories currently installed.)
Preparing to unpack haveno_1.0.11-1_amd64.deb ...
Unpacking haveno (1.0.11-1) over (1.0.10-1) ...
Setting up haveno (1.0.11-1) ...
#if it fails, run "apt install -f" to install the missing dependencies and then dpkg -i haveno.deb again.
Haveno then creates dotfiles in ~/.local/share/Haveno-reto containing your wallet infos, along with the .onion data. You shouldn't need to remove that folder accross haveno updates, unless if instructed to do so by the developers or the network owners themselves.
[ mainpc ] [ /dev/pts/17 ] [.local/share/Haveno-reto]
→ ls -lash ~/.local/share/Haveno-reto
total 74M
4.0K drwxr-xr-x 3 nihilist nihilist 4.0K Aug 4 10:04 .
4.0K drwx------ 26 nihilist nihilist 4.0K Oct 6 09:32 ..
11M -rw-r--r-- 1 nihilist nihilist 11M Aug 4 09:57 haveno_1.log
3.1M -rw-r--r-- 1 nihilist nihilist 3.1M Oct 4 21:06 haveno.log
4.0K -rw-r--r-- 1 nihilist nihilist 56 Oct 2 19:35 haveno.properties
25M -rwxr--r-- 1 nihilist nihilist 25M Jul 9 21:17 monerod
30M -rwxr--r-- 1 nihilist nihilist 30M Jul 9 21:17 monero-wallet-rpc
6.3M -rw------- 1 nihilist nihilist 6.3M Oct 4 21:06 monero-wallet-rpc.log
4.0K -rw-r--r-- 1 nihilist nihilist 6 Oct 2 19:34 version
4.0K drwxr-xr-x 6 nihilist nihilist 4.0K May 20 18:21 xmr_mainnet
if you want to see the haveno logs from the CLI as you use it, you can do as follows:
[ mainpc ] [ /dev/pts/6 ] [.local/share/Haveno-reto]
→ tail -f haveno.log
May-29 20:55:23.829 [pool-16-thread-5] INFO h.c.t.TaskRunner: Run task: SendOfferAvailabilityRequest
May-29 20:55:23.830 [pool-16-thread-5] INFO h.c.o.a.t.SendOfferAvailabilityRequest: Send OfferAvailabilityRequest with offerId mqbtqDh-1ec9fa64-e5e7-4766-9936-519951bc5f36-106 and uid d85caa9c-840c-45eb-8642-4cb12828fc93 to peer rlrsc6nfqbvqhly3qjcb36qzvw44xnxqhcht3nqndy324ewg4dut4iqd.onion:9999
May-29 20:55:23.930 [JavaFX Application Thread] INFO h.c.o.a.t.SendOfferAvailabilityRequest: OfferAvailabilityRequest arrived at peer: offerId=mqbtqDh-1ec9fa64-e5e7-4766-9936-519951bc5f36-106; uid=d85caa9c-840c-45eb-8642-4cb12828fc93
May-29 20:55:25.292 [JavaFX Application Thread] INFO h.d.c.c.c.PopOver: hide:200.0 ms
May-29 20:55:25.903 [pool-48-thread-1] INFO h.c.o.a.OfferAvailabilityProtocol: Received OfferAvailabilityResponse from rlrsc6nfqbvqhly3qjcb36qzvw44xnxqhcht3nqndy324ewg4dut4iqd.onion:9999 with offerId mqbtqDh-1ec9fa64-e5e7-4766-9936-519951bc5f36-106 and uid 986ee04a-47d2-4303-a9fc-12d18cc158ce
May-29 20:55:25.905 [pool-48-thread-1] INFO h.c.t.TaskRunner: Run task: ProcessOfferAvailabilityResponse
May-29 20:55:25.905 [pool-48-thread-1] INFO h.c.o.a.OfferAvailabilityProtocol: Send AckMessage for OfferAvailabilityResponse to peer rlrsc6nfqbvqhly3qjcb36qzvw44xnxqhcht3nqndy324ewg4dut4iqd.onion:9999 with offerId mqbtqDh-1ec9fa64-e5e7-4766-9936-519951bc5f36-106 and sourceUid 986ee04a-47d2-4303-a9fc-12d18cc158ce
May-29 20:55:25.907 [JavaFX Application Thread] INFO h.c.o.a.OfferAvailabilityProtocol: AckMessage for OfferAvailabilityResponse arrived at makersNodeAddress rlrsc6nfqbvqhly3qjcb36qzvw44xnxqhcht3nqndy324ewg4dut4iqd.onion:9999. offerId=mqbtqDh-1ec9fa64-e5e7-4766-9936-519951bc5f36-106, sourceUid=986ee04a-47d2-4303-a9fc-12d18cc158ce
May-29 20:55:26.108 [pool-48-thread-1] INFO h.c.o.OpenOfferManager: Received AckMessage for OfferAvailabilityRequest with offerId mqbtqDh-1ec9fa64-e5e7-4766-9936-519951bc5f36-106 and uid d85caa9c-840c-45eb-8642-4cb12828fc93
May-29 20:55:27.427 [JavaFX Application Thread] INFO h.d.c.c.c.PopOver: hide:200.0 ms
next just launch Haveno as it should have been added to your system:
Next, haveno is going to connect to Tor. WHONIX USERS: If it is facing issues connecting wait for the client to ask you to set the tor settings:
then just get a torbridge from torproject.org:
and add them inside haveno, and restart it:
Then it should connect just fine:
you may need to wait a bit for your haveno node to sync up initially: (probably 1-2 minutes)
and once it finishes synchronising, you're in Haveno!
You can either extract the .rpm (which is originally intended for Fedora users) package and run the haveno binary yourself, or use the AUR package maintained by duje
If you are a windows user (know that it cant be trusted as it's not an open source operating system, check out my tutorial here on how to install linux instead), if you're too lazy you can check out darknetreporter's tutorial:
If you want to have a TailsOS VM running, check out my latest tutorial on it here.
Then make sure you have the admin password enabled:
Then make sure you have the persistant storage enabled, with the dotfiles enabled:
Then, to install it at the current latest version (as of the 6th of october 2024, version 0.) you need to run the following command:
amnesia@amnesia:~$ curl --socks5-hostname socks5://127.0.0.1:9050 -fsSLO https://github.com/haveno-dex/haveno/raw/master/scripts/install_tails/haveno-install.sh && bash haveno-install.sh "https://github.com/retoaccess1/haveno-reto/releases/latest/download/haveno_amd64_deb-latest.zip" "DAA2 4D87 8B8D 36C9 0120 A897 CA02 DAC1 2DAE 2D0F"
Installing dependencies ...
[sudo] password for amnesia:
[...]
137 packages can be upgraded. Run 'apt list --upgradable' to see them.
[sudo] password for amnesia:
[...]
Let it run, it may take 10 minutes to install depending on the tor connection speeds.
Creating desktop menu icon ...
Downloading Haveno from URL provided ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 266M 100 266M 0 0 442k 0 0:10:17 0:10:17 --:--:-- 522k^[[A
Downloading Haveno signature ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 119 100 119 0 0 37 0 0:00:03 0:00:03 --:--:-- 69
Downloading signing GPG key ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 668 100 668 0 0 912 0 --:--:-- --:--:-- --:--:-- 912
Importing the GPG key ...
gpg: key 0xCA02DAC12DAE2D0F: public key "reto" imported
gpg: Total number processed: 1
gpg: imported: 1
Verifying the signature of the downloaded file ...
Archive: haveno_amd64_deb-latest.zip
inflating: haveno_1.0.11-1_amd64.deb
Haveno binaries have been successfully verified.
Files moved to persistent directory /home/amnesia/Persistent/haveno/Install
Haveno installation setup completed successfully.
First step is to setup your account for Face to Face Trades:
Here we specify that we want to do face to face trades in Berlin (Germany) as an example, we will use our FIAT currency, Euros (in cash), you can also specify alternative ways to get contacted if you don't like the built in chat in Haveno DEX, such as email or phone number, etc. Then hit the "save new account" button:
Make sure you read carefully what a face-to-face fiat->XMR trade is, and what are it's risks, if you're fine with it, click "i understand". Now that your account is created, head over to the "Buy" section, as you want to buy monero:
Then you can publish a Fiat->XMR face to face trade offer like so:
So here we want to purchase 0.10 XMR, for the current market price, which amounts to 12 euros. then hit next step:
Now here is when we get introduced to the trade protocol's security deposit system as detailed in the Haveno FAQ. I'll make a simple diagram to explain the situation:
Quote from Haveno's FAQ: (https://haveno.exchange/faq/#what-are-the-differences-in-the-trade-protocol)
[...]
Bisq recently adopted a protocol based on 2/2 multisig, while Haveno will use their previous protocol: 2/3 multisignature. In a 2/3 multisignature trade, each trader owns one key; this key will be paired with the key of the other trader and will be used to unlock funds and deposits. It’s a 2 of 3 (2/3) protocol because you need only two out of three keys to move funds from the multisignature wallet.
If everything goes fine, the two traders will use their keys to complete the transfer process. If something goes wrong, one of the two parties won’t use their key to complete the transaction, and this is where the arbitrator comes to action.
Arbitrators are inherited from Bisq’s 2/3 protocol. They are a trusted role and have the duty of releasing the funds to one of the two parties in case of a conflict. To do so, they use the third key of the 2/3 multisig protocol.
[...]
To make it short, you (Bob) in this case, want to trade Fiat, for Alice's XMR, in person. BOTH you and Alice need to put in some monero into the trade, as a security deposit. That is so in case if you try to scam Alice, you will loose something in the process, preventing you from trying to repeatedly scam people, and vice versa.
Sidenote: if you want to get your first monero and you don't have any crypto / fiat to start with, check out the "earn XMR" section in xmrbazaar.com. For example, i offer monero to whoever contributes new blogposts to the OPSEC section of my blog in this offer here.
Due to the 2/3 multisig nature of the trade, there needs to be at least 2 agreeing parties to complete the trade. If all goes well, you and Alice agree on the trade, and the security deposit monero is released. If not, the Arbitrator will step in to punish the wrongdoer (by not giving him the security deposit back), and give the security deposit to the honest party.
The following example will cover a successful trade between you and Alice. If you want to see a trade dispute, check out this tutorial.
So here, you need to send the security deposit to be able to post your buying offer, just send it from your monero wallet like so:
Once you've sent the monero to your haveno trade for the security deposit, you need to wait approx 20 minutes for the transaction to be confirmed by the network
Approx 20 mins later, the trade shows up as enabled:
Bob: puts 0.1005 XMR into the trade for the security deposit,You (and the other haveno peers) can see it from the Sell tab:
Here you just need to wait for someone to accept the trade. Once they do, they will need to send their share of the security deposit too just like we previously did. Once they do it will show up on your end as an initiated trade:
Alice puts 0.1005 XMR into the trade for the security deposit. Then the trade is securedSame as before, you need to wait for the security deposit to be validated by the network (approx 20 mins again). In the meantime you can chat with the trader by clicking the "Open Trader Chat" button.
Once the security deposit has been validated by the network for the other party, you will get a notification that the trade can begin:
Next step is for you to go and give the 12 Euros to Alice, and once you do, you confirm that the Payment has been sent like so:
Then, you wait for Alice to confirm that she has recieved the 12 Euros (it will show up as "Peer confirmed message receipt"):
Alice can then send the 0.10 XMR to Bob, after Bob Pays her in Euros.Then here, you just wait for the Monero to arrive in your Haveno monero wallet, it will first show up as Pending on the top right corner:
Wait another 20 minutes for the transaction to be validated by the network, and it will show up in your Haveno monero wallet as Available balance:
The trade is successful, the security deposit is now released, Bob gets his 0.1005 XMR back, and Alice too. (minus the transcation fees and arbitrator fees)And that's it, you can now pop the Champagne as you completed your first Fiat -> XMR transaction on a Decentralised exchange! 🥂
Now all that's left is to withdraw your monero from your Haveno monero wallet to your other Monero Wallet:
Head over to Funds > send funds, tick the "Amounts includes mining fee" option, and select the amount of monero you want to withdraw, in this case i'm withdrawing all of it.
Then confirm that you want to withdraw the funds, and check your monero wallet for the incoming transaction:
And that's it! you just withdrew your funds to your other monero wallet!
Check out my other tutorials on Decentralised Finances below:
Until there is Nothing left.
Creative Commons Zero: No Rights Reserved
Donate XMR: 8AUYjhQeG3D5aodJDtqG499N5jXXM71gYKD8LgSsFB9BUV1o7muLv3DXHoydRTK4SZaaUBq4EAUqpZHLrX2VZLH71Jrd9k8
Contact: nihilist@contact.nowhere.moe (PGP)