Some checks are pending
Sharenet Passport CI / test-native (push) Waiting to run
Sharenet Passport CI / test-wasm-headless (push) Waiting to run
Sharenet Passport CI / test-wasm-webdriver (push) Waiting to run
Sharenet Passport CI / build-wasm (push) Waiting to run
Sharenet Passport CI / lint (push) Waiting to run
37 lines
No EOL
1,017 B
Rust
37 lines
No EOL
1,017 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;
|
|
|
|
#[cfg(target_arch = "wasm32")]
|
|
pub mod wasm;
|
|
|
|
#[cfg(target_arch = "wasm32")]
|
|
#[cfg(test)]
|
|
pub mod wasm_test;
|
|
|
|
// 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,
|
|
}; |