Skip to content

SCP Proof Protocol Specification v0.1(详细完整规范)

Symphony Core Protocol Proof System Specification

版本:v0.1
状态:Production Protocol Specification(Mainnet-ready Detailed Version)
发布日期:2026-02
适用范围:SCP Compute Plane / Data Plane / Control Plane


一、协议目的(Purpose)

SCP Proof Protocol 定义了 SCP 网络中所有可验证计算的证明机制。

Proof Protocol 的目标:

  1. 证明 Vault 正确执行查询(Proof-of-Query)
  2. 证明 Vault 正确执行训练(Proof-of-Training)
  3. 证明 Coordinator 正确执行聚合(Proof-of-Aggregation)
  4. 防止恶意节点提交虚假结果
  5. 支持 trustless distributed compute

Proof Protocol 是 SCP Trust Layer 的核心协议。


二、设计目标(Design Goals)

Proof Protocol 必须提供:

Correctness verification

Non-repudiation(不可抵赖)

Tamper resistance(防篡改)

Scalability(支持百万节点)

Low overhead


三、Proof 类型定义(Proof Types)

SCP 定义三种核心 proof 类型:

Proof-of-Query

Proof-of-Training

Proof-of-Aggregation


四、Proof-of-Query(查询证明)

4.1 目的

证明 Vault 正确执行 Federated Query。

防止 Vault 提交虚假查询结果。


4.2 Vault 执行查询

Vault 执行:

SELECT COUNT(*) FROM attributes WHERE name="diagnosis_code"

Vault 得到:

result


4.3 Query Proof 结构

Vault 生成:

json
{
  "proof_type": "query",

  "vault_id": "...",

  "query_hash": "...",

  "result_hash": "...",

  "timestamp": "...",

  "signature": "..."
}

字段说明:

query_hash:查询 hash

result_hash:查询结果 hash

signature:Vault 私钥签名


4.4 Proof Verification

Coordinator 验证:

Vault signature

Query integrity

Result integrity


五、Proof-of-Training(训练证明)

5.1 目的

证明 Vault 正确执行训练。

防止 Vault 提交伪造 contribution。


5.2 Training Proof 结构

json
{
  "proof_type": "training",

  "vault_id": "...",

  "job_id": "...",

  "contribution_hash": "...",

  "model_hash": "...",

  "timestamp": "...",

  "signature": "..."
}

字段说明:

contribution_hash:训练贡献 hash

model_hash:训练模型 hash

signature:Vault signature


5.3 Verification Process

Coordinator 验证:

Vault signature

Contribution integrity

Job authenticity


六、Proof-of-Aggregation(聚合证明)

6.1 目的

证明 Coordinator 正确执行 aggregation。

防止 Coordinator 提供错误 aggregation。


6.2 Aggregation Proof 结构

json
{
  "proof_type": "aggregation",

  "coordinator_id": "...",

  "job_id": "...",

  "aggregation_hash": "...",

  "timestamp": "...",

  "signature": "..."
}

字段说明:

aggregation_hash:聚合结果 hash

signature:Coordinator signature


6.3 Verification

任何节点可以验证 aggregation proof。


七、Cryptographic Foundation(密码学基础)

Proof Protocol 使用:

Digital signatures(Ed25519 推荐)

Hash functions(SHA-256 推荐)

Public-key cryptography


八、Proof Generation Process(Proof 生成流程)

Vault 执行:

Compute result

Compute hash

Sign hash

Generate proof

Submit proof


九、Proof Verification Process(Proof 验证流程)

Verifier 执行:

Verify signature

Verify hash

Verify identity

Accept or reject proof


十、Proof Storage(Proof 存储)

Proof 可以存储于:

Coordinator database

Registry Node

Blockchain


十一、防攻击机制(Attack Resistance)

Proof Protocol 防止:

Fake result submission

Tampered aggregation

Identity spoofing


十二、Proof Lifecycle(Proof 生命周期)

Proof generation

Proof submission

Proof verification

Proof storage

Proof audit


十三、Integration with SCP Protocol Stack

Proof Protocol integrates with:

Federated Query Protocol

Federated Training Protocol

Secure Aggregation Protocol


十四、Performance Targets

Proof generation latency < 10ms

Proof verification latency < 5ms

Supports millions of proofs


十五、安全保证(Security Guarantees)

Ensures:

Query correctness

Training correctness

Aggregation correctness

Trustless computation


十六、Summary

SCP Proof Protocol enables:

Trustless federated query

Trustless federated training

Trustless aggregation

Proof Protocol is foundation of SCP Trust Layer.