NAC Admin
|
a754adcee8
|
feat: 宪法层四项完善 - 条款拆分/SHA3-384哈希/L3对接/nac_lens协议
1. 条款文件拆分:amendments.cnnl -> 6个独立章节文件
- infrastructure.cnnl (A04-A08)
- asset_compliance.cnnl (A09-A16)
- governance.cnnl (A17-A24)
- xtzh_currency.cnnl (A25-A32)
- jurisdiction.cnnl (A33-A38)
- ai_compliance.cnnl (A39-A43)
2. constitution_hash 升级:新增 calculate_constitution_merkle_root()
使用 SHA3-384 计算所有激活条款的 Merkle 根(48字节/96位十六进制)
3. L3 存储层对接:state_database_ext.rs v2
- 新增 ConstitutionClauseId 枚举(A01-A56 完整56条)
- constitution_ref 字段类型安全验证
- ConstitutionRefValidator 验证器
4. nac_lens 协议对接:constitution-service main.rs v2
- 8个 nac_lens 方法(verify_clause/get_hash/issue_cr等)
- TCP 监听 22050 端口
- 完整请求/响应结构体
Issue: #CONSTITUTION-LAYER-002
Closes: 条款拆分/哈希升级/L3对接/nac_lens对接
|
2026-03-18 23:30:50 +08:00 |