影响 - 传输层不再"知道端口就能冒充":PSK 挑战-应答,未配置时显式告警 - 参与方参数不一致可归因(逐字段对表,不再只说"指纹不同") - 长跑不再整表进内存:CSV 真流式,PG 可直连 - 所有子命令支持 --report json,stdout 只出结构化结果,诊断走 stderr - 作业支持 DAG 与落盘状态,失败/跳过/重来可追溯 - 计算域抽象落地,dry_run 开关第一次有消费者 改动 - nax-core: 新增 hmac(HMAC-SHA256 / ct_eq / derive_labeled);pg 的 HMAC 改为委托,删重复实现 - nax-node: 新增 auth(REQ/ACK/OK,ctx 绑定双方序号与双 nonce,双 label 防回打)、entropy(只读 /dev/urandom,不降级) - nax-proto: 新增 Op::Manifest,显式拼字节避开长度前缀错位 - nax-vault: exchange_manifest 比对版本/参与方/fxp/键值清单,三种差异分别点名 - nax-data: 新增 source(TableSource/Batch/CsvSource,流式与整表逐位一致);新增 pg 客户端(自研 wire、trust/md5/SCRAM、零外部依赖) - nax-orch: 新增 plan(文本计划 + 拓扑校验)、state(append-only JSONL)、run_jobs;协议加 SKIP,单作业模式逐字不变;每作业派生种子避免 Beaver 三元组复用 - nax-runtime: 新增 device(Value/Device/Plain/Secret);域是数据属性,单方搬不回明文;非线性算子在密态域显式拒绝而不是给出错掩码 - nax-cli: 新增 report 模块(Cell/table/kv/note!)、selfcheck(含 TEE 签名)、pg(列类型摊开)、orch run|status - tools/pg-dev: PGlite + PG-wire 壳、两方种子库、e2e.sh 20 条断言 设计(明确拒绝的方案) - 设备抽象不做 eval(op) 分发:线性算子对加性分片天然透明,多一层间接只多一个没人用的入口;非线性算子要换协议,不是换指针 - DAG 计划用文本不用 JSON:现场手改要能报"第 2 行:不认识的指令 retries",而 serde_json 与单二进制目标冲突 - 端到端用 PGlite 而非系统 PostgreSQL:同一份源码编成 WASM,无需常驻服务 回归 - cargo test --workspace --features secure → 338 通过 / 0 失败 - cargo build --workspace --all-targets --features secure → 零代码告警 - cargo build -p nax-core --no-default-features → no_std 守线通过 - tools/pg-dev/e2e.sh 两轮真 TCP + 真 PSI + 真密态聚合,两方输出逐字段一致
249 lines
4.6 KiB
TOML
249 lines
4.6 KiB
TOML
# This file is automatically @generated by Cargo.
|
|
# It is not intended for manual editing.
|
|
version = 4
|
|
|
|
[[package]]
|
|
name = "cfg-if"
|
|
version = "1.0.5"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
|
|
[[package]]
|
|
name = "cpufeatures"
|
|
version = "0.2.17"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
|
|
dependencies = [
|
|
"libc",
|
|
]
|
|
|
|
[[package]]
|
|
name = "curve25519-dalek"
|
|
version = "4.1.3"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be"
|
|
dependencies = [
|
|
"cfg-if",
|
|
"cpufeatures",
|
|
"curve25519-dalek-derive",
|
|
"fiat-crypto",
|
|
"rustc_version",
|
|
"subtle",
|
|
"zeroize",
|
|
]
|
|
|
|
[[package]]
|
|
name = "curve25519-dalek-derive"
|
|
version = "0.1.1"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3"
|
|
dependencies = [
|
|
"proc-macro2",
|
|
"quote",
|
|
"syn",
|
|
]
|
|
|
|
[[package]]
|
|
name = "fiat-crypto"
|
|
version = "0.2.9"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d"
|
|
|
|
[[package]]
|
|
name = "libc"
|
|
version = "0.2.191"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
|
|
[[package]]
|
|
name = "nax-cli"
|
|
version = "0.1.0"
|
|
dependencies = [
|
|
"nax-core",
|
|
"nax-data",
|
|
"nax-fl",
|
|
"nax-ml",
|
|
"nax-node",
|
|
"nax-orch",
|
|
"nax-psi",
|
|
"nax-ray",
|
|
"nax-runtime",
|
|
"nax-sql",
|
|
"nax-tee",
|
|
"nax-vault",
|
|
]
|
|
|
|
[[package]]
|
|
name = "nax-core"
|
|
version = "0.1.0"
|
|
|
|
[[package]]
|
|
name = "nax-data"
|
|
version = "0.1.0"
|
|
dependencies = [
|
|
"nax-core",
|
|
]
|
|
|
|
[[package]]
|
|
name = "nax-fl"
|
|
version = "0.1.0"
|
|
dependencies = [
|
|
"nax-core",
|
|
"nax-vault",
|
|
]
|
|
|
|
[[package]]
|
|
name = "nax-he"
|
|
version = "0.1.0"
|
|
dependencies = [
|
|
"nax-core",
|
|
]
|
|
|
|
[[package]]
|
|
name = "nax-ml"
|
|
version = "0.1.0"
|
|
dependencies = [
|
|
"nax-core",
|
|
"nax-vault",
|
|
]
|
|
|
|
[[package]]
|
|
name = "nax-node"
|
|
version = "0.1.0"
|
|
dependencies = [
|
|
"nax-core",
|
|
"nax-ml",
|
|
"nax-proto",
|
|
"nax-psi",
|
|
"nax-vault",
|
|
]
|
|
|
|
[[package]]
|
|
name = "nax-orch"
|
|
version = "0.1.0"
|
|
dependencies = [
|
|
"nax-core",
|
|
]
|
|
|
|
[[package]]
|
|
name = "nax-policy"
|
|
version = "0.1.0"
|
|
|
|
[[package]]
|
|
name = "nax-proto"
|
|
version = "0.1.0"
|
|
|
|
[[package]]
|
|
name = "nax-psi"
|
|
version = "0.1.0"
|
|
dependencies = [
|
|
"curve25519-dalek",
|
|
"nax-core",
|
|
]
|
|
|
|
[[package]]
|
|
name = "nax-ray"
|
|
version = "0.1.0"
|
|
|
|
[[package]]
|
|
name = "nax-runtime"
|
|
version = "0.1.0"
|
|
dependencies = [
|
|
"nax-core",
|
|
]
|
|
|
|
[[package]]
|
|
name = "nax-sql"
|
|
version = "0.1.0"
|
|
dependencies = [
|
|
"nax-core",
|
|
"nax-node",
|
|
"nax-psi",
|
|
"nax-vault",
|
|
]
|
|
|
|
[[package]]
|
|
name = "nax-tee"
|
|
version = "0.1.0"
|
|
dependencies = [
|
|
"nax-core",
|
|
]
|
|
|
|
[[package]]
|
|
name = "nax-vault"
|
|
version = "0.1.0"
|
|
dependencies = [
|
|
"nax-core",
|
|
"nax-proto",
|
|
]
|
|
|
|
[[package]]
|
|
name = "nax-zkp"
|
|
version = "0.1.0"
|
|
dependencies = [
|
|
"nax-core",
|
|
"nax-he",
|
|
]
|
|
|
|
[[package]]
|
|
name = "proc-macro2"
|
|
version = "1.0.107"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
dependencies = [
|
|
"unicode-ident",
|
|
]
|
|
|
|
[[package]]
|
|
name = "quote"
|
|
version = "1.0.47"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
dependencies = [
|
|
"proc-macro2",
|
|
]
|
|
|
|
[[package]]
|
|
name = "rustc_version"
|
|
version = "0.4.1"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
|
|
dependencies = [
|
|
"semver",
|
|
]
|
|
|
|
[[package]]
|
|
name = "semver"
|
|
version = "1.0.28"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
|
|
|
|
[[package]]
|
|
name = "subtle"
|
|
version = "2.6.1"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
|
|
|
[[package]]
|
|
name = "syn"
|
|
version = "2.0.119"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
dependencies = [
|
|
"proc-macro2",
|
|
"quote",
|
|
"unicode-ident",
|
|
]
|
|
|
|
[[package]]
|
|
name = "unicode-ident"
|
|
version = "1.0.27"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
|
|
[[package]]
|
|
name = "zeroize"
|
|
version = "1.9.1"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879"
|