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.
DO NOT USE WITH REAL SATS YET. UNLESS YOU WANT TO LOSE THEM.
Cashu wallet and mint implementation in Go.
Cashu is a free and open-source Chaumian ecash system built for Bitcoin. You can read more about it here.
Implemented NUTs:
- go
-
cd cmd/mint
-
cp .env.example .env
you'll need to setup a lightning regtest environment with something like Polar and fill in the values in the .env file
-
go build -v -o mint mint.go
-
./mint
cd cmd/nutw
fill the values in .env file with the mint to connect to
go build -v -o nutw nutw.go
./nutw balance
./nutw mint 100
this will get an invoice from the mint
invoice: lnbcrt100n1pjuvtdpp...
./nutw mint --invoice lnbcrt100n1pjuvtdpp...
./nutw send 21
./nutw receive cashuAeyJ0b2tlbiI6W3...
All contributions are welcome.
If you want to contribute, please open an Issue or a PR.