Fetching files
export DEADDROP_KEY=AGE-SECRET-KEY-1... # the key from `serve`deaddrop fetch blobaa... # write files into the current directorydeaddrop fetch blobaa... -o ~/dl # write files into ~/dlWhat happens
Section titled “What happens”- The client connects to the server named in the ticket over iroh. It tries a direct connection (with NAT hole punching) and falls back to a relay.
- It downloads the whole encrypted collection into a temporary folder,
.deaddrop-<hash>, inside the output folder, checking every chunk against its BLAKE3 hash. - It decrypts the manifest and each file with the key and writes them out under their original names. Then the temporary folder is deleted.
- It disconnects, which lets a single-use server shut down.
Safety checks
Section titled “Safety checks”- A wrong key or tampered data is an error. age authenticates every chunk, and no partial file is left under the real name.
- File names that are absolute or contain
..are refused, so a malicious server can’t makefetchwrite outside the output folder.
Options
Section titled “Options”| Flag | Meaning |
|---|---|
TICKET |
The ticket printed by deaddrop serve (starts with blob). |
-o, --out <DIR> |
Directory to write the files into. Default: the current directory, or [fetch] out from the config file. |
--key <KEY> |
The decryption key (AGE-SECRET-KEY-1...). Prefer DEADDROP_KEY. |