trust
π€ AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
flavor.config.trust
¶
Trusted key store for FlavorPack package signature verification.
Functions¶
compute_key_fingerprint
¶
Return the SHA-256 fingerprint of an Ed25519 public key.
The fingerprint is SHA-256 of the raw 32-byte key material, hex-encoded (64 ASCII characters, lowercase).
Source code in flavor/config/trust.py
is_key_trusted
¶
Check whether a key fingerprint is in the trusted store.
Returns:
| Type | Description |
|---|---|
bool | None
|
True β fingerprint found in store |
bool | None
|
False β store exists but fingerprint not found |
bool | None
|
None β no store directories exist (no-op / backwards-compat mode) |
Source code in flavor/config/trust.py
load_trusted_keys
¶
Load all trusted keys from user and (optionally) system stores.