TES wallet
==========

A TES address is where your coins are paid. The wallet makes one, keeps its
key on your own computer, encrypted with a passphrase, and sends coins.

Transactions are signed on your machine. Only the finished, signed
transaction is sent to a node, so a node can never spend your coins.

This folder is served by:  @@SITE@@


What is here
------------
  tes-wallet-linux-amd64   command-line wallet, Ubuntu / Linux, Intel and AMD
  tes-wallet-linux-arm64   command-line wallet, Ubuntu / Linux, ARM
  wallet-install.sh        installs the Linux wallet for you (see below)
  SHA256SUMS               checksums for every file in this folder

Windows downloads, if this site offers them, are listed on its Download page
with their own checksum.


Install on Linux
----------------
One command downloads the wallet, checks it against SHA256SUMS, and puts it
in place. Read the script before you run it:

  curl -fsSLO @@SITE@@/download/wallet-install.sh
  less wallet-install.sh
  bash wallet-install.sh

It installs to /usr/local/bin if it can, or to ~/.local/bin if not.


Install on Windows
------------------
Unzip the download and double-click "TES Wallet.exe". The Windows files are
not code-signed yet, so Windows may show a SmartScreen warning. Choose "Run
anyway" only if the SHA-256 of what you downloaded matches the one on the
Download page.

To check it, in PowerShell:

  Get-FileHash .\the-file-you-downloaded.zip -Algorithm SHA256


Check any download before you run it
------------------------------------
On Linux, with the file and SHA256SUMS in the same folder:

  sha256sum -c SHA256SUMS --ignore-missing

It should print OK for the file you downloaded. If it does not, do not run it.


Use it (Linux command line)
---------------------------
The wallet is one file with a menu built in. Install it with
"./tescoin-wallet-linux-x64 install" (no sudo needed), then:

  tescoinwallet              balance, send, receive (with QR code if
                             qrencode is installed), history, address book,
                             wallets, node settings, live block ticker
  tescoinwallet help         quick commands, e.g.
  tescoinwallet send bob 5   ("bob" from your address book)

Or the wallet directly:

  tes-wallet new                         make a wallet; asks for a passphrase
  tes-wallet address                     where people send you TES
  tes-wallet balance
  tes-wallet send 0xSOMEONE 12.5
  tes-wallet history
  tes-wallet config                      show the settings in use


Settings: ~/.tes/wallet.conf
----------------------------
A plain text file (edit with: tescoinwallet edit, or any editor):

  NODE=http://tescoin.xdagreef.org:18182          the node used for everything
  BACKUP_NODE=http://wnode1.russ-office.com:18182 used when NODE does not answer
  WALLET=                                         wallet file (empty = wallet.json)

Or: tes-wallet node <url>   /   tes-wallet backup-node <url|off>

Fees come out of the amount you send: send 10 and the other side gets 10
minus the fees. The fee depends on the node you use (set by its operator).

Your wallet file is ~/.tes/wallet.json. To keep several wallets, give each a
file of its own:

  tes-wallet new -key ~/.tes/second.json
  tes-wallet balance -key ~/.tes/second.json

If you already hold an Etica key, "tes-wallet import <key-hex>" uses it. An
Etica address and a TES address have the same form (0x and 40 characters), so
the same key works for both.


Mining on an XDAG or Etica pool?
--------------------------------
Pools that merge-mine TES pay it to a TES address you name. Add yours to your
miner in either of these ways, and that pool's TES blocks pay you directly:

  -p YOUR_TES_ADDRESS
  -u YOUR_POOL_ADDRESS.rig1+YOUR_TES_ADDRESS

Name no address and that pool decides where the TES goes, usually its own
donation address. Check with whoever runs it.

Never give an exchange deposit address. TES sent there belongs to whoever
holds the key, which is the exchange, and they are not expecting it.


Keeping it safe
---------------
 * Back up your wallet file somewhere other than that computer. Lose it or
   forget the passphrase and the coins are gone: there is no company, no
   reset and no recovery.

 * The Linux wallet file is a standard v3 keystore, the same format geth,
   MetaMask and Etica tools use, so it opens in those too.

 * Never share the file's contents, a private key, or your passphrase with
   anyone. Nobody who genuinely helps you with a wallet needs them.

 * For larger amounts, sign on a computer that is not online: run
   "tes-wallet sign" on the offline one, then "tes-wallet broadcast" on
   another.
