add silent payments support

This commit is contained in:
pluja 2024-06-22 13:17:07 +02:00
parent bd54d57506
commit afb5cd9e3c
No known key found for this signature in database
4 changed files with 154 additions and 199 deletions

View File

@ -10,9 +10,10 @@ type Config struct {
}
type Donations struct {
Xmr string
Btc string
Lnn string
Xmr string
Btc string
BtcSilent string
Lnn string
}
var Conf Config

View File

@ -78,11 +78,9 @@
}
</style>
<div id="main" class="flex flex-col justify-center items-center">
<div class="p-4 w-full max-w-4xl">
<div
class="space-x-1 text-xs font-bold text-center text-lime-500 lowercase md:text-sm font-samo"
>
<div id="main" class="flex flex-col items-center justify-center">
<div class="w-full max-w-4xl p-4">
<div class="space-x-1 text-xs font-bold text-center lowercase text-lime-500 md:text-sm font-samo">
<a href="#why">Why</a>
·
<a href="#what">What</a>
@ -128,8 +126,10 @@
</p>
<p>
With KYCNOT.ME, I hope to provide people with trustworthy alternatives for buying, exchanging, trading, and using cryptocurrencies
without having to disclose their identity, thus preserving the right to privacy. I want to help preserve the original
With KYCNOT.ME, I hope to provide people with trustworthy alternatives for buying, exchanging, trading, and
using cryptocurrencies
without having to disclose their identity, thus preserving the right to privacy. I want to help preserve the
original
ethos of cryptocurrencies.
</p>
</div>
@ -150,28 +150,24 @@
criminals know perfectly how to avoid such policies. In fact, they
normally use the FIAT system and don't even need to use
cryptocurrencies. Banks are the biggest money launders, the
<a
rel="noreferrer"
href="https://www.reuters.com/business/hsbc-fined-85-mln-anti-money-laundering-failings-2021-12-17/"
>HSBC scandal</a
>,
<a
rel="noreferrer"
href="https://www.reuters.com/article/us-nordea-bnk-moneylaundering-idUSKCN1QL11S"
>Nordea</a
>
<a rel="noreferrer"
href="https://www.reuters.com/business/hsbc-fined-85-mln-anti-money-laundering-failings-2021-12-17/">HSBC
scandal</a>,
<a rel="noreferrer"
href="https://www.reuters.com/article/us-nordea-bnk-moneylaundering-idUSKCN1QL11S">Nordea</a>
or
<a
rel="noreferrer"
href="https://www.reuters.com/article/us-europe-moneylaundering-swedbank/swedbank-hit-with-record-386-million-fine-over-baltic-money-laundering-breaches-idUSKBN2163LU"
>Swedbank</a
>
<a rel="noreferrer"
href="https://www.reuters.com/article/us-europe-moneylaundering-swedbank/swedbank-hit-with-record-386-million-fine-over-baltic-money-laundering-breaches-idUSKBN2163LU">Swedbank</a>
are just some examples.
</p>
<p>
Chainalysis found that only 0.34% of the transaction volume with cryptocurrencies in 2023 was attributable to criminal
activity. Bitcoin's share of this is significantly lower with 25%. Illicit transactions with Euros accounted for 1% of
the EU's GDP or €110 billion in 2010. <a href="https://www.chainalysis.com/blog/2024-crypto-crime-report-introduction/">[1]</a> <a href="https://transparency.eu/priority/financial-flows-crime/">[2]</a>
Chainalysis found that only 0.34% of the transaction volume with cryptocurrencies in 2023 was attributable to
criminal
activity. Bitcoin's share of this is significantly lower with 25%. Illicit transactions with Euros accounted
for 1% of
the EU's GDP or €110 billion in 2010. <a
href="https://www.chainalysis.com/blog/2024-crypto-crime-report-introduction/">[1]</a> <a
href="https://transparency.eu/priority/financial-flows-crime/">[2]</a>
</p>
<p>
KYC only affects small individuals like you and me. It is an annoying
@ -194,7 +190,7 @@
<h2 id="btcxmr">why only Bitcoin and Monero?</h2>
<p>
<strong>Bitcoin</strong>: it's the initial spark of the decentralized money.
A solid project with a strong community. It is the most well-known and widespread cryptocurrency.
A solid project with a strong community. It is the most well-known and widespread cryptocurrency.
</p>
<p>
<strong>Monero</strong>: if digital cash was to exist, it should be like
@ -212,7 +208,8 @@
<h3 id="request">request</h3>
<p>
You can request a new listing by visiting the
<a href="/request/service">Request</a> page. The request form requires javascript to avoid spam. <a href="#javascript">Read more about the PoW captcha in this section.</a>.
<a href="/request/service">Request</a> page. The request form requires javascript to avoid spam. <a
href="#javascript">Read more about the PoW captcha in this section.</a>.
</p>
<h3 id="listing-process">listing process</h3>
@ -288,10 +285,14 @@
still get a high score.
</p>
<p>The scoring algorithm is <a target="_blank" href="https://codeberg.org/pluja/kycnot.me/src/branch/main/src/utils/score.go">open source</a>,
pull requests to improve it are welcome.
It runs once every hour, meaning scores cannot be manually modified since they will be recalculated by the algorithm hourly. You can visit
<a href="https://kycnot.me/api/v1/service/localmonero/summary">a service's score breakdown</a> to see how it is calculated.</p>
<p>The scoring algorithm is <a target="_blank"
href="https://codeberg.org/pluja/kycnot.me/src/branch/main/src/utils/score.go">open source</a>,
pull requests to improve it are welcome.
It runs once every hour, meaning scores cannot be manually modified since they will be recalculated by the
algorithm hourly. You can visit
<a href="https://kycnot.me/api/v1/service/localmonero/summary">a service's score breakdown</a> to see how it is
calculated.
</p>
<h3 id="order">order</h3>
@ -341,7 +342,9 @@
<h2 id="tos">terms of service auto-reviews</h2>
<p>
KYCnot.me features an AI-powered tool that automatically reviews Terms of Service (ToS) for all the different services. It breaks down the ToS content, highlights the main points, and translates them into easy-to-understand language, aiming to simplify the comprehension of any service's ToS.
KYCnot.me features an AI-powered tool that automatically reviews Terms of Service (ToS) for all the different
services. It breaks down the ToS content, highlights the main points, and translates them into
easy-to-understand language, aiming to simplify the comprehension of any service's ToS.
</p>
<p>
@ -350,7 +353,8 @@
</p>
<p>
<b>Important note:</b> The automated tool generally delivers reliable and solid results. But it might flag false positives or irrelevant lines, if you find something's off, please <a href="#contact">contact me</a>.
<b>Important note:</b> The automated tool generally delivers reliable and solid results. But it might flag false
positives or irrelevant lines, if you find something's off, please <a href="#contact">contact me</a>.
</p>
</div>
@ -359,69 +363,42 @@
<p>
If you like this project, or
<a target="_blank" href="https://pluja.dev">any of my other projects</a
>, you can support me through these methods:
<a target="_blank" href="https://pluja.dev">any of my other projects</a>, you can support me through these
methods:
</p>
<div class="[&>span]:block space-y-6">
<span>
<span class="flex items-center space-x-2">
<svg
xmlns="http://www.w3.org/2000/svg"
class="w-5 h-5 monero-filled"
width="24"
height="24"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 monero-filled" width="24" height="24"
viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path
d="M15 11.414v4.586a1 1 0 0 0 1 1l4.66 .001a10 10 0 0 1 -17.32 0l4.66 -.001l.117 -.007a1 1 0 0 0 .883 -.993v-4.585l2.293 2.292l.094 .083a1 1 0 0 0 1.32 -.083l2.293 -2.293zm2 -8.074a10 10 0 0 1 4.54 11.66h-4.54v-6c0 -.89 -1.077 -1.337 -1.707 -.707l-3.293 3.292l-3.293 -3.292l-.084 -.076c-.637 -.514 -1.623 -.07 -1.623 .783v6h-4.54a9.991 9.991 0 0 1 -.46 -3l.005 -.324a10 10 0 0 1 14.995 -8.336z"
stroke-width="0"
fill="currentColor"
/>
stroke-width="0" fill="currentColor" />
</svg>
<span class="font-bold uppercase">Monero</span>
</span>
<p class="text-xs text-white/50">
> If your wallet supports
<a rel="noreferrer" target="_blank" href="https://openalias.org/"
>OpenAlias</a
>, you can use <span class="font-bold">kycnot.me</span> in the
<a rel="noreferrer" target="_blank" href="https://openalias.org/">OpenAlias</a>, you can use <span
class="font-bold">kycnot.me</span> in the
address field.
</p>
<code>{{.Xmr}}</code>
<details class="my-2 mt-2 rounded-lg cursor-pointer">
<summary class="flex items-center space-x-1 text-sm text-white/60">
<svg
xmlns="http://www.w3.org/2000/svg"
class="w-5 h-5 icon icon-tabler icon-tabler-qrcode"
width="24"
height="24"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 icon icon-tabler icon-tabler-qrcode" width="24"
height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path
d="M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"
/>
<path d="M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
<path d="M7 17l0 .01" />
<path
d="M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"
/>
<path d="M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
<path d="M7 7l0 .01" />
<path
d="M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"
/>
<path d="M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
<path d="M17 7l0 .01" />
<path d="M14 14l3 0" />
<path d="M20 14l0 .01" />
@ -432,11 +409,8 @@
</svg>
<span class="underline"> Click for QR Code </span>
</summary>
<img
class="my-4"
src="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=monero:{{.Xmr}}"
alt="Monero address QR code"
/>
<img class="my-4" src="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=monero:{{.Xmr}}"
alt="Monero address QR code" />
</details>
</span>
@ -444,24 +418,13 @@
<span>
<span class="flex items-center space-x-2">
<svg
xmlns="http://www.w3.org/2000/svg"
class="w-5 h-5 bitcoin-filled"
width="24"
height="24"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 bitcoin-filled" width="24" height="24"
viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path
d="M17 3.34a10 10 0 1 1 -15 8.66l.005 -.324a10 10 0 0 1 14.995 -8.336zm-4 2.66a1 1 0 0 0 -1 1h-1a1 1 0 0 0 -2 0a1 1 0 1 0 0 2v6a1 1 0 0 0 0 2c0 1.333 2 1.333 2 0h1a1 1 0 0 0 2 0v-.15c1.167 -.394 2 -1.527 2 -2.85l-.005 -.175a3.063 3.063 0 0 0 -.734 -1.827c.46 -.532 .739 -1.233 .739 -1.998c0 -1.323 -.833 -2.456 -2 -2.85v-.15a1 1 0 0 0 -1 -1zm.09 7c.492 0 .91 .437 .91 1s-.418 1 -.91 1h-2.09v-2h2.09zm0 -4c.492 0 .91 .437 .91 1c0 .522 -.36 .937 -.806 .993l-.104 .007h-2.09v-2h2.09z"
stroke-width="0"
fill="currentColor"
/>
stroke-width="0" fill="currentColor" />
</svg>
<span class="font-bold uppercase">Bitcoin</span>
</span>
@ -469,30 +432,15 @@
<details class="my-2 rounded-lg cursor-pointer">
<summary class="flex items-center space-x-1 text-sm text-white/60">
<svg
xmlns="http://www.w3.org/2000/svg"
class="w-5 h-5 icon icon-tabler icon-tabler-qrcode"
width="24"
height="24"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 icon icon-tabler icon-tabler-qrcode" width="24"
height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path
d="M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"
/>
<path d="M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
<path d="M7 17l0 .01" />
<path
d="M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"
/>
<path d="M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
<path d="M7 7l0 .01" />
<path
d="M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"
/>
<path d="M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
<path d="M17 7l0 .01" />
<path d="M14 14l3 0" />
<path d="M20 14l0 .01" />
@ -503,47 +451,65 @@
</svg>
<span class="underline"> Click for QR Code </span>
</summary>
<img
class="my-4"
src="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=bitcoin:{{.Btc}}"
alt="Bitcoin Address QR Code"
/>
<img class="my-4" src="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=bitcoin:{{.Btc}}"
alt="Bitcoin Address QR Code" />
</details>
</span>
<span>
<span class="flex items-center space-x-2">
<svg xmlns="http://www.w3.org/2000/svg" class="size-5" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="icon icon-tabler icons-tabler-outline icon-tabler-mood-silence">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M12 21a9 9 0 1 1 0 -18a9 9 0 0 1 0 18z" />
<path d="M9 10h-.01" />
<path d="M15 10h-.01" />
<path d="M8 15h8" />
<path d="M9 14v2" />
<path d="M12 14v2" />
<path d="M15 14v2" />
</svg>
<span class="font-bold uppercase">Bitcoin <a target="_blank" href="https://silentpayments.xyz">silent
payments</a></span>
</span>
<code>{{.BtcSilent}}</code>
<details class="my-2 rounded-lg cursor-pointer">
<summary class="flex items-center space-x-1 text-sm text-white/60">
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 icon icon-tabler icon-tabler-qrcode" width="24"
height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
<path d="M7 17l0 .01" />
<path d="M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
<path d="M7 7l0 .01" />
<path d="M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
<path d="M17 7l0 .01" />
<path d="M14 14l3 0" />
<path d="M20 14l0 .01" />
<path d="M14 14l0 3" />
<path d="M14 20l3 0" />
<path d="M17 17l3 0" />
<path d="M20 17l0 3" />
</svg>
<span class="underline"> Click for QR Code </span>
</summary>
<img class="my-4" src="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=bitcoin:{{.BtcSilent}}"
alt="Bitcoin Address QR Code" />
</details>
</span>
<span class="pb-4 space-y-2">
<span class="flex items-center space-x-2">
<svg
xmlns="http://www.w3.org/2000/svg"
class="w-5 h-5 tabler-bolt"
width="24"
height="24"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 tabler-bolt" width="24" height="24"
viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11" />
</svg>
<a
target="_blank"
rel="noreferrer"
href="{{.Lnn}}"
>Tip via Lightning Network</a
>
</span>
<span class="flex items-center space-x-2">
<img class="rounded-full size-5" src="/static/assets/paynym.webp" alt="">
<a
target="_blank"
rel="noreferrer"
href="https://paynym.is/+jollyboat70C"
>Paynym</a
>
<a target="_blank" rel="noreferrer" href="{{.Lnn}}">Tip via Lightning Network</a>
</span>
</span>
</div>
@ -553,33 +519,25 @@
<h2 id="contact">contact</h2>
<p>
Due to past misuse and difficulties in managing, I've decided to remove direct instant
messaging/email contacts. If you have any queries or concerns, connect with me on any of the listed social media platforms below.
messaging/email contacts. If you have any queries or concerns, connect with me on any of the listed social media
platforms below.
</p>
<p>
For confidential communication, please reach out via the specified platforms and I can provide my email, matrix, xmpp, threema or a SimpleX link.
For confidential communication, please reach out via the specified platforms and I can provide my email, matrix,
xmpp, threema or a SimpleX link.
</p>
<div class="[&>span]:block [&>span>a]:!no-underline [&>span>a]:font-bold pb-2 space-y-2">
<span>
<a
target="_blank"
rel="noreferrer"
href="https://fosstodon.org/@kycnotme"
>🦣 Mastodon</a
>
<a target="_blank" rel="noreferrer" href="https://fosstodon.org/@kycnotme">🦣 Mastodon</a>
</span>
<span>
<a
target="_blank"
rel="noreferrer"
href="https://njump.me/npub188x98j0r7l2fszeph6j7hj99h8xl07n989pskk5zd69d2fcksetq5mgcqf"
>🪶 Nostr</a
> <a class="mx-2 text-xs text-gray-400" href="/nostr">?</a>
<a target="_blank" rel="noreferrer"
href="https://njump.me/npub188x98j0r7l2fszeph6j7hj99h8xl07n989pskk5zd69d2fcksetq5mgcqf">🪶 Nostr</a> <a
class="mx-2 text-xs text-gray-400" href="/nostr">?</a>
</span>
<span>
<a target="_blank" rel="noreferrer" href="https://lemmy.world/u/pluja"
>🐭 Lemmy</a
>
<a target="_blank" rel="noreferrer" href="https://lemmy.world/u/pluja">🐭 Lemmy</a>
</span>
</div>
</div>
@ -589,19 +547,24 @@
<p>
Each service has a dedicated comments section. The comments are suppored
by <a rel="no-referrer" target="_blank" href="https://matrix.org">Matrix</a>, an open network for secure,
decentralised communication, thanks to <a rel="no-referrer" target="_blank" href="https://cactus.chat/">Cactus</a>.
by <a rel="no-referrer" target="_blank" href="https://matrix.org">Matrix</a>, an open network for secure,
decentralised communication, thanks to <a rel="no-referrer" target="_blank"
href="https://cactus.chat/">Cactus</a>.
</p>
<p>
To comment on a service's page, you just need a <a rel="no-referrer" target="_blank" href="https://matrix.org/try-matrix/">Matrix account</a>. This method gives users full control over who hosts their data. Users can log in using any Matrix server they choose.
To comment on a service's page, you just need a <a rel="no-referrer" target="_blank"
href="https://matrix.org/try-matrix/">Matrix account</a>. This method gives users full control over who hosts
their data. Users can log in using any Matrix server they choose.
</p>
<p>
You can read and post comments in your browser, or continue the conversation using any other Matrix client. Comment sections are accesible from any homeserver on the Matrix network.
You can read and post comments in your browser, or continue the conversation using any other Matrix client.
Comment sections are accesible from any homeserver on the Matrix network.
</p>
<p>The <a rel="no-referrer" target="_blank" href="https://gitlab.com/cactus-comments">source code</a> for the web client is LGPLv3 licensed, and the backend service is AGPLv3 licensed.</p>
<p>The <a rel="no-referrer" target="_blank" href="https://gitlab.com/cactus-comments">source code</a> for the web
client is LGPLv3 licensed, and the backend service is AGPLv3 licensed.</p>
</div>
<div class="m-2 rounded-xl bg-gray-500/10">
@ -637,7 +600,7 @@
<p>
KYCNOT.me does not have trackers and never will. It does not make any
third party connections from the frontend. No user data of any kind is
collected. A "no-referrer" policy is enforced. Tor and I2P sites are available
collected. A "no-referrer" policy is enforced. Tor and I2P sites are available
(check the footer).
</p>
@ -652,7 +615,9 @@
<div class="[&>span]:block space-y-2">
<span>
<b>Service Requests</b>: The Proof-Of-Work captcha, that I coded myself, needs
JavaScript for the verfication. It is an <a rel="no-referrer" target="_blank" href="https://codeberg.org/pluja/kycnot.me/src/branch/main/src/frontend/static/js/pow.js">open-source</a> 2.5kb javascript function.
JavaScript for the verfication. It is an <a rel="no-referrer" target="_blank"
href="https://codeberg.org/pluja/kycnot.me/src/branch/main/src/frontend/static/js/pow.js">open-source</a>
2.5kb javascript function.
</span>
<span>
<b>Comments</b>: The comment section on each of the services, needs
@ -678,9 +643,7 @@
<p>
<b>example 2:</b>
<a href="/api/v1/service/localmonero.co"
>/api/v1/service/localmonero.co</a
>
<a href="/api/v1/service/localmonero.co">/api/v1/service/localmonero.co</a>
</p>
<p>
@ -698,25 +661,14 @@
is the referral, if there is any. But there's always a referral-free
option, that is shown with a
</span>
<svg
xmlns="http://www.w3.org/2000/svg"
class="inline size-5 link-off"
width="24"
height="24"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<svg xmlns="http://www.w3.org/2000/svg" class="inline size-5 link-off" width="24" height="24"
viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M9 15l3 -3m2 -2l1 -1" />
<path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />
<path d="M3 3l18 18" />
<path
d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463"
/>
<path d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />
</svg>
<span>icon. Feel free to choose.</span>
</p>
@ -734,4 +686,4 @@
</p>
</div>
</article>
</div>
</div>

View File

@ -61,6 +61,7 @@ func init() {
// Load donation addresses into config
config.Conf.Donations.Xmr = os.Getenv("XMR_ADDRESS")
config.Conf.Donations.Btc = os.Getenv("BTC_ADDRESS")
config.Conf.Donations.BtcSilent = os.Getenv("SLIENT_ADDRESS")
config.Conf.Donations.Lnn = os.Getenv("LNN_ADDRESS")
// Database init

View File

@ -211,11 +211,12 @@ func (s *Server) handleRequestServiceForm(c iris.Context) {
func (s *Server) handleAbout(c iris.Context) {
c.ViewLayout("main")
data := iris.Map{
"Title": "About",
"Current": "about",
"Btc": config.Conf.Donations.Btc,
"Xmr": config.Conf.Donations.Xmr,
"Lnn": config.Conf.Donations.Lnn,
"Title": "About",
"Current": "about",
"Btc": config.Conf.Donations.Btc,
"Xmr": config.Conf.Donations.Xmr,
"BtcSilent": config.Conf.Donations.BtcSilent,
"Lnn": config.Conf.Donations.Lnn,
}
if err := c.View("about", data); err != nil {
c.HTML("<h3>%s</h3>", err.Error())