Skip to content

Commit

Permalink
GITBOOK-154: change request with no subject merged in GitBook
Browse files Browse the repository at this point in the history
  • Loading branch information
twofaktor authored and gitbook-bot committed Oct 18, 2023
1 parent ec613c7 commit 23a8dcd
Show file tree
Hide file tree
Showing 12 changed files with 93 additions and 204 deletions.
Binary file added .gitbook/assets/nunckuk_nym.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/nunckuk_nym_settings.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
* [Pimp the command line](bonus/system/command-line.md)
* [Aliases](bonus/system/aliases.md)
* [Static IP & custom DNS servers](bonus-guides/system/static-ip-and-custom-dns-servers.md)
* [Go](bonus/system/go.md)
* [Node + NPM](bonus/system/nodejs-npm.md)
* [Rustup + Cargo](bonus-guides/system/rustup-+-cargo.md)
* [Login with SSH keys](bonus/system/ssh-keys.md)
Expand Down
2 changes: 1 addition & 1 deletion bitcoin/electrum-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ layout:

# 2.2 Electrum Server: Fulcrum

[Fulcrum](https://github.com/cculianu/Fulcrum) is a fast & nimble SPV server for Bitcoin Cash, Bitcoin BTC, and Litecoin created by Calin Culianu. It can be used as an alternative to Electrs because of its performance, as we can see in Craig Raw's [comparison](https://www.sparrowwallet.com/docs/server-performance.html) of servers
[Fulcrum](https://github.com/cculianu/Fulcrum) is a fast & nimble SPV server for Bitcoin Cash, Bitcoin BTC, and Litecoin created by Calin Culianu. It can be used as an alternative to Electrs because of its performance, as we can see in Craig Raw's [comparison](https://www.sparrowwallet.com/docs/server-performance.html) of servers.

![](../images/fulcrum.png)

Expand Down
66 changes: 27 additions & 39 deletions bonus-guides/bitcoin/nostr-relay.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ A [nostr relay written in Rust](https://github.com/scsibug/nostr-rs-relay) with

## What is Nostr?

Nostr is a straightforward and open protocol for global, decentralized, and censorship-resistant social media. It offers numerous advantages for users and is completely free, requiring no ID or third-party verification to begin connecting with like-minded individuals and expanding your community. While nostr is sometimes confused as just another social media platform, it goes beyond that. Explore the resources provided here to discover its significant potential. 
Nostr is a straightforward and open protocol for global, decentralized, and censorship-resistant social media. It offers numerous advantages for users and is completely free, requiring no ID or third-party verification to begin connecting with like-minded individuals and expanding your community. While nostr is sometimes confused as just another social media platform, it goes beyond that. Explore the resources provided here to discover its significant potential.

This protocol is based on relays. Relays are servers that can be operated by anyone. By opening a persistent connection with the server, clients (or apps) can push and pull events in real-time.

Expand Down Expand Up @@ -269,18 +269,18 @@ $ sudo nano /data/nostr/rs-relay/config.toml
> >
> > > relay\_url = "[`<yourelayurl>`](#user-content-fn-1)[^1]"
> >
> > > name = "[`<nametotherelay>`](#user-content-fn-2)[^2]"
> > > name = "`<nametotherelay>`"
> >
> > > description = "[`<descriptionrelay>`](#user-content-fn-3)[^3]"
> > > description = "[`<descriptionrelay>`](#user-content-fn-2)[^2]"
> >
> > > pubkey = "[`<yournostrhexpubkey>`](#user-content-fn-4)[^4]"
> > > pubkey = "`<yournostrhexpubkey>`"
> >
> > > contact = "[`<yourcontact>`](#user-content-fn-5)[^5]"
> > > contact = "[`<yourcontact>`](#user-content-fn-3)[^3]"
> >
> > > relay\_icon = "[`<yourelayiconURL>`](#user-content-fn-6)[^6]"
> > > relay\_icon = "`<yourelayiconURL>`"
{% hint style="info" %}
If you don't have pubkey generated yet, you can follow the [Create your nostr key pair](nostr-relay.md#create-your-nostr-key-pair) section and then continue with this.&#x20;
If you don't have pubkey generated yet, you can follow the [Create your nostr key pair](nostr-relay.md#create-your-nostr-key-pair) section and then continue with this.

You can use [this tool](https://nostrdebug.com/converter/) to convert your "npub" pubkey to hexadecimal format
{% endhint %}
Expand All @@ -289,15 +289,15 @@ You can use [this tool](https://nostrdebug.com/converter/) to convert your "npub
> >
> > **(\*)** click on the parameter to get action to do (\<Edit> or \<Uncomment>)
> >
> > [favicon = "favicon.ico"](#user-content-fn-7)[^7]
> > [favicon = "favicon.ico"](#user-content-fn-4)[^4]
>
> > [data\_directory = "/data/nostr/rs-relay/db"](#user-content-fn-8)[^8]
> > data\_directory = "/data/nostr/rs-relay/db"
>
> > [address = "127.0.0.1"](#user-content-fn-9)[^9]
> > [address = "127.0.0.1"](#user-content-fn-5)[^5]
>
> > [port = 8880](#user-content-fn-10)[^10]
> > port = 8880
>
> > [remote\_ip\_header = "cf-connecting-ip"](#user-content-fn-11)[^11]
> > [remote\_ip\_header = "cf-connecting-ip"](#user-content-fn-6)[^6]
{% hint style="info" %}
If you want, use the same [`favicon.ico`](https://raw.githubusercontent.com/minibolt-guide/minibolt/nostr-relay-PR/resources/favicon.ico) file downloaded before (the relay's icon of MiniBolt) and the value `relay_icon` parameter (URL), or replace it with your own, downloading it instead
Expand Down Expand Up @@ -408,7 +408,7 @@ credentials-file: /home/admin/.cloudflared/&#x3C;UUID>.json
ingress:

# Nostr relay
- hostname: <a data-footnote-ref href="#user-content-fn-12">relay</a>.<a data-footnote-ref href="#user-content-fn-13">&#x3C;domain.com></a>
- hostname: relay.<a data-footnote-ref href="#user-content-fn-7">&#x3C;domain.com></a>
service: ws://localhost:8880

- service: http_status:404
Expand Down Expand Up @@ -444,7 +444,7 @@ Expected output:

<figure><img src="../../.gitbook/assets/relay-test-connected.PNG" alt=""><figcaption></figcaption></figure>

3. Go to the [https://nostrdebug.com/relay](https://nostrdebug.com/relay) website, type in the box your Nostr relay URL e.g. `wss://relay.domain.com`, and click on the **\[Connect]** button. You should see the status "✅ Connected" on the history
3. Go to the [https://nostrdebug.com/relay](https://nostrdebug.com/relay) website, type in the box your Nostr relay URL e.g. `wss://relay.domain.com`, and click on the **\[Connect]** button. You should see the status "✅ Connected" on the history

<figure><img src="../../.gitbook/assets/relay-connected-nostr-debug.PNG" alt="" width="478"><figcaption></figcaption></figure>

Expand All @@ -460,7 +460,7 @@ $ sudo systemctl stop nostr-relay
* Replace the `config.toml` file with the new one of the new version **(if needed)**

{% hint style="warning" %}
**This step is only necessary if you see changes on the config file template from your current version until the current release (not common)**, you can display this on this [history link](https://github.com/scsibug/nostr-rs-relay/commits/master/config.toml). If no changes, jump directly to the next **"Start `nostr-rs-relay` service again" ->**`$ sudo systemctl start nostr-relay`
**This step is only necessary if you see changes on the config file template from your current version until the current release (not common)**, you can display this on this [history link](https://github.com/scsibug/nostr-rs-relay/commits/master/config.toml). If no changes, jump directly to the next **"Start `nostr-rs-relay` service again" ->**`$ sudo systemctl start nostr-relay`
{% endhint %}

* Backup the `config.toml` file to keep a copy of your old configuration
Expand Down Expand Up @@ -547,7 +547,7 @@ Select a strong password for the Alby extension (this password is for encrypting

<figure><img src="../../.gitbook/assets/create-import-nostr-alby.PNG" alt="" width="375"><figcaption></figcaption></figure>

* If you selected to **create a new one**, remember backup the seed shown on the screen, check the verification box, and click on the **\[Save Master Key]** box&#x20;
* If you selected to **create a new one**, remember backup the seed shown on the screen, check the verification box, and click on the **\[Save Master Key]** box

<figure><img src="../../.gitbook/assets/seeds-nostr-keys-alby.PNG" alt="" width="375"><figcaption></figcaption></figure>

Expand Down Expand Up @@ -617,7 +617,7 @@ If you want all your past events to be accessible through your new relay, you ca
<figure><img src="../../.gitbook/assets/broadcast-relay.png" alt="" width="319"><figcaption></figcaption></figure>

{% hint style="info" %}
Please **wait patiently** until all processes are finished. This might take some time, depending on the number of events you've published on Nostr with that pubkey meaning the interactions you've had on Nostr.&#x20;
Please **wait patiently** until all processes are finished. This might take some time, depending on the number of events you've published on Nostr with that pubkey meaning the interactions you've had on Nostr.

Optionally, you can also save a copy of all your events locally as you'll have the download option.
{% endhint %}
Expand Down Expand Up @@ -828,36 +828,24 @@ $ sudo rm /usr/local/bin/nostr-rs-relay
$ sudo rm -r /data/nostr/relay
```

[^1]: **Example:** `"wss://relay.bitcoin.org/"`

[^2]: **Example:** `"Bitcoin Relay"`

[^3]: **Example:** `"The official nostr relay of the Bitcoin community"`

[^4]: The pubkey of the relay owner in [**hexadecimal format**](https://nostr.pro/convert)

1. **Example:** `"Bitcoin Relay"`
2. The pubkey of the relay owner in [**hexadecimal format**](https://nostr.pro/convert)


&#x20; \
\

\\

**Example:** `"b17fccdf66ba2387f038b34426720cd68d112df923bca2bed8f8c309b7211144"`

[^5]: **Example:** `"[email protected]"`

[^6]: **Example:** `"https://cdn.nostr.build/i/35cb7871786875878269f04faafd3be8b5a536b9c4ce5f4bbbf82742873bc222.png"`

[^7]: \<Uncomment>
[^1]: **Example:** `"wss://relay.bitcoin.org/"`

[^8]: \<Edit> to `/data/nostr/rs-relay/db`&#x20;
[^2]: **Example:** `"The official nostr relay of the Bitcoin community"`

[^9]: \<Edit> to `127.0.0.1` &#x20;
[^3]: **Example:** `"[email protected]"`

[^10]: \<Edit> to `8880` &#x20;
[^4]: \<Uncomment>

[^11]: \<Uncomment>
[^5]: \<Edit> to `127.0.0.1`

[^12]: This is only an example of a subdomain related to a nostr relay &#x20;
[^6]: \<Uncomment>

[^13]: Here your personal domain
[^7]: Here your personal domain
53 changes: 38 additions & 15 deletions bonus-guides/system/nym-mixnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ $ exit

The system needs to run the network requester daemon automatically in the background, even when nobody is logged in. We use `"systemd"`, a daemon that controls the startup process using configuration files.

* With the user `admin`, create the configuration file in the nano text editor and copy the following paragraph. Save and exit
* With the user `admin`, create the configuration file in the nano text editor, and copy the following paragraph. Save and exit

<pre class="language-bash"><code class="lang-bash"><strong>$ sudo nano /etc/systemd/system/nym-network-requester.service
</strong></code></pre>
Expand All @@ -248,7 +248,7 @@ RestartSec=30
WantedBy=multi-user.target
```

* Enable autoboot (optional)
* Enable autoboot **(optional)**

```bash
$ sudo systemctl enable nym-network-requester
Expand Down Expand Up @@ -420,12 +420,19 @@ KillSignal=SIGINT
Restart=on-failure
RestartSec=30
[Install]
WantedBy=multi-user.target
```

* Enable autoboot (optional)
{% hint style="info" %}
You can add `--fastmode` attribute to the `ExecStart` parameter to enable this feature, this means the connection will not mixed up as much, but you will still be covered by the same privacy standard/minimum that NYM provides:

```bash
ExecStart=/home/nym/nym-socks5-client run --id bitcoin --fastmode
```
{% endhint %}

* Enable autoboot **(optional)**

```bash
$ sudo systemctl enable nym-network-requester
Expand Down Expand Up @@ -681,7 +688,7 @@ Expected output:

## Proxying wallets

#### Electrum
### Electrum

Follow the [Electrum Wallet desktop guide](../../bonus/bitcoin/electrum-wallet-desktop.md). You have 2 options:

Expand Down Expand Up @@ -719,7 +726,7 @@ $ ./electrum-4.4.5-x86_64.AppImage -1 -s 192.168.1.147:50002:s -p socks5:localho

<figure><img src="../../.gitbook/assets/nym-one-server-proxy-nym.PNG" alt="" width="377"><figcaption></figcaption></figure>

#### Sparrow desktop
### Sparrow desktop

Follow the [Desktop wallet: Sparrow Wallet](../../bitcoin/desktop-wallet.md) until the [(Optional) Set up a Tor proxy for external services](../../bitcoin/desktop-wallet.md#optional-set-up-a-tor-proxy-for-external-services), which could be used for these 2 cases of uses:

Expand All @@ -741,7 +748,7 @@ Follow the [Desktop wallet: Sparrow Wallet](../../bitcoin/desktop-wallet.md) unt

<figure><img src="../../.gitbook/assets/sparrow-private-server-proxy-nym.PNG" alt="" width="563"><figcaption></figcaption></figure>

#### Sparrow server
### Sparrow server

Follow the [Sparrow server bonus guide](../../bonus/bitcoin/sparrow-server.md), which could be used for these 2 cases of uses:

Expand Down Expand Up @@ -777,9 +784,9 @@ Go to **Preferences --> Server --> Public Electrum**
You have Sparrow server configured to proxy public Electrum servers and third parties servers connection using NYM mixnet
{% endhint %}

#### Blockstream Green
### Blockstream Green

Download the [Blockstream Greenwallet app](https://github.com/Blockstream/green\_qt/releases) for your OS
Download the [Blockstream Greenwallet app](https://github.com/Blockstream/green\_qt/releases) for your OS and install it.

Go to **App Settings -->** Navigate to **Network -->** switch "**Connect through a proxy**"

Expand All @@ -789,9 +796,9 @@ Go to **App Settings -->** Navigate to **Network -->** switch "**Connect through
<figure><img src="../../.gitbook/assets/green-wallet-nym-proxy.PNG" alt=""><figcaption><p>Screenshot showing a proxy connection using NYM mixnet</p></figcaption></figure>

#### Bitbox app
### Bitbox app

Download the [Bitbox app](https://bitbox.swiss/download/?source=bitboxapp) for your OS
Download the [Bitbox app](https://bitbox.swiss/download/?source=bitboxapp) for your OS and install it.

Go to **Settings** --> **Advanced settings --> Enable Tor proxy,** check **"Enable Tor proxy"** and type `127.0.0.1:1080` --> **Set proxy address**

Expand All @@ -804,6 +811,22 @@ Go to "Connect your own full node" --> Check the pre-setted Electrum servers Bit

<figure><img src="../../.gitbook/assets/bitbox-app-nym-proxy-check.PNG" alt="" width="563"><figcaption></figcaption></figure>

### Nunchuk desktop

[Download](https://github.com/nunchuk-io/nunchuk-desktop/releases) the Nunchuk wallet desktop version for your OS and install it.

Go to **Settings** --> **Network Settings** --> **Enable Tor proxy,** check **"Enable Tor proxy"** and type in the "Proxy address" box:`127.0.0.1` and in the "Port" box: `1080`. Above, enable "Connect to Electrum server", select "Mainnet server", keep the public Nunchuk address server by default, or click on the "Reset" button. Leave the rest of the boxes blank and finally click on "Save network settings".

<div>

<figure><img src="../../.gitbook/assets/nunckuk_nym_settings.PNG" alt=""><figcaption></figcaption></figure>



<figure><img src="../../.gitbook/assets/nunckuk_nym.PNG" alt="" width="375"><figcaption></figcaption></figure>

</div>

## NYM connect

NymConnect is an easy-to-use interface that enables you to connect other applications to the NYM mixnet for enhanced privacy. This desktop application allows you to effortlessly run the NYM SOCKS5 client without the need for manual commands.
Expand Down Expand Up @@ -838,7 +861,7 @@ Go to **Settings** --> **Advanced -->** Navigate to **"Proxy settings",** and ch
**Save proxy Settings**
{% endhint %}

#### Telegram Desktop
### Telegram Desktop

Download the [Telegram](https://desktop.telegram.org/) app for your OS

Expand All @@ -850,7 +873,7 @@ Use this [link](https://t.me/socks?server=127.0.0.1\&port=1080) to automatically
Save and close all banners to go back to the running app
{% endhint %}

#### Browser (Firefox-based browsers)
### Browser (Firefox-based browsers)

Download [Firefox](https://www.mozilla.org/es-ES/firefox/all/#product-desktop-release) | [Librewolf](https://librewolf.net/installation/) | [Mullvad](https://mullvad.net/es/download/browser/linux) or any Firefox-based browser for your OS\
\
Expand Down Expand Up @@ -910,11 +933,11 @@ An adaptation of pastebin.com, using NYM mixnet, to protect users and their data
\
[Link](https://pastenym.ch) | [GitHub](https://github.com/notrustverify/pastenym)\
\
Paste NYM-CLI --> [GitHub](https://github.com/notrustverify/pastenym-cli)[https://nostrnym.pnproxy.org/](https://nostrnym.pnproxy.org/)
Paste NYM-CLI --> [GitHub](https://github.com/notrustverify/pastenym-cli)
{% endtab %}

{% tab title="NYM chat" %}
A simple chat client which sends its traffic through the NYM mixnet
A simple chat client that sends its traffic through the NYM mixnet

[Link](https://chat-demo.nymtech.net/) | [GitHub](https://github.com/nymtech/demo-mixnet-chat-client)
{% endtab %}
Expand Down
4 changes: 2 additions & 2 deletions bonus/bitcoin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ layout:

* [**Safu Ninja**](safu-ninja.md) - create resilient DIY metal backups of your seed phrases
* [**Ordirespector**](ordisrespector.md) - an Ordinals NFTs spam filter for mempool politics of Bitcoin Core
* [**Nostr Relay**](../../bonus-guides/bitcoin/nostr-relay.md) - a nostr relay written in Rust with support for the entire relay protocol and data persistence using SQLite
* [**Nostr relay**](../../bonus-guides/bitcoin/nostr-relay.md) - a nostr relay written in Rust with support for the entire relay protocol and data persistence using SQLite

### Fun

Expand All @@ -55,4 +55,4 @@ layout:

### Payment processors

* [**BTCpay server**](../../bonus-guides/bitcoin/btcpay-server.md) - a free and open-source Bitcoin payment processor which allows you to accept Bitcoin without fees or intermediaries
* [**BTCPay Server**](../../bonus-guides/bitcoin/btcpay-server.md) - a free and open-source Bitcoin payment processor which allows you to accept Bitcoin without fees or intermediaries
Loading

0 comments on commit 23a8dcd

Please sign in to comment.