// vdm/task/digest.hpp — internal: hash a finished file for checksum verification. #ifndef VDM_TASK_DIGEST_HPP #define VDM_TASK_DIGEST_HPP #include #include #include "vdm/task/download.hpp" #include "vdm/util/result.hpp" namespace vdm::task { // Stream `path` through the digest and return it lower-case hex. io_error on a read // failure, path_rejected if the file can't be opened. [[nodiscard]] Result hash_file(std::string_view path, Checksum::Algo algo); } // namespace vdm::task #endif // VDM_TASK_DIGEST_HPP