NAC_Blockchain/docs/deployment/ISSUE_078_079_WORKLOG.md

114 lines
4.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Issue #78 & #79 工单日志protocol/ 和 rwa/ 目录分组重组
**日期**: 2026-03-07
**执行人**: NAC 开发团队
**提交哈希**: 74d88fc
---
## 背景
Issue #78#79 是从 nac-admin 目录重组工作(目录重组工单)延伸出来的后续工单。
原问题:所有模块都被错误归集到 nac-admin 目录,导致中心化联想混乱。
本次工单完成顶层目录的最终分层。
---
## Issue #78protocol/ 分组
### 迁移模块15个
| 模块 | 功能 | 编译状态 |
|------|------|---------|
| protocol/nac-udm | 统一数据模型 | ✅ |
| protocol/nac-cbpp | CBPP 共识协议 | ✅ |
| protocol/nac-cbpp-l0 | CBPP L0 层 | ✅ |
| protocol/nac-cbpp-l1 | CBPP L1 层 | ✅ |
| protocol/nac-csnp | CSNP 网络协议 | ✅ |
| protocol/nac-csnp-l0 | CSNP L0 层(新增 sha3 依赖)| ✅ |
| protocol/nac-csnp-l1 | CSNP L1 层 | ✅ |
| protocol/nac-csnp-service | CSNP 服务 | ✅ |
| protocol/nac-nvm | NVM 虚拟机 | ✅ |
| protocol/nac-nvm-service | NVM 服务 | ✅ |
| protocol/nac-constitution | 宪法文件CNNL 格式)| ✅ |
| protocol/nac-constitution-clauses | 宪法条款(修复 review_committee 字段)| ✅ |
| protocol/nac-constitution-service | 宪法服务 | ✅ |
| protocol/nac-constitution-upgrade | 宪法升级 | ✅ |
| protocol/nac-lens | NAC_Lens 协议 | ✅ |
### 修复的历史问题
- nac-csnp-l0 缺少 sha3 依赖 → 已添加
- nac-constitution-clauses 使用了不存在的 `review_committee` 字段 → 修复为 `authorized_jurisdiction_cas`
---
## Issue #79rwa/ 分组
### 迁移模块12个
| 模块 | 功能 | 编译状态 |
|------|------|---------|
| rwa/nac-rwa-legal-model | RWA 法律要素抽象模型 | ✅ |
| rwa/nac-rwa-jurisdiction-adapters | 11个核心辖区适配器 | ✅ |
| rwa/nac-rwa-contract-templates | 合约模板库 | ✅ |
| rwa/nac-rwa-bilateral-rules | 双边贸易规则矩阵 | ✅ |
| rwa/nac-rwa-sharia-compliance | 伊斯兰合规合约层 | ✅ |
| rwa/nac-jurisdiction-rules | 辖区规则(金融合规层)| ✅ |
| rwa/nac-jurisdiction-compat | 辖区跨版本兼容性检测 | ✅ |
| rwa/nac-jurisdiction-version | 辖区版本管理 | ✅ |
| rwa/nac-lens-jurisdiction-router | NAC_Lens 辖区路由层 | ✅ |
| rwa/nac-rwa-exchange | RWA 交易所 | ✅ |
| rwa/nac-asset-onboarding | 资产上链服务 | ✅ |
| rwa/nac-multi-jurisdiction | 多辖区支持 | ✅ |
### 归档模块
- `_archive/nac-onboarding-system-legacy`:存在 173 个历史遗留编译错误API 不匹配),已归档待重构
---
## 最终目录结构
```
NAC_Blockchain/
├── protocol/ ← 区块链协议层CBPP/CSNP/NVM/宪法/NAC_Lens
├── rwa/ ← RWA 资产上链体系(法律模型/辖区/合约/双边规则/Sharia
├── services/ ← 对外服务API网关/量子浏览器/知识库/RWA门户/协议注册)
├── ops/ ← 运维层nac-admin/monitor/daemon/deploy/cee-integration
├── sdk/ ← 开发者工具nac-sdk/nac-cli/nac-serde
└── _archive/ ← 归档(旧版本/遗留代码)
```
---
## 验证结果
### 主网服务(全部 active
- nac-cbpp-node: active ✅
- nac-l0-csnp: active ✅
- nac-l1-nvm: active ✅
- nac-constitution-service: active ✅
- nac-api-server v3.1.0: active ✅
- nac-cee-integration: active ✅
### RWA API 端点(全部正常)
- GET /api/v1/rwa/health → status: ok ✅
- GET /api/v1/rwa/jurisdictions → 11 个辖区 ✅
- GET /api/v1/rwa/bilateral → 12 对双边规则 ✅
### 域名访问(全部正常)
- api.newassetchain.io: HTTP 200 ✅
- explorer.newassetchain.io: HTTP 200 ✅
- id.newassetchain.io: HTTP 200 ✅
- git.newassetchain.io: HTTP 200 ✅
---
## 后台管理账号
| 服务 | 地址 | 账号 | 密码 |
|------|------|------|------|
| SSH | 103.96.148.7:22000 | root | XKUigTFMJXhH |
| 宝塔面板 | http://103.96.148.7:12/btwest | cproot | vajngkvf |
| Gitea | https://git.newassetchain.io | nacadmin | NACadmin2026! |
| MongoDB | 103.96.148.7 | root | idP0ZaRGyLsTUA3a |