How ssi-hf-research/mmd-blockchain-agent works
This repository combines an Aries-style agent with a Hyperledger Fabric traceability application. The runtime agent supports DID connections and out-of-band invitations, proof exchange and revocation, ledger access, wallet-backed credentials, and message transport; the tree also shows Fabric contracts and application clients for products, quality assurance, standards, and alert rules. The excerpts show selected service-to-repository and initialization relationships, but not the full application wiring or the contract clients’ behavior. Consequently, the Fabric capability branches are represented without guessed call paths.
Main entry points: Agent.kt Aries agent · ConnectionService.kt Connection exchange · DidExchangeService.kt DID exchange · OutOfBandService.kt Out-of-band invitations
Components 20
Agent runtime
- Aries agent
src/main/kotlin/org/hyperledger/ariesframework/agent/Agent.kt - Wallet
src/main/kotlin/org/hyperledger/ariesframework/wallet/Wallet.kt - Message transport
src/main/kotlin/org/hyperledger/ariesframework/agent/MessageReceiver.kt
Identity workflows
- Connection exchange
src/main/kotlin/org/hyperledger/ariesframework/connection/ConnectionService.kt - DID exchange
src/main/kotlin/org/hyperledger/ariesframework/connection/DidExchangeService.kt - Out-of-band invitations
src/main/kotlin/org/hyperledger/ariesframework/oob/OutOfBandService.kt - Connection records
src/main/kotlin/org/hyperledger/ariesframework/connection/repository/ConnectionRecord.kt
Ledger and proofs
- Proof exchange
src/main/kotlin/org/hyperledger/ariesframework/proofs/ProofService.kt - Revocation support
src/main/kotlin/org/hyperledger/ariesframework/proofs/RevocationService.kt - Anoncreds service
src/main/kotlin/org/hyperledger/ariesframework/anoncreds/AnoncredsService.kt - Ledger service
src/main/kotlin/org/hyperledger/ariesframework/ledger/LedgerService.kt
Traceability contracts
- Product contract
chaincode/tsp/javascript/product-contract/chaincode/ProductContract.js - Product application
chaincode/tsp/javascript/product-contract/application/app-listener.js - Quality contract
chaincode/tsp/javascript/quality-assurance-contract/chaincode/QualityAssuranceContract.js - QA applications
chaincode/tsp/javascript/quality-assurance-contract/application/honey-qa.js - Honey standards
chaincode/tsp/javascript/standard-honey-contract/chaincode/StandardHoneyContract.js - Olive oil standards
chaincode/tsp/javascript/standard-olive-oil-contract/chaincode/StandardOliveOilContract.js - Alert control
chaincode/tsp/javascript/alert-control-contract/chaincode/AlertControlContract.js
Other components
- Agent operator
- Fabric network
Connections 20
- Agent operator → Aries agent: operates
- Aries agent → Wallet: initializes
src/main/kotlin/org/hyperledger/ariesframework/agent/Agent.kt - Aries agent → Connection exchange: creates
src/main/kotlin/org/hyperledger/ariesframework/agent/Agent.kt - Aries agent → DID exchange: creates
src/main/kotlin/org/hyperledger/ariesframework/agent/Agent.kt - Aries agent → Out-of-band invitations: creates
src/main/kotlin/org/hyperledger/ariesframework/agent/Agent.kt - Aries agent → Ledger service: initializes optionally
src/main/kotlin/org/hyperledger/ariesframework/agent/Agent.kt - Connection exchange → Connection records: saves and updates
src/main/kotlin/org/hyperledger/ariesframework/connection/ConnectionService.kt - Connection exchange → Aries agent: publishes events
src/main/kotlin/org/hyperledger/ariesframework/connection/ConnectionService.kt - DID exchange → Connection records: saves and updates
src/main/kotlin/org/hyperledger/ariesframework/connection/DidExchangeService.kt - DID exchange → Aries agent: publishes events
src/main/kotlin/org/hyperledger/ariesframework/connection/DidExchangeService.kt - Out-of-band invitations → Aries agent: publishes events
src/main/kotlin/org/hyperledger/ariesframework/oob/OutOfBandService.kt - Proof exchange → Aries agent: publishes events
src/main/kotlin/org/hyperledger/ariesframework/proofs/ProofService.kt - Revocation support → Ledger service: fetches registry data
src/main/kotlin/org/hyperledger/ariesframework/proofs/RevocationService.kt - Product application → Product contract: invokes
- Product contract → Fabric network: records product data
- QA applications → Quality contract: invokes
- Quality contract → Fabric network: records QA data
- Honey standards → Fabric network: stores standards
- Olive oil standards → Fabric network: stores standards
- Alert control → Fabric network: stores alert rules