diyhosting/openalias.html

124 lines
5.9 KiB
HTML

<!DOCTYPE html>
<html lang=en>
<head>
<title>Open Alias &ndash; LandChad.net</title>
<meta charset="utf-8"/>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel='stylesheet' type='text/css' href='style.css'>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel='alternate' type='application/rss+xml' title='Land Chad RSS' href='/rss.xml'>
</head>
<body>
<header><h1>Open Alias</h1></header>
<nav></nav>
<main>
<h2>The Problem</h2>
<p>
Cryptocurrency can be unintuitive.
After all, look at this annoying Monero address of ours:
</p>
<ul>
<li><code class=crypto>84RXmrsE7ffCe1ADprxLMHRpmyhZuWYScDR4YghE8pFRFSyLtiZFYwD6EPijVzD3aZiEpg57MfHEr1pGJNPXyJgENMnWrSh</code></p>
</ul>
<p>
It breaks up pages and looks ugly. When you copy and paste it to send money, you might be paranoid that you somehow added an extra character in there.
That's all around a bad user experience.
</p>
<h3>It would be nice...</h3>
<p>
It would be nice if we could just input someone's email address or maybe a website and send Bitcoin or Monero to that instead.
So instead of that long jumble, it would be easier to just type in someone's website or email and sending them money that way.
</p>
<h2>The Solution</h2>
<p>The <a href="https://openalias.org/">OpenAlias</a> standards are just that.
It uses <a href="dns.html">DNS</a> settings, which you know something about, to link a website or an email address with a cryptocurrency address.
It allows someone to simply put <code>landchad.net</code> or <code>chad@landchad.net</code> as a payment recipient and that will direct to that long address above.
</p>
<p>
The default Monero wallet and Bitcoin's Electrum are already compatible with OpenAlias, as are a growing group of wallet software.
</p>
<h2>Let's do it.</h2>
<p>
Open up your domain registar (<a href="https://www.epik.com/?affid=we2ro7sa6">Epik</a>, if you have religiously followed our tutorials) and open up your DNS settings for the website you would like to add.
</p>
<p>
Open the <strong>TXT record</strong> section.
Now, create an entry with text like that below:
</p>
<pre><code>oa1:xmr recipient_address=<strong>84RXmrsE7ffCe1ADprxLMHRpmyhZuWYScDR4YghE8pFRFSyLtiZFYwD6EPijVzD3aZiEpg57MfHEr1pGJNPXyJgENMnWrSh</strong>; recipient_name=<strong>LandChad.net</strong>;</code></pre>
<p>Obviously change the address to your desired address and you may also give a proper name for yourself (this may be multiple words).
Note that the entry above is <strong>all one line</strong>.
</p>
<p>
Now create a new TXT entry and input this text into the <strong>TXT Value</strong> input box.
Note here that I have create two entries:
</p>
<a href=pix/openalias-01.png><img src="pix/openalias-01.png" alt="openalias"></a>
<p>
One entry's "Host" is left empty, this will allow people to send Monero by merely typing <code>landchad.net</code>.
</p>
<p>
The second entry has "chad" as the "Host"; this will allow people to send money to <code>chad@landchad.net</code>, i.e.
this is how you allow people to connect a Monero address with an email address.
</p>
<h3>Checking to see if it works...</h3>
<p>
Let's check to see if it works.
In the Monero wallet, we can now type in <code>landchad.net</code> as a recipient:
</p>
<a href=pix/openalias-02.png><img src="pix/openalias-02.png" alt="checking"></a>
<p>
And once we press the "Resolve" button, it automatically turns into that address we gave to the DNS!
</p>
<a href=pix/openalias-03.png><img src="pix/openalias-03.png" alt="It works!"></a>
<p>
Now people can donate Monero to you without having to worry about QR codes or copying-and-pasting super-long public addresses!
</p>
<h3>Now with Bitcoin!</h3>
<p>
OpenAlias was originally developed for Monero, but since it's such a good idea, Bitcoin wallets have implemented it as well, so let's add some TXT entries for Bitcoin.
The OpenAlias TXT records have the same format, except for the <strong>xmr</strong> at the beginning is replaced with <strong>btc</strong> and obviously we use a Bitcoin address instead of Monero.
</p>
<pre><code>oa1:<strong>btc</strong> recipient_address=<strong>bc1q9f3tmkhnxj8gduytdktlcw8yrnx3g028nzzsc5</strong>; recipient_name=<strong>LandChad.net</strong>;</code></pre>
<p>Add the TXT entries in and save:</p>
<a href=pix/openalias-04.png><img src="pix/openalias-04.png" alt="bitcoin openalias entries"></a>
<p>And we can then check that it's working by trying to send money to <code>landchad.net</code> in Electrum.
See that it automatically appends the address!
</p>
<a href=pix/openalias-05.png><img src="pix/openalias-05.png" alt="electrum resolves an openalias"></a>
<p>
And that's it. Now users can easily send your website or email address Bitcoin or Monero without having to worry about hard to read addresses and QR codes.
</p>
</main>
<footer><a href="https://landchad.net">LandChad.net</a></br>Because Everyone should be an Internet LandChad.</br><a href="index.html"><li><img src="pix/chad.gif" alt="chad"></li></a><a href="rss.xml"><li><img src="pix/rss.svg" alt="RSS"></li></a><a href="pix/btc.png"><li><img src="pix/btc.svg" alt="BTC"></li></a><a href="pix/xmr.png"><li><img src="pix/xmr.svg" alt="XMR"></li></a><a href="https://github.com/lukesmithxyz/landchad"><li><img src="pix/git.svg" alt="Github"></li></a></footer>
</body>
</html>