How harsh-singh-2023/vea-bft-implementation works
VEA-BFT is a federated healthcare learning simulation: hospitals train locally and submit encrypted, proven updates; validators verify and aggregate them through PBFT; a threshold committee decrypts the accepted aggregate, while a Solidity ledger anchors rounds for later replay. The graph also preserves documented committee rotation, noise-budget bootstrapping, evaluation, reporting, and dashboard capabilities. Edges follow the README and shown source references; unsampled internals are represented at supported paths without assuming their call details.
Main entry points: federation.ts Round Orchestrator · hospital.ts Hospital Updates · validator.ts Validator Checks · ledger.ts Ledger Client
Components 21
Federated Learning
- Clinical Data Prep
src/ml/dataset.ts - Local Logistic Training
src/ml/logreg.ts - Hospital Updates
src/nodes/hospital.ts
Privacy and Keys
- Paillier Encryption
src/crypto/paillier.ts - Update Proofs
src/crypto/sigma.ts - Threshold Decryption
src/crypto/threshold.ts - Committee Members
src/nodes/committee.ts
Validation and Ledger
- Validator Checks
src/nodes/validator.ts - PBFT Consensus
src/consensus/pbft.ts - Ledger Client
src/chain/ledger.ts - Round Ledger
contracts/VEABFTLedger.sol
Federation Operations
- Round Orchestrator
src/orchestrator/federation.ts - Content Store
src/storage/contentStore.ts - Blob and Proposal Types
src/protocol.ts - Committee Resharing
src/crypto/threshold.ts - Round Audit and Replay
src/orchestrator/federation.ts - Noise Budget Bootstrap
src/orchestrator/federation.ts
Evaluation and UI
- Paper Evaluation
src/cli/evaluate.ts - SVG Reports
src/report/svg.ts - Dashboard Server
src/server/server.ts
Other components
- Hospitals
Connections 27
- Hospitals → Hospital Updates: submits updates
README.md - Round Orchestrator → Clinical Data Prep: loads prepared data
src/orchestrator/federation.ts - Hospital Updates → Clinical Data Prep: uses partitions
src/nodes/hospital.ts - Hospital Updates → Local Logistic Training: trains locally
README.md - Hospital Updates → Paillier Encryption: encrypts updates
src/nodes/hospital.ts - Hospital Updates → Update Proofs: proves updates
src/nodes/hospital.ts - Hospital Updates → Content Store: stores submissions
src/nodes/hospital.ts - Hospital Updates → Ledger Client: records submissions
src/nodes/hospital.ts - Round Orchestrator → Hospital Updates: coordinates
README.md - Round Orchestrator → Validator Checks: coordinates
README.md - Validator Checks → Update Proofs: verifies updates
src/nodes/validator.ts - Validator Checks → Content Store: reads blobs
src/nodes/validator.ts - Validator Checks → Ledger Client: checks ledger state
src/nodes/validator.ts - Round Orchestrator → PBFT Consensus: runs consensus
src/orchestrator/federation.ts - Round Orchestrator → Ledger Client: anchors rounds
src/orchestrator/federation.ts - Ledger Client → Round Ledger: calls contract
src/chain/ledger.ts - Round Orchestrator → Content Store: configures store
src/orchestrator/federation.ts - Round Orchestrator → Committee Members: coordinates decryption
README.md - Committee Members → Threshold Decryption: uses threshold shares
src/nodes/committee.ts - Round Orchestrator → Committee Resharing: rotates committee
README.md - Round Orchestrator → Round Audit and Replay: replays rounds
README.md - Round Orchestrator → Noise Budget Bootstrap: bootstraps budget
README.md - Round Orchestrator → Blob and Proposal Types: uses blob types
src/orchestrator/federation.ts - Paper Evaluation → Round Orchestrator: runs scenarios
src/cli/evaluate.ts - Paper Evaluation → Clinical Data Prep: loads datasets
src/cli/evaluate.ts - Paper Evaluation → SVG Reports: generates figures
src/cli/evaluate.ts - Dashboard Server → Round Orchestrator: serves federation
src/server/server.ts