mirror of
https://codeberg.org/Toasterson/ips.git
synced 2026-04-10 13:20:42 +00:00
- Store compressed payloads under the primary (uncompressed) hash as the main key, matching IPS protocol where clients request files by the manifest's primary hash via /file/0/<hash> - Create hardlink under compressed hash for internal lookups - Detect SHA256 (64 chars) vs SHA1 (40 chars) from bare hex hash length in Digest::from_str instead of always defaulting to SHA1 - Remove digest verification for local file copies in FileBackend (files are compressed, hash is of uncompressed content) - Simplify recv.rs payload fetch to use primary hash directly instead of trying multiple digest formats against the source |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| .gitignore | ||
| Cargo.toml | ||