Loop Timing Witness
Native controller and runtime interfaces; hardware qualification pending
Loading...
Searching...
No Matches
file_digest.h
Go to the documentation of this file.
1// SPDX-License-Identifier: AGPL-3.0-or-later
2// Commercial license available
3// © Concepts 1996–2026 Miroslav Šotek. All rights reserved.
4// © Code 2020–2026 Miroslav Šotek. All rights reserved.
5// ORCID: 0009-0009-3560-0851
6// Contact: www.anulum.li | protoscience@anulum.li
7// Loop Timing Witness — native artifact content receipts
8
12
13#ifndef WITNESS_FILE_DIGEST_H
14#define WITNESS_FILE_DIGEST_H
15#include <cstdint>
16#include <string>
17#include <vector>
18
19namespace witness {
21struct FileDigest {
22 std::string sha256;
23 std::uint64_t bytes = 0;
24};
25
27 const char *role;
29};
30
31FileDigest file_digest(const char *path);
33void verify_digest(const char *path, const FileDigest &original);
34} // namespace witness
47
48#endif
FileDigest file_digest(const char *path)
void verify_digest(const char *path, const FileDigest &original)
std::string sha256
Definition file_digest.h:22
std::uint64_t bytes
Definition file_digest.h:23