Introduction

0. Introduction

What are these tutorials for?

This tutorial series guides activist communities and organizations under authoritarian pressure through the deployment of a complete private and censorship-resistant payment infrastructure, based on Bitcoin, Lightning Network, and Cashu.

Once all tutorials are completed, your community will have a sovereign payment system: no custodians, no financial surveillance, and capable of operating even under adverse network conditions.

How the Infrastructure is Used

The infrastructure is made up of several services that work together. Below is a description of each service's role and its place in daily use:

Lightning Network Daemon (LND)

This is the core node of the infrastructure. It connects to the Lightning network and manages payment channels. All sat payments entering and leaving the infrastructure pass through LND. Community members do not interact with it directly, but it is the engine that powers most of the other services.

LNbits

This is the funds management layer. It allows creating multiple wallets on top of the LND node balance, segmenting funds by purpose (fees, reserves, service payments). The community administrator uses it to control who has access to which funds and to monitor payments.

Cashu Mint (Nutshell)

This is the heart of the privacy system. The Mint issues Cashu tokens (ecash) backed by Lightning sats. Community members send and receive these tokens without leaving a trace on the blockchain. Transactions between members are completely private, even from the Mint operator.

Lightning Terminal (LIT)

This is the Lightning node control panel. The administrator uses it to manage channel liquidity (Loop In/Out), review the node status, and connect remotely and securely via Lightning Node Connect.

Nginx Proxy Manager (NPM)

This is the secure gateway to all services. It manages SSL certificates and allows accessing each tool through its own subdomain (for example: lnbits.yourdomain.com, mint.yourdomain.com). Without it, the services would not be securely accessible from the Internet.

Orchard

This is the Cashu Mint administration panel. It allows the administrator to configure the Mint, review the database status, manage keysets, and monitor activity without needing to access the command line.

Tor

This adds an extra layer of privacy by routing the LND node connections through the Tor network. This hides the server's real IP and makes surveillance or blocking of the infrastructure more difficult.

Prerequisites

Before starting with Chapter 1, make sure you have the following:

Internet Domain

You need a valid DNS domain (for example: yourdomain.com) that supports creating subdomains. Each service in the infrastructure is published under its own subdomain:

  • lnbits.yourdomain.com
  • mint.yourdomain.com
  • orchard.yourdomain.com
  • npm.yourdomain.com
  • lit.yourdomain.com

You can get a domain at Namecheap or GoDaddy. The Nginx Proxy Manager (Chapter 3) will handle SSL certificate management automatically.

VPS Server

You need a virtual private server (VPS) running Debian or Ubuntu. The following Hostinger plans are recommended (with a discount through the project links):

Basic Knowledge

The tutorials are designed to be followed step by step, but it is helpful to have basic familiarity with:

  • Linux terminal (basic commands: ls, cd, nano)
  • DNS management (creating A records for subdomains)
  • Docker (useful but not required; all commands are explained step by step)
Important: The tutorials must be followed in order. Each service depends on the previous ones to function correctly.

Video Tutorial

This video shows the infrastructure in operation and practical use cases for communities: