A new pair of passwordless ssh keys: ssh-keygen -t ed25519 -f tortuga_key
A host_key file containing the server public key: go run hostkey.go myhostname (requires ssh-keyscan, replace 'myhostname' with your actual hostname)
A host_address file containing the address and port to use for the server (can be an IP) (www.example.com:22), make sure to not include a new line at the end of the file.
Diff returns the difference between cc and a.
This is used to evaluate what has to be fetched from the server.
Since the file hash in the local cache is computed locally this mechanism
intrinsically makes sure that if the file is corrupted it will be re downloaded
next time.