A v3 Tor onion service uses three key files stored in the hidden service directory (typically /var/lib/tor/hidden_service/):
hs_ed25519_secret_key- The master private key that derives your .onion address. This is the most critical file. If compromised, an attacker can impersonate your service.hs_ed25519_public_key- The corresponding public key. Can be regenerated from the secret key but is convenient to keep.hostname- A text file containing your .onion address. This is derived from the public key and can always be regenerated.
The hs_ed25519_secret_key file is only 96 bytes but it is the single most important file in your entire Tor hidden service deployment. Losing it means losing your .onion address permanently. Having it stolen means someone else can publish descriptors for your address and redirect your traffic.