trust
ptwm_core::trust::org
Org trust manifests — signed TOML files vouching for member author keys.
ptwm_core::trust::org
Org trust manifests — signed TOML files vouching for member author keys.
ptwm_core::trust::org
crates/ptwm-core/src/trust/org.rs:1mod orgOrg trust manifests — signed TOML files vouching for member author keys.
Lifecycle:
1. Org publishes <manifest>.toml at a URL + a sibling <manifest>.toml.sig.
2. User runs `ptwm trust add --org <URL>`.
3. PTWM fetches both, verifies the manifest signature against
`org.key`, parses members, adds the *org key* to the user's
keyring; member keys are trusted transitively by the verifier
when the contribution's pubkey matches a member.
`fetch_and_verify` does the network work for tests we mock with a
local file path (so this file's tests don't make HTTP calls).
ptwm_core::trust::org::fetch_and_verify
crates/ptwm-core/src/trust/org.rs:94pub fn fetch_and_verify(url: &str) -> Result<OrgManifest, ExtensionError>Fetch the manifest and signature from a URL pair `(<url>, <url>.sig)`. Uses `ureq` (blocking) with a 30 s timeout. Returns the verified manifest.
ptwm_core::trust::org::load_and_verify_files
crates/ptwm-core/src/trust/org.rs:115pub fn load_and_verify_files(body_path: &Path, sig_path: &Path) -> Result<OrgManifest, ExtensionError>Fixture-friendly variant: load body+sig from a local pair of files.
ptwm_core::trust::org::OrgHeader
crates/ptwm-core/src/trust/org.rs:33pub struct OrgHeaderptwm_core::trust::org::OrgManifest
crates/ptwm-core/src/trust/org.rs:24pub struct OrgManifestptwm_core::trust::org::OrgMember
crates/ptwm-core/src/trust/org.rs:40pub struct OrgMemberptwm_core::trust::org::OrgScope
crates/ptwm-core/src/trust/org.rs:49pub struct OrgScope