sharenet_passport_creator/libs/sharenet-passport/src/lib.rs
2025-10-19 15:22:53 -04:00

30 lines
No EOL
907 B
Rust

//! Sharenet Passport Core Library
//!
//! This library provides core functionality for creating, managing, and verifying
//! Sharenet Passports using the .spf file format.
pub mod domain;
pub mod application;
pub mod infrastructure;
// Public API surface
pub use domain::entities::{Passport, RecoveryPhrase, PassportFile, PublicKey, PrivateKey, Did, Seed};
pub use domain::traits::{MnemonicGenerator, KeyDeriver, FileEncryptor, FileStorage};
pub use domain::error::DomainError;
pub use application::use_cases::{
CreatePassportUseCase,
ImportFromRecoveryUseCase,
ImportFromFileUseCase,
ExportPassportUseCase,
SignCardUseCase
};
pub use application::error::ApplicationError;
// Re-export infrastructure implementations (automatically selected by target)
pub use infrastructure::{
Bip39MnemonicGenerator,
Ed25519KeyDeriver,
XChaCha20FileEncryptor,
FileSystemStorage,
};