# Security and verification

Source: https://sl0ptiminer.com/wiki/verify/

Verify every download in two steps: check the signature of the checksum list, then check your file against the list. It takes two commands.

## Verify a download

1. **Get the three files** from the same release folder: the package, `SHA256SUMS` and `SHA256SUMS.minisig`. The [download page](https://sl0ptiminer.com/download/) links them.
2. **Check the signature** with [minisign](https://jedisct1.github.io/minisign/). This proves the list was signed with the Sl0ptiminer release key.

   ```
   minisign -Vm SHA256SUMS -P RWQ/WbRNa0qAYKdPxfZD1yo1E0fQ7UDCqHt7BEga1v66ufUi3b8JWVOs
   ```

   minisign must answer "Signature and comment signature verified". Anything else: stop and do not run the file.
3. **Check your file against the list.**

   ```
   sha256sum --ignore-missing -c SHA256SUMS
   ```

   The line for your package must end with "OK".

## The release key

The minisign public key of Sl0ptiminer releases, key ID `60804A6B4DB4593F`:

```
RWQ/WbRNa0qAYKdPxfZD1yo1E0fQ7UDCqHt7BEga1v66ufUi3b8JWVOs
```

The same key is at [/minisign.pub](https://sl0ptiminer.com/minisign.pub). It is a public key: it can check signatures and cannot make them.

## What the miner checks by itself

At each start, before it connects anywhere, the miner checks its own folder:

- the signature of `SHA256SUMS` next to it, with the release key built into the program;
- that the running program and every listed file match the list;
- that its fee settings match the release.

A copy that fails stops with exit code 2 and one of these lines:

```
Package check failed: <file> is missing next to the miner. Copy the whole package folder.
Package check failed: <reason>. Reinstall the official package.
Fee settings do not match this release. Reinstall the official package.
```

This is why the package folder must stay whole.

## What the miner connects to

The pool you set with `-o`. Once a day it fetches a signed file for its [update notice](https://sl0ptiminer.com/wiki/updates/) from `sl0ptiminer.com` and `github.com`; the request says nothing about your machine. It sends a [benchmark result](https://sl0ptiminer.com/benchmarks/#user-reports) to `bench.sl0ptiminer.com` only if you choose to share one, and a [fault report](https://sl0ptiminer.com/wiki/fault-report/) to the same address only when you run `sloptiminer report` and say yes. With [Home Assistant](https://sl0ptiminer.com/wiki/home-assistant/) turned on, it also connects to the MQTT broker you name. It reports no usage.

## The official sources

The official site is `https://sl0ptiminer.com`. The same signed packages are also on GitHub at `https://github.com/sl0ptiminer`, the second official source. A copy from anywhere else is ours only if it passes the signature check above.

## Report a security problem

Send it to `security@sl0ptiminer.com`. The same address is in [security.txt](https://sl0ptiminer.com/.well-known/security.txt).

When you report: say which version, which system and what you saw. Do not post wallet keys or passwords anywhere.
