ipfs-chromium
ipns_cbor_entry.h
1 #ifndef IPFS_IPNS_CBOR_ENTRY_H_
2 #define IPFS_IPNS_CBOR_ENTRY_H_
3 
4 #include <cstdint>
5 #include <string>
6 
7 namespace ipfs {
11 struct IpnsCborEntry {
12  std::string value;
13  std::string validity;
14  std::uint64_t validityType;
15  std::uint64_t sequence;
16  std::uint64_t ttl;
17 };
18 
19 } // namespace ipfs
20 
21 #endif // IPFS_IPNS_CBOR_ENTRY_H_
Parsed out data contained in the CBOR data of an IPNS record.
Definition: ipns_cbor_entry.h:11
std::uint64_t validityType
Way to deterimine current validity.
Definition: ipns_cbor_entry.h:14
std::uint64_t ttl
Recommended caching time.
Definition: ipns_cbor_entry.h:16
std::string validity
Value to compare for validity (i.e. expiration)
Definition: ipns_cbor_entry.h:13
std::uint64_t sequence
Distinguish other IPNS records for the same name.
Definition: ipns_cbor_entry.h:15
std::string value
The "value" (target) the name points at.
Definition: ipns_cbor_entry.h:12