Files
ssw-mpc/crates/mpc-cli/Cargo.toml
T
admin b15f0268bf feat(chain): 阶段 2 链上层形状层,新增主门禁第 14 条
- 新增 crates/mpc-chain:链上对象规范编码、SM3 摘要、FISCO BCOS 3.x eth_* JSON-RPC 客户端、幂等 outbox、成员准入、Signer 形状层
- 新增 mpc chain digest|submit|flush|status|admit 命令族
- 新增 tools/selftest-chain.py 桩自测(44 判据),主门禁 13 → 14 条
- 同步 catalog 守卫、domain 域分隔、CLAUDE.md、INTEGRATION_ANALYSIS.md

边界:ModuleSigner / RLP / 国密模组 provider 未落地;flush 发的是规范字节而非已签名交易,未配置签名器即拒绝,本期不宣称能上链。
2026-11-07 16:48:08 +08:00

44 lines
1.9 KiB
TOML
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.
[package]
name = "mpc-cli"
description = "mpc 单二进制入口"
version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
[[bin]]
name = "mpc"
path = "src/main.rs"
[dependencies]
mpc-core = { workspace = true, features = ["std"] }
# workspace 里默认关 std(为 TA 的 no_std 构建);CLI 要 mock 实现,必须显式开
mpc-tee = { workspace = true, features = ["std"] }
# 宿主控制面(e2b 兼容 API + TeeRuntime)独立成 crate:mpc-tee 要被拷进
# OP-TEE SDK 做 armv7 离线交叉编译,不能沾 crates.io 依赖。
mpc-hostd = { path = "../mpc-hostd" }
# 链上层形状:对象规范编码 / JSON-RPC / 幂等 outbox(本期无 FFI、无模组签名)
mpc-chain = { path = "../mpc-chain" }
mpc-node = { path = "../mpc-node" }
mpc-orch = { path = "../mpc-orch" }
# 计算域(明文/密态)抽象:selftest 里验证「同一份表达式两域同结果」。
mpc-runtime = { path = "../mpc-runtime" }
mpc-psi = { path = "../mpc-psi" }
# 算子图 IR:`mpc plan` 用它把「要算什么」编译成「几轮交互」。
mpc-ir = { path = "../mpc-ir" }
mpc-ml = { path = "../mpc-ml" }
mpc-fl = { path = "../mpc-fl" }
# 可选:`mpc sql` 密态 SQL 演示(in-process 2 方,需 --features secure)。
mpc-sql = { path = "../mpc-sql", optional = true }
mpc-vault = { path = "../mpc-vault", optional = true }
# 可选:`mpc sql-join --pg-url` 直连 PostgreSQL 取本方数据(零外部依赖的自研协议客户端)。
mpc-data = { path = "../mpc-data", optional = true }
# 可选:接入 Ray 集群做成员目录。默认关闭——铁律是 mpc 单二进制,
# 开了这个 feature 会动态依赖 libmpc_ray.so + libpython,产物不再自包含。
mpc-ray = { path = "../mpc-ray", optional = true }
[features]
default = []
ray = ["mpc-ray/probe"]
secure = ["dep:mpc-sql", "mpc-sql/secure", "dep:mpc-vault", "dep:mpc-data"]