-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloti_core.hpp
More file actions
23 lines (18 loc) · 865 Bytes
/
Copy pathloti_core.hpp
File metadata and controls
23 lines (18 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// loti-core — the pure protocol library.
//
// This header is a Stage-0 placeholder. Its only job right now is to give the
// loti_core target a public surface to compile, link, and test, proving the
// build split and the dependency rule (no OMNeT++/INET/OS includes here).
//
// The real API — the domain model, hashing, the DAG, the three discoveries,
// validation, and the port interfaces — arrives in later MVP stages
// (see plan/pending/mvp-dual-target.md and documentation/architecture.md).
#pragma once
#include <string_view>
namespace loti::core {
// Bumped when the on-the-wire / on-disk formats change incompatibly.
inline constexpr int protocol_version = 1;
// A trivial self-identification used by the smoke test to confirm the library
// builds and links.
[[nodiscard]] std::string_view library_id() noexcept;
} // namespace loti::core