• Bitcoin
  • Blockchain
  • Crypto
  • Metaverse
  • AltCoins
  • Business
  • Investment
  • Upcoming
What's Hot

FutureBit Announces Apollo II Line of Personal Miners

December 3, 2023

Satoshi Orderbook Saturn Raises $500,000 in Pre-Seed Funding Round

December 2, 2023

ZBD Launches Bitcoin Prize Pool For 1047 Games' FPS ‘Splitgate’

December 2, 2023
Facebook Twitter Instagram
  • Bitcoin

    FutureBit Announces Apollo II Line of Personal Miners

    December 3, 2023

    Satoshi Orderbook Saturn Raises $500,000 in Pre-Seed Funding Round

    December 2, 2023

    ZBD Launches Bitcoin Prize Pool For 1047 Games' FPS ‘Splitgate’

    December 2, 2023

    Why The New ESG Narrative About Bitcoin Will Power The Next Bull Run

    December 2, 2023

    De Guevara Is Bitcoin Country’s Interim President As Bukele Steps Down To Run

    December 2, 2023
  • Blockchain

    BlockJoy raises $12M to help cut operating costs for businesses running blockchain nodes • TechCrunch

    February 2, 2023

    Blockchain Futurist Conference — Canada’s biggest crypto conference returns for fifth year

    February 2, 2023

    WEMADE and Metagravity Sign Strategic Alliance MOU to Collaborate on Blockchain Games for the Metaverse

    February 2, 2023

    Will Polkadot’s [DOT] new parachain fix the blockchain?

    February 1, 2023

    BNB Chain Unveils 3rd Blockchain in BNB Ecosystem, Tether ‘Never Borrowed from Celsius’, Ripple Sold $226M Worth of XRP in Q4

    February 1, 2023
  • Crypto

    Crypto Donations Now Need An Appraisal

    February 2, 2023

    Bitcoin Shrugs Off Fed Rate Hike to Hit Six-Month High

    February 2, 2023

    Stock and Share Market News, Economy and Finance News, Sensex, Nifty, Global Market, NSE, BSE Live IPO News

    February 2, 2023

    Yates County cryptocurrency miner completes debt restructuring deal

    February 1, 2023

    How ‘King of Instagram’ Dan Bilzerian ‘made millions’ from cryptocurrency after bizarre poker deal

    February 1, 2023
  • Metaverse

    Facebook’s Metaverse Division Lost Nearly $14 Billion Dollars Last Year

    February 2, 2023

    Samsung Hints Metaverse Ambitions At Product Launch Event, Eyes Integrating Different Realities Into Premium Smartphones

    February 2, 2023

    Sanlam makes history with SA’s first media launch in the metaverse

    February 2, 2023

    Meta’s plans to expand metaverse are up and running again: Here’ how

    February 2, 2023

    RFOX VALT Launches AI-Enabled Metaverse Apartments for Sale

    February 1, 2023
  • AltCoins

    Altcoins Lead Post-Fed Crypto Rally as Risk Appetite Increases

    February 2, 2023

    CAKE, SHIB And These Alt-Coins Are Trending

    February 2, 2023

    Elon Musk Wants McDonald’s to Accept Crypto Payments. Dogecoin (DOGE), Bitcoin (BTC), and Snowfall Protocol (SNW) Benefit

    February 2, 2023

    Crypto Analysts are Saying These Altcoins Have Huge Potential – Here’s Why

    February 2, 2023

    Are Cryptos Bound to Retrace Amid Recent Pump?

    February 1, 2023
  • Business

    Ray Dalio Warns Money Is in Jeopardy, Favors Inflation-Linked Crypto

    February 2, 2023

    BIT Mining Limited Regains Compliance with NYSE Continued Listing Standards

    February 2, 2023

    Bithumb’s de facto owner arrested over alleged embezzlement

    February 2, 2023

    Crypto Custody Firm Copper Alerted to Security ‘Incident’ Over Christmas

    February 1, 2023

    Cathie Wood’s Ark Invest Says Bitcoin Could Hit $1.5 Million by 2030

    February 1, 2023
  • Investment

    The Investor’s Guide to Crypto Options Trading

    February 2, 2023

    Pune software engineer loses Rs 13 lakh to crypto investment fraud

    February 2, 2023

    Crypto Investment Products’ AUM Surges as Investor Confidence Returns: CryptoCompare Report

    February 2, 2023

    Crypto Investors Can Purchase Bankruptcy Put Options to Protect Funds on Binance, Coinbase, Kraken Crypto Exchanges

    February 1, 2023

    Ethereum price forecast for February, including Morgan Stanley comments By Investing.com

    February 1, 2023
  • Upcoming

    S&P 500 rises to the highest level in five months Thursday as Meta leads a tech comeback

    February 2, 2023

    Looking For Something Different From Nubank and C6 Bank? Try Lanistar! – Sponsored Content

    February 2, 2023

    NYDFS Releases Guidance For BitLicensees And Limited Purpose Trust Companies On Asset Custody In The Wake Of Cryptocurrency Insolvencies – Financial Services

    February 2, 2023

    This Supreme Court Case Will Reverberate Throughout the Compliance and ESG World | NAVEX

    February 2, 2023

    Ethereum (ETH) Could Reclaim $2,000, Trader Says

    February 1, 2023
investorstoday.press
investorstoday.press
Home»Bitcoin»How-To Guide: Running an Ecash Mint
Bitcoin

How-To Guide: Running an Ecash Mint

maikdezana@icloud.comBy maikdezana@icloud.comSeptember 26, 2023No Comments5 Mins Read
Share
Facebook Twitter LinkedIn Pinterest Email

This article is featured in Bitcoin Magazine’s “The Withdrawal Issue”. Click here to subscribe now.

A PDF pamphlet of this article is available for download.

Chaumian ecash, a privacy-preserving payment system, was conceptualized in the early ’80s and known to be the first cryptocurrency ever invented. Although this technology experienced a period of dormancy, the advent of Bitcoin has revived interest in this technology. As we stride into an era increasingly concerned with digital privacy, ecash is experiencing a renaissance, primarily due to our discovery of Bitcoin as the foundational money layer for the internet.

Cashu allows the use of ecash on Bitcoin, empowering ordinary users to operate a mint that is connected to the Lightning Network. This enables everyone to offer perfectly private, untraceable Bitcoin payment services to their peers, social circles, or larger communities.

Chaumian mints use a technique known as blind signatures, which obscure user activities from the custodian managing the service. Users, upon making a payment over the Lightning Network, receive ecash that is stored as data pieces on their devices, very similar to physical cash. These ecash tokens, denominated in satoshis, can be exchanged between users or be converted back into a payment on the Lightning Network with the help of the mint.

An important advantage of ecash is that transactions between users can occur through any communication medium, such as a chat client or a QR code, with the mint not involved in the actual token exchange. This ensures the mint is oblivious to transaction specifics, including who transacted with whom. Even during fund withdrawal from the mint, user identity remains anonymous.

The integration of Cashu promises a realm of near-perfect privacy in the world of Bitcoin custody. This tutorial explains how you can set up and run a Cashu mint today and become a blinded Uncle Jim yourself.

Cashu on LNbits

The easiest way to run a Cashu mint is through the LNbits Cashu extension. For that, you already need a Lightning node with LNbits installed. If you are using popular node distributions like Umbrel, look for the LNbits app and install it. Once LNbits is set up, it takes only a couple of clicks: Go to the extension overview and look for the Cashu extension and install and enable it. You should now see the extension available for all users of your LNbits instance.

As a user, click on the extension and create a new Cashu mint. Enter the details for your mint and select the backend wallet that will be used for funding the mint. That’s it! You can copy the mint URL and use it with any Cashu wallet, such as Nutstash.app or Cashu.me.

Beware, you are responsible for keeping your mint operational and the deposited funds in this wallet safe. You also need to manage your node well such that your users can easily make and receive payments on the Lightning Network. Additionally, you also have no way of knowing the activity of your users. This means you’re unable to censor anyone specifically from using your mint. Chaumian mints are so privacy-preserving that censorship is practically impossible.

Cashu Nutshell

The most advanced way of running a Cashu mint today is to use the reference implementation called Nutshell. For this, you first have to clone the GitHub repository and follow the instructions of setting up your Python environment in the Readme.

Once your environment is ready, you have to set up your mint configuration which includes connecting it to a Lightning backend. Currently, you can use any LNbits instance as a Lightning backend (which in turn allows you to use all popular Lightning node implementations). In the near future, you will also be able to use your Lightning node directly without an LNbits middleware. However, for now, this is the recommended way since LNbits allows you to separate access to your node’s funds to dedicated wallets and thus serves as an extra layer of security in case something goes wrong.

To set up your mint’s preferences, copy the example configuration file .env.example to .env and edit the following entries in the file:

# Network settings

MINT_LISTEN_HOST=127.0.0.1 # Use 0.0.0.0 for public access

MINT_LISTEN_PORT=3338

# Lightning funding source

MINT_LIGHTNING_BACKEND=LNbitsWallet

MINT_LNBITS_ENDPOINT=https://legend.lnbits.com

MINT_LNBITS_KEY=YourLNbitsAPIKey

Note that if you just want to experiment (or develop) and not connect your mint to the Lightning Network, you can use the backend type “MINT_LIGHTNING_BACKEND=FakeWallet” which will handle all invoices as automatically paid. It’s great for trying things out!

Lastly, we set some contact details so that our users can reach us in case something goes wrong, and we also set some safety limits such that only small invoices can be created on our mint.

MINT_INFO_NAME=”Bitcoin Magazine’s Cashu mint”

MINT_INFO_DESCRIPTION=”Hide your nuts with Bitcoin Magazine”

MINT_INFO_DESCRIPTION_LONG=”This mint is used for a special event hosted by Bitcoin Magazine. Please withdraw your funds at the end of the event.”

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

MINT_MAX_PEG_IN=10000 # 10k sats maximum per invoice

Remember that you can’t identify individual users. That means, if you want to close your mint again, you have to give every user the opportunity to withdraw by themselves. Add the setting “MINT_PEG_OUT_ONLY=TRUE” to your configuration file so that only peg-outs are allowed if you want to close down your mint.

This article is featured in Bitcoin Magazine’s “The Withdrawal Issue”. Click here to subscribe now.

A PDF pamphlet of this article is available for download.

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
maikdezana@icloud.com
  • Website

Related Posts

FutureBit Announces Apollo II Line of Personal Miners

December 3, 2023

Satoshi Orderbook Saturn Raises $500,000 in Pre-Seed Funding Round

December 2, 2023

ZBD Launches Bitcoin Prize Pool For 1047 Games' FPS ‘Splitgate’

December 2, 2023

Why The New ESG Narrative About Bitcoin Will Power The Next Bull Run

December 2, 2023
Add A Comment

Leave A Reply Cancel Reply

Top Posts

Subscribe to Updates

Get the latest crypto news

Advertisement
Demo
Top Insights

FutureBit Announces Apollo II Line of Personal Miners

December 3, 2023

Satoshi Orderbook Saturn Raises $500,000 in Pre-Seed Funding Round

December 2, 2023

ZBD Launches Bitcoin Prize Pool For 1047 Games' FPS ‘Splitgate’

December 2, 2023
Get Informed

Subscribe to Updates

Get the latest creative news from FooBar about art, design and business.

Categories
  • AltCoins (1,399)
  • Bitcoin (2,253)
  • Blockchain (1,384)
  • Business (1,378)
  • Crypto (1,365)
  • Investment (1,383)
  • Metaverse (1,361)
  • Upcoming (1,319)
Facebook Instagram
  • Contact Us
  • privacy policy
  • about us
© 2023 Designed by investorstoday.

Type above and press Enter to search. Press Esc to cancel.