PTWM
trust

ptwm_core::trust::bundled

Bundled-then-pinned trust state evaluator.

ptwm_core::trust::bundled

Bundled-then-pinned trust state evaluator.

rsmod

ptwm_core::trust::bundled

crates/ptwm-core/src/trust/bundled.rs:1
mod bundled

Bundled-then-pinned trust state evaluator.

rsfn

ptwm_core::trust::bundled::accept_update

crates/ptwm-core/src/trust/bundled.rs:153
pub fn accept_update(new_hash: &[u8; 32]) -> Result<(), ExtensionError>

Accept an update — overwrites the lock and snapshot with the new state.

rsfn

ptwm_core::trust::bundled::apply_fresh_install

crates/ptwm-core/src/trust/bundled.rs:148
pub fn apply_fresh_install(hash: &[u8; 32]) -> Result<(), ExtensionError>

Apply a fresh-install state: persists the lock + snapshot.

rsfn

ptwm_core::trust::bundled::bundled_hash

crates/ptwm-core/src/trust/bundled.rs:16
pub fn bundled_hash() -> [u8; 32]
rsfn

ptwm_core::trust::bundled::bundled_keyring

crates/ptwm-core/src/trust/bundled.rs:12
pub fn bundled_keyring() -> Result<Keyring, ExtensionError>
rsconst

ptwm_core::trust::bundled::BUNDLED_TOML

crates/ptwm-core/src/trust/bundled.rs:10
pub const BUNDLED_TOML

Bundled keyring TOML, embedded at build time. Currently ships as an empty `entries = []`; later releases may add curated keys.

rstype

ptwm_core::trust::bundled::BundleStatus

crates/ptwm-core/src/trust/bundled.rs:107
pub enum BundleStatus
rsfn

ptwm_core::trust::bundled::diff_keyrings

crates/ptwm-core/src/trust/bundled.rs:77
pub fn diff_keyrings(old: &Keyring, new: &Keyring) -> KeyringDiff
rsfn

ptwm_core::trust::bundled::evaluate_bundled

crates/ptwm-core/src/trust/bundled.rs:122
pub fn evaluate_bundled() -> Result<BundleStatus, ExtensionError>
rstype

ptwm_core::trust::bundled::KeyringDiff

crates/ptwm-core/src/trust/bundled.rs:72
pub struct KeyringDiff
rsfn

ptwm_core::trust::bundled::lock_path

crates/ptwm-core/src/trust/bundled.rs:34
pub fn lock_path() -> PathBuf
rsfn

ptwm_core::trust::bundled::prev_keyring_path

crates/ptwm-core/src/trust/bundled.rs:41
pub fn prev_keyring_path() -> PathBuf
rsfn

ptwm_core::trust::bundled::read_lock

crates/ptwm-core/src/trust/bundled.rs:45
pub fn read_lock(path: &Path) -> Option<[u8; 32]>
rsfn

ptwm_core::trust::bundled::write_lock

crates/ptwm-core/src/trust/bundled.rs:56
pub fn write_lock(path: &Path, hash: &[u8; 32], bundled_toml: &str) -> Result<(), ExtensionError>
rsfn

ptwm_core::trust::bundled::xdg_config_dir

crates/ptwm-core/src/trust/bundled.rs:24
pub fn xdg_config_dir() -> PathBuf

$XDG_CONFIG_HOME/ptwm/trust/bundled.lock — or ~/.config/... fallback.