|
bool | operator== (const ValidPathInfo &) const =default |
|
auto | operator<=> (const ValidPathInfo &) const =default |
|
std::string | fingerprint (const Store &store) const |
|
void | sign (const Store &store, const Signer &signer) |
|
std::optional< ContentAddressWithReferences > | contentAddressWithReferences () const |
|
bool | isContentAddressed (const Store &store) const |
|
size_t | checkSignatures (const Store &store, const PublicKeys &publicKeys) const |
|
bool | checkSignature (const Store &store, const PublicKeys &publicKeys, const std::string &sig) const |
|
Strings | shortRefs () const |
|
| ValidPathInfo (StorePath &&path, UnkeyedValidPathInfo info) |
|
| ValidPathInfo (const StorePath &path, UnkeyedValidPathInfo info) |
|
| ValidPathInfo (const Store &store, std::string_view name, ContentAddressWithReferences &&ca, Hash narHash) |
|
| UnkeyedValidPathInfo (const UnkeyedValidPathInfo &other)=default |
|
| UnkeyedValidPathInfo (Hash narHash) |
|
bool | operator== (const UnkeyedValidPathInfo &) const noexcept |
|
std::weak_ordering | operator<=> (const UnkeyedValidPathInfo &) const noexcept |
|
virtual nlohmann::json | toJSON (const Store &store, bool includeImpureInfo, HashFormat hashFormat) const |
|
|
static const size_t | maxSigs = std::numeric_limits<size_t>::max() |
|
◆ checkSignature()
bool nix::ValidPathInfo::checkSignature |
( |
const Store & | store, |
|
|
const PublicKeys & | publicKeys, |
|
|
const std::string & | sig ) const |
Verify a single signature.
◆ checkSignatures()
size_t nix::ValidPathInfo::checkSignatures |
( |
const Store & | store, |
|
|
const PublicKeys & | publicKeys ) const |
Return the number of signatures on this .narinfo that were produced by one of the specified keys, or maxSigs if the path is content-addressed.
◆ contentAddressWithReferences()
- Returns
- The
ContentAddressWithReferences
that determines the store path for a content-addressed store object, std::nullopt
for an input-addressed store object.
◆ fingerprint()
std::string nix::ValidPathInfo::fingerprint |
( |
const Store & | store | ) |
const |
Return a fingerprint of the store path to be used in binary cache signatures. It contains the store path, the base-32 SHA-256 hash of the NAR serialisation of the path, the size of the NAR, and the sorted references. The size field is strictly speaking superfluous, but might prevent endless/excessive data attacks.
◆ isContentAddressed()
bool nix::ValidPathInfo::isContentAddressed |
( |
const Store & | store | ) |
const |
- Returns
- true iff the path is verifiably content-addressed.
◆ shortRefs()
Strings nix::ValidPathInfo::shortRefs |
( |
| ) |
const |
References as store path basenames, including a self reference if it has one.
The documentation for this struct was generated from the following files:
- /home/buildozer/aports/community/nix/src/nix-2.26.3/src/libstore/path-info.hh
- /home/buildozer/aports/community/nix/src/nix-2.26.3/src/libstore/path-info.cc