Gaine — a light Monero wallet for SliTaz
========================================

One GTK3 window in C over monero-wallet-cli: create or restore a wallet,
see the balance and the history, receive, send. No Qt, no Electron, no
daemon of its own.

    gaine              open the wallet used last, or offer to make one
    gaine --stagenet   same on the Monero test network (worthless coins)


How it works
------------

SliTaz 5.x (glibc 2.20) cannot run monerod nor monero-wallet-rpc, so:

- There is no local node. The wallet talks to a remote node, by default
  node.monerodevs.org, changed in Settings. The node sees the IP address
  and the transactions sent, never the keys. A socks proxy (Tor) hides
  the address.
- Gaine drives monero-wallet-cli, one short process per action
  (refresh, show_transfers, transfer...). The password goes to its
  stdin: never in a file, never on a command line.

All of this is hidden behind src/wallet.h. The day monero-wallet-rpc
runs on SliTaz, src/wallet.c can be rewritten on JSON-RPC without
touching the interface.


Security notes
--------------

- The keys live in the wallet file, encrypted with the password by
  monero-wallet-cli. Gaine never reads that file.
- The password is asked when the wallet is opened, kept in memory until
  Lock or exit, and asked again before coins leave or the seed is shown.
- The 25-word seed is shown on screen and never logged. It reaches the
  clipboard only through the "Copy the seed" button.
- Nothing is sent before the fee is shown and confirmed.


Files
-----

    ~/.config/gaine/gaine.conf         settings, one group per network
    ~/.local/share/gaine/wallets/      wallets made by Gaine
    ~/.cache/gaine/monero-wallet-cli.log


Build
-----

    make -C src                 needs gtk+3-dev
    make -C po                  needs gettext-tools
    make -C src install DESTDIR=... PREFIX=/usr
    make -C po install DESTDIR=... PREFIX=/usr

Runtime: gtk+3, monero-cli (x86_64 only).

    GAINE_DEBUG=1 gaine         pages and status lines on stderr


Source
------

    src/wallet.h    the backend API, start here
    src/wallet.c    backend on monero-wallet-cli: run it, parse its output
    src/gaine.c     the GTK3 interface
    po/             translations

BSD License, see LICENSE.
