# nutshell
**Repository Path**: mirrors_gbozee/nutshell
## Basic Information
- **Project Name**: nutshell
- **Description**: Chaumian ecash wallet and mint for Bitcoin
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2024-09-01
- **Last Updated**: 2025-12-13
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Cashu Nutshell
**Nutshell is a Chaumian Ecash wallet and mint for Bitcoin Lightning based on the Cashu protocol.**
*Disclaimer: The author is NOT a cryptographer and this work has not been reviewed. This means that there is very likely a fatal flaw somewhere. Cashu is still experimental and not production-ready.*
Cashu is a free and open-source [Ecash protocol](https://github.com/cashubtc/nuts) based on David Wagner's variant of Chaumian blinding called [Blind Diffie-Hellman Key Exchange](https://cypherpunks.venona.com/date/1996/03/msg01848.html) scheme written down [here](https://gist.github.com/RubenSomsen/be7a4760dd4596d06963d67baf140406).
Cashu protocol · Quick Install · Manual install · Configuration · Using Cashu · Run a mint
### Feature overview - Bitcoin Lightning support (LND, CLN, et al.) - Full support for the Cashu protocol [specifications](https://github.com/cashubtc/nuts) - Standalone CLI wallet and mint server - Wallet and mint library you can include in other Python projects - PostgreSQL and SQLite - Wallet with builtin Tor - Use multiple mints in a single wallet ### Advanced features - Deterministic wallet with seed phrase backup - Programmable ecash: P2PK and HTLCs - Wallet and mint support for keyset rotations - DLEQ proofs for offline transactions - Send and receive tokens on nostr ## The Cashu protocol Different Cashu clients and mints use the same protocol to achieve interoperability. See the [documentation page](https://docs.cashu.space/) for more information on other projects. If you are interested in developing on your own Cashu project, please refer to the protocol specs [protocol specs](https://github.com/cashubtc/nuts). ## Easy Install: Nutshell wallet The easiest way to use Cashu is to install the package it via pip: ```bash pip install cashu ``` To update Cashu, use `pip install cashu -U`. If you have problems running the command above on Ubuntu, run `sudo apt install -y pip pkg-config` and `pip install wheel`. On macOS, you might have to run `pip install wheel` and `brew install pkg-config`. You can skip the entire next section about Poetry and jump right to [Using Cashu](#using-cashu). ## Easy Install: Nutshell mint The easiest way to get a mint running is through Docker. You can build the image yourself by running the following command. Make sure to adjust the environment variables in `docker-compose.yaml`. ```bash docker compose up mint ``` Alternatively, you can use the pre-built Docker images, see [Running a mint](#docker). ## Manual install: Poetry These steps help you install Python via pyenv and Poetry. If you already have Poetry running on your computer, you can skip this step and jump right to [Install Cashu](#poetry-install-cashu). #### Poetry: Prerequisites ```bash # on ubuntu: sudo apt install -y build-essential pkg-config libffi-dev libpq-dev zlib1g-dev libssl-dev python3-dev libsqlite3-dev ncurses-dev libbz2-dev libreadline-dev lzma-dev liblzma-dev # install python using pyenv curl https://pyenv.run | bash # !! follow the instructions of pyenv init to setup pyenv !! pyenv init # restart your shell (or source your .rc file), then install python: pyenv install 3.10.4 # install poetry curl -sSL https://install.python-poetry.org | python3 - echo export PATH=\"$HOME/.local/bin:$PATH\" >> ~/.bashrc source ~/.bashrc ``` #### Poetry: Install Cashu ```bash # install cashu git clone https://github.com/cashubtc/nutshell.git cashu cd cashu git checkout