Sunday, March 31, 2024

How-To Information: Working an Ecash Mint

Must read

This text is featured in Bitcoin Journal’s “The Withdrawal Challenge”. Click on right here to subscribe now.

A PDF pamphlet of this text is accessible for obtain.

Chaumian ecash, a privacy-preserving cost system, was conceptualized within the early ’80s and identified to be the primary cryptocurrency ever invented. Though this know-how skilled a interval of dormancy, the arrival of Bitcoin has revived curiosity on this know-how. As we stride into an period more and more involved with digital privateness, ecash is experiencing a renaissance, primarily resulting from our discovery of Bitcoin because the foundational cash layer for the web.

Cashu permits using ecash on Bitcoin, empowering peculiar customers to function a mint that’s linked to the Lightning Community. This allows everybody to supply completely personal, untraceable Bitcoin cost providers to their friends, social circles, or bigger communities.

Chaumian mints use a way referred to as blind signatures, which obscure consumer actions from the custodian managing the service. Customers, upon making a cost over the Lightning Community, obtain ecash that’s saved as information items on their gadgets, similar to bodily money. These ecash tokens, denominated in satoshis, may be exchanged between customers or be transformed again right into a cost on the Lightning Community with the assistance of the mint.

An essential benefit of ecash is that transactions between customers can happen via any communication medium, akin to a chat consumer or a QR code, with the mint not concerned within the precise token change. This ensures the mint is oblivious to transaction specifics, together with who transacted with whom. Even throughout fund withdrawal from the mint, consumer identification stays nameless.

The combination of Cashu guarantees a realm of near-perfect privateness on the planet of Bitcoin custody. This tutorial explains how one can arrange and run a Cashu mint right this moment and turn into a blinded Uncle Jim your self.

Cashu on LNbits

The simplest strategy to run a Cashu mint is thru the LNbits Cashu extension. For that, you already want a Lightning node with LNbits put in. If you’re utilizing fashionable node distributions like Umbrel, search for the LNbits app and set up it. As soon as LNbits is about up, it takes solely a few clicks: Go to the extension overview and search for the Cashu extension and set up and allow it. You need to now see the extension out there for all customers of your LNbits occasion.

As a consumer, click on on the extension and create a brand new Cashu mint. Enter the small print on your mint and choose the backend pockets that might be used for funding the mint. That’s it! You’ll be able to copy the mint URL and use it with any Cashu pockets, akin to or

Beware, you’re liable for holding your mint operational and the deposited funds on this pockets secure. You additionally have to handle your node properly such that your customers can simply make and obtain funds on the Lightning Community. Moreover, you additionally don’t have any approach of realizing the exercise of your customers. This implies you’re unable to censor anybody particularly from utilizing your mint. Chaumian mints are so privacy-preserving that censorship is virtually inconceivable.

Cashu Nutshell

Probably the most superior approach of operating a Cashu mint right this moment is to make use of the reference implementation referred to as Nutshell. For this, you first must clone the GitHub repository and observe the directions of organising your Python setting within the Readme.

As soon as your setting is prepared, it’s important to arrange your mint configuration which incorporates connecting it to a Lightning backend. At present, you need to use any LNbits occasion as a Lightning backend (which in flip lets you use all fashionable Lightning node implementations). Within the close to future, additionally, you will be capable of use your Lightning node straight with out an LNbits middleware. Nevertheless, for now, that is the beneficial approach since LNbits lets you separate entry to your node’s funds to devoted wallets and thus serves as an additional layer of safety in case one thing goes improper.

To arrange your mint’s preferences, copy the instance configuration file .env.instance to .env and edit the next entries within the file:

# Community settings

MINT_LISTEN_HOST= # Use for public entry


# Lightning funding supply




Word that in the event you simply need to experiment (or develop) and never join your mint to the Lightning Community, you need to use the backend sort “MINT_LIGHTNING_BACKEND=FakeWallet” which is able to deal with all invoices as robotically paid. It’s nice for making an attempt issues out!

Lastly, we set some contact particulars in order that our customers can attain us in case one thing goes improper, and we additionally set some security limits such that solely small invoices may be created on our mint.

MINT_INFO_NAME=”Bitcoin Journal’s Cashu mint”

MINT_INFO_DESCRIPTION=”Cover your nuts with Bitcoin Journal”

MINT_INFO_DESCRIPTION_LONG=”This mint is used for a particular occasion hosted by Bitcoin Journal. Please withdraw your funds on the finish of the occasion.”

MINT_INFO_CONTACT=[[“email”,””], [“twitter”,”@me”], [“nostr”, “npub…”]]

MINT_MAX_PEG_IN=10000 # 10k sats most per bill

Bear in mind which you can’t determine particular person customers. Meaning, if you wish to shut your mint once more, it’s important to give each consumer the chance to withdraw by themselves. Add the setting “MINT_PEG_OUT_ONLY=TRUE” to your configuration file in order that solely peg-outs are allowed if you wish to shut down your mint.

This text is featured in Bitcoin Journal’s “The Withdrawal Challenge”. Click on right here to subscribe now.

A PDF pamphlet of this text is accessible for obtain.

Supply hyperlink

More articles


Please enter your comment!
Please enter your name here

Latest article