-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathlib.rs
More file actions
47 lines (39 loc) · 1.18 KB
/
Copy pathlib.rs
File metadata and controls
47 lines (39 loc) · 1.18 KB
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
#![no_std]
// ============================================================
// PrivacyLayer - Main Contract Entry Point
// ============================================================
// Modular privacy pool implementation with clean separation of concerns.
//
// Architecture:
// - contract/ : Contract interface and orchestration
// - core/ : Business logic (deposit, withdraw, admin)
// - crypto/ : Cryptographic operations (merkle, verifier)
// - storage/ : State management and data access
// - types/ : Shared types and errors
// - utils/ : Helper functions and validation
// ============================================================
// Core modules
mod contract;
mod core;
mod crypto;
mod storage;
mod types;
mod utils;
// Re-export main contract
pub use contract::{PrivacyPool, PrivacyPoolClient};
// Re-export public types for external use
pub use types::{
errors::Error,
events::*,
state::{
AnalyticsSnapshot, Denomination, PerformanceMetricKind, PoolConfig, Proof, PublicInputs,
VerifyingKey,
},
};
// Test modules
#[cfg(test)]
mod test;
#[cfg(test)]
mod integration_test;
#[cfg(test)]
mod privacy_audit_test;