1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// crate-level allow during curve-agnostic refactor.
//! # auths-core
//!
//! Core cryptographic primitives and secure key storage for Auths.
//!
//! This crate provides:
//! - **Secure key storage** via platform keychains (macOS, Windows, Linux)
//! - **Signing operations** through the [`signing::SecureSigner`] trait
//! - **Passphrase handling** with [`signing::PassphraseProvider`] abstraction
//! - **Error types** for all failure modes
//!
//! ## Quick Start
//!
//! ```rust,ignore
//! use auths_core::storage::keychain::get_platform_keychain;
//! use auths_core::signing::{StorageSigner, SecureSigner};
//!
//! // Get the platform-appropriate keychain
//! let keychain = get_platform_keychain()?;
//! let signer = StorageSigner::new(keychain);
//!
//! // Sign with a stored key
//! let signature = signer.sign_with_alias("my-key", &provider, b"message")?;
//! ```
//!
//! ## Feature Flags
//!
//! - `keychain-linux-secretservice` — Enable Linux Secret Service backend
//! - `keychain-windows` — Enable Windows Credential Manager backend
//! - `keychain-file-fallback` — Enable encrypted file storage fallback
//! - `crypto-secp256k1` — Enable secp256k1/BIP340 for Nostr
//! - `test-utils` — Export test utilities (e.g., in-memory keychain for testing)
//!
//! ## Platform Support
//!
//! | Platform | Keychain | Feature Required |
//! |----------|----------|-----------------|
//! | macOS/iOS | Keychain Services | (default) |
//! | Linux | Secret Service | `keychain-linux-secretservice` |
//! | Windows | Credential Manager | `keychain-windows` |
//! | Any | Encrypted file | `keychain-file-fallback` |
pub use ;
// IMPORTANT: These agent client functions use Unix domain sockets and are only
// available on Unix. Do NOT remove this #[cfg(unix)] — it will break Windows CI.
pub use ;
pub use ;
pub use ;
pub use ;