MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / open_identity_store

Function open_identity_store

atomic-agent/src/identity.rs:161–166  ·  view source on GitHub ↗

Open the identity store at the given directory, or the default one. Returns `None` rather than failing: every caller here is on a best-effort path where recording must continue without identity data.

(identity_dir: Option<&Path>)

Source from the content-addressed store, hash-verified

159/// Returns `None` rather than failing: every caller here is on a
160/// best-effort path where recording must continue without identity data.
161fn open_identity_store(identity_dir: Option<&Path>) -> Option<atomic_identity::IdentityStore> {
162 match identity_dir {
163 Some(dir) => atomic_identity::IdentityStore::open(dir).ok(),
164 None => atomic_identity::IdentityStore::open_default().ok(),
165 }
166}
167
168/// The currently-selected delegated agent identity, if one resolves.
169///

Callers 2

resolve_turn_signerFunction · 0.85

Calls 2

openFunction · 0.85
okMethod · 0.45

Tested by

no test coverage detected