Skip to content

Latest commit

 

History

History
86 lines (50 loc) · 2.17 KB

README.md

File metadata and controls

86 lines (50 loc) · 2.17 KB

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.

gonuts

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.

Supported NUTs

Implemented NUTs:

Development

requirements

  • go

run mint

  • 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

wallet

  • cd cmd/nutw

fill the values in .env file with the mint to connect to

  • go build -v -o nutw nutw.go

using the wallet

check balance

./nutw balance

create a lightning invoice to receive ecash

./nutw mint 100

this will get an invoice from the mint

invoice: lnbcrt100n1pjuvtdpp...

redeem the ecash after paying the invoice

./nutw mint --invoice lnbcrt100n1pjuvtdpp...

send tokens

./nutw send 21

receive tokens

./nutw receive cashuAeyJ0b2tlbiI6W3...

Contribute

All contributions are welcome.

If you want to contribute, please open an Issue or a PR.