Skip to main content

rvf_federation/
lib.rs

1//! Federated RVF transfer learning.
2//!
3//! This crate implements the federation protocol described in ADR-057:
4//! - **PII stripping**: Three-stage pipeline (detect, redact, attest)
5//! - **Differential privacy**: Gaussian/Laplace noise, RDP accountant, gradient clipping
6//! - **Federation protocol**: Export builder, import merger, version-aware conflict resolution
7//! - **Federated aggregation**: FedAvg, FedProx, Byzantine-tolerant weighted averaging
8//! - **Segment types**: FederatedManifest, DiffPrivacyProof, RedactionLog, AggregateWeights
9
10pub mod types;
11pub mod error;
12pub mod pii_strip;
13pub mod diff_privacy;
14pub mod federation;
15pub mod aggregate;
16pub mod policy;
17
18pub use types::*;
19pub use error::FederationError;
20pub use pii_strip::PiiStripper;
21pub use diff_privacy::{DiffPrivacyEngine, PrivacyAccountant};
22pub use federation::{ExportBuilder, ImportMerger};
23pub use aggregate::{FederatedAggregator, AggregationStrategy};
24pub use policy::FederationPolicy;