Blockchain — Governance Layer Documentation
This folder documents the blockchain layer of the HDT-AF project: architecture, smart contracts, world state assets, on-chain/off-chain policy, integration with the rest of the system, and implementation status.
Index
| Document |
Content |
| 01-overview.md |
Role of the blockchain, decision for Hyperledger Fabric, on-chain vs. off-chain principle |
| 02-chaincodes.md |
Three smart contracts: operations, validations, state machines |
| 03-assets-world-state.md |
Six asset types, fields, composite keys, invariants |
| 04-system-integration.md |
Ledger modes, FabricCliLedgerMirror, environment variables, next step with the Gateway SDK |
Code location
| Artifact |
Path |
| Real chaincodes (Fabric) |
deploy/fabric/chaincode/federated-governance-java/ |
| In-memory simulators |
modules/federated-chaincode/ (ClientConsentChaincode and federated-experiment simulators) |
| Admin API integration |
modules/federated-rest-api/src/main/java/br/ufma/lsdi/admin/ |
| Packaging script |
scripts/fabric-package-chaincode.sh |
| Generated package |
target/fabric/federated-governance-chaincode.tar.gz |