TES coin wallet for Windows
===========================

  WindowsGUI-TEScoinWallet.exe   Double-click this. It is the wallet window.
  WindowsCLI-TEScoinWallet.exe   Command line version (same wallet, same files).
                                 Run it from PowerShell or Command Prompt.
  SHA256SUMS                     Fingerprints, for checking the download.

This zip is for normal Windows PCs (Intel / AMD, x64). For Windows on ARM
laptops (Snapdragon, e.g. Surface Pro X / Copilot+ PCs) get the ARM64 zip;
its files end in -ARM64.exe.

There is nothing to install. Put the files in a folder you keep (for example
Documents\TES) and pin WindowsGUI-TEScoinWallet.exe to Start or the taskbar.


1. Check the download first
---------------------------
In PowerShell, in the folder with the files:

    Get-FileHash .\WindowsGUI-TEScoinWallet.exe -Algorithm SHA256

Compare the result with the line for that file in SHA256SUMS from the
pool's download page (not just the copy in this zip). If they differ, delete
the files.

These programs are not code-signed yet, so the first time you run one,
Windows may say "Windows protected your PC". Only once the hash matches,
click "More info" and then "Run anyway".


2. First run
------------
Create a wallet, import a private key, or open a wallet.json copied from the
Linux tes-wallet. The wallet is saved in %APPDATA%\TES\wallet.json,
encrypted with your passphrase.

BACK IT UP. Use Settings > "Back up wallet file" to copy it to a USB stick.
Keep the passphrase somewhere separate. If you lose the file or forget the
passphrase, the coins are gone. Nobody can recover them, including us.


3. Everyday use
---------------
- Receive: shows your address and a QR code. Copy and paste it; never retype
  it, because there is no checksum to catch typos.
- Send: paste the address, enter the amount, then Review. Check the
  address on the confirmation screen, then type your passphrase.
- Mining rewards show as "maturing" for 60 blocks (about an hour) before
  you can spend them.
- Activity shows the last 200 blocks. "Scan full history" reads the whole
  chain once and remembers it.


4. Node
-------
The wallet is for TES mainnet and uses these nodes:

    https://tescoin.xdagreef.org:18182   (default, encrypted)
    http://wnode1.russ-office.com:18182  (backup, used automatically if the
                                          first stops answering; not
                                          encrypted yet)

Choose another node in Settings.

A node may charge a small fee per send, paid to the node's own address.
The confirmation screen shows it before you sign. The wallet pays it with
a second small transaction sent together with your payment.

The node only sees addresses and signed transactions. Your key never
leaves this computer.


5. Offline signing
------------------
Keep the key on a computer that never goes online:

  offline PC:  Offline signing > Sign. Enter the nonce (shown on the online
               PC's Overview, or `tes-wallet balance -json`). Save the .hex
               to a USB stick, or show the QR code.
  online PC:   Offline signing > Broadcast. Load the .hex, check what it
               shows, then Broadcast.

This works with the Linux tes-wallet's `sign` and `broadcast` in either
direction.


6. Command line
---------------
Tip: rename WindowsCLI-TEScoinWallet.exe to tes-wallet.exe to type less.
    tes-wallet help
    tes-wallet balance
    tes-wallet send 0xADDRESS 12.5
    tes-wallet history -all
    tes-wallet sign 0xADDRESS 5 -nonce 3 -out tx.hex
    tes-wallet broadcast @tx.hex

The commands and flags match the Linux tes-wallet.

If the window does not appear, your PC lacks Microsoft Edge WebView2. The
wallet then opens in your web browser instead, or you can install the
WebView2 Runtime from Microsoft.
