|
|
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.
The documentation for this struct was generated from the following files: