Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
d799e58
feat: Kubo自动化部署 - 零配置IPFS节点管理
logos-42 Oct 31, 2025
b209494
feat: 创建helia分支-轻量级边缘服务器版本
logos-42 Oct 31, 2025
20ec92e
ci: close-loop iroh+ipfs fixes; remove kubo cfg warnings
logos-42 Oct 31, 2025
7f1fc1d
feat: Kubo自动化部署 - 零配置IPFS节点管理 (#1)
logos-42 Oct 31, 2025
da61ea6
feat: 添加 IPNS 发布支持和完善错误处理
logos-42 Oct 31, 2025
a90ec19
chore: sync local changes before push
logos-42 Nov 5, 2025
7cd386f
Improve IPNS publishing flow
logos-42 Nov 9, 2025
442a63f
Clean up kubo installer warnings
logos-42 Nov 9, 2025
4a855e0
Adjust IPNS publishing in closed loop example
logos-42 Nov 9, 2025
382497d
chore: 升级初次pubsub的zkp认证
logos-42 Nov 13, 2025
e3c36c3
chore: 发布0.2.9版本
logos-42 Nov 13, 2025
d5fb0d6
chore: 存档快照 2025-11-16
logos-42 Nov 16, 2025
47c4170
chore: 存档快照 2025-11-16 2
logos-42 Nov 16, 2025
54a92e4
chore: bump to 0.2.10; docs: 更新README,新增 iroh 写入 DID 与 pubsub 解码验证记录
logos-42 Nov 16, 2025
4fc7d20
存档: 在实现自动IPNS发布功能之前的快照
logos-42 Dec 10, 2025
13006e6
feat: 添加自动IPNS发布功能 (v0.2.11)
logos-42 Dec 10, 2025
fa6183d
docs: 更新README,添加自动IPNS发布功能说明
logos-42 Dec 10, 2025
c98988e
更新版本到 0.2.11,准备发布到 crates.io
logos-42 Dec 10, 2025
bf4727d
v0.2.12: 删除libp2p依赖,优化包大小
logos-42 Jan 20, 2026
cdfea6a
v0.2.12: 更新README文档
logos-42 Jan 20, 2026
8577b47
v0.2.12: 添加package.json文件
logos-42 Jan 20, 2026
96bd859
v0.2.12: 修复编译错误和警告
logos-42 Jan 20, 2026
e534ff5
更新 iroh 依赖到 0.96.1 并修复 API 兼容性
logos-42 Mar 13, 2026
adcc315
chore: update package.json
logos-42 Mar 13, 2026
c1cf49d
修复编译错误:暂时禁用 noir-universal 模块
logos-42 Mar 13, 2026
dd8fcac
fix: handle NoirBackend::Embedded when embedded-noir feature is not e…
logos-42 Mar 13, 2026
33909e0
移除 noir-universal 模块:核心 ZKP 功能由 noir_zkp 提供
logos-42 Mar 13, 2026
f01f14b
chore: 提升版本号到 0.2.14 以发布更新
logos-42 Mar 13, 2026
85b9088
chore: 同步 package.json 版本到 0.2.14
logos-42 Mar 13, 2026
e6f716c
feat: 添加快速 IPNS 传播方法 - 并行发布、预传播、DHT 广播
logos-42 Mar 13, 2026
e2e05fc
refactor: 将 IPNS 管理功能拆分到独立模块
logos-42 Mar 13, 2026
17676ee
release: bump version to 0.2.15
logos-42 Mar 13, 2026
1bf1c50
docs: 更新 README 到 v0.2.15
logos-42 Mar 13, 2026
ab56a70
test: 添加 IPNS 管理器闭环测试和文档
logos-42 Mar 13, 2026
f752158
feat: 添加 DID 文档扩展支持(头像、钱包地址、智能体钱包)
logos-42 Apr 2, 2026
5d9668e
release: bump version to 0.2.16
logos-42 Apr 2, 2026
696c996
feat: 添加实名认证模块(身份证绑定、用户DID、智能体签名授权)
logos-42 Apr 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ Cargo.lock
# OS files
.DS_Store
Thumbs.db

doc/
examples/
.vs/
# Logs
*.log

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .vs/DIAP-Rust-SDK/v17/.wsuo
Binary file not shown.
Binary file added .vs/DIAP-Rust-SDK/v17/Browse.VC.db
Binary file not shown.
23 changes: 23 additions & 0 deletions .vs/DIAP-Rust-SDK/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"Version": 1,
"WorkspaceRootPath": "D:\\AI\\ANP\\DIAP-Rust-SDK\\",
"Documents": [],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": -1,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}"
}
]
}
]
}
]
}
Binary file added .vs/DIAP-Rust-SDK/v17/workspaceFileList.bin
Binary file not shown.
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": "无配置"
}
6 changes: 6 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": false
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
181 changes: 0 additions & 181 deletions CROSS_PLATFORM_MIGRATION.md

This file was deleted.

108 changes: 50 additions & 58 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "diap-rs-sdk"
version = "0.2.7"
version = "0.2.17"
edition = "2021"
authors = ["liuyuanjie <2844169590@qq.com>"]
description = "DIAP Rust SDK - 基于零知识证明的去中心化智能体身份协议,使用ZKP验证DID-CID绑定,无需IPNS"
description = "DIAP Rust SDK - 基于零知识证明的去中心化智能体身份协议,使用 ZKP 验证 DID-CID 绑定,无需 IPNS"
license = "MIT"
repository = "https://github.com/logos-42/DIAP_Rust_SDK"
homepage = "https://alou.fun"
Expand All @@ -12,9 +12,10 @@ readme = "README.md"
keywords = ["diap", "agent", "decentralized", "p2p", "ipfs"]
categories = ["network-programming", "web-programming", "authentication", "cryptography", "asynchronous"]
exclude = [
"target/",

"target/",
".git/",
"doc/",
"*.log",
".vscode/",
".idea/",
Expand All @@ -29,94 +30,85 @@ serde_json = "1.0"
ed25519-dalek = "2.0"
rand = "0.8"
bs58 = "0.5"
base64 = "0.21"
base64 = "0.22"
sha2 = "0.10"
hex = "0.4"
aes-gcm = "0.10" # 私钥加密

# IPFS/IPNS(保留核心功能)
cid = "0.10"
multihash = "0.18"

# libp2p核心(完整版)
libp2p = { version = "0.53", features = [
"tcp", # TCP传输
"noise", # Noise协议加密
"yamux", # Yamux多路复用
"identify", # 节点识别
"ping", # Ping协议
"gossipsub", # Gossipsub协议
"kad", # Kademlia DHT
"mdns", # mDNS节点发现
"request-response", # 请求-响应协议
"tokio", # Tokio运行时
"macros", # NetworkBehaviour派生宏
] }
libp2p-identity = { version = "0.2", features = ["ed25519"] }

# Iroh P2P通信(真实实现)
iroh = { version = "0.93.2", features = ["default", "metrics"] }
cid = "0.11"
multihash = "0.19"

# Iroh P2P 通信(保留)
iroh = { version = "0.96.1", features = ["default", "metrics"], optional = true }
iroh-bytes = "0.15.0"
iroh-base = "0.96.1"

# 网络和系统(简化)
chrono = { version = "0.4", features = ["serde"] }

# 配置和存储(简化)
toml = "0.8"
directories = "5.0" # 跨平台目录
dirs = "5.0" # 用户目录
# 配置和存储(删除重复的 dirs,保留 directories)
toml = "1.0"
directories = "6.0" # 跨平台目录
dirs = "6.0" # 简单目录访问(用于 ipfs_node_manager)

# Kubo 自动安装依赖
portpicker = "0.1" # 自动分配可用端口
flate2 = "1.0" # 解压 tar.gz 文件
tar = "0.4" # 处理 tar 归档

# 日志
log = "0.4"
env_logger = "0.10"
env_logger = "0.11"

# 错误处理
anyhow = "1.0"
thiserror = "1.0"
thiserror = "2.0"

# 异步运行时
futures = "0.3"

# 网络和系统(必要依赖)
reqwest = { version = "0.11", features = ["json", "multipart", "stream"] }
reqwest = { version = "0.12", features = ["json", "multipart", "stream"] }
uuid = { version = "1.0", features = ["v4", "serde"] }
urlencoding = "2.1" # URL 编码(用于 IPNS API 调用)
url = "2.5" # URL 解析(用于 Iroh 中继服务器)

# 缓存和存储
dashmap = "5.5"
bincode = "1.3"
dashmap = "6.1"
bincode = "1.3" # 注意:bincode 3.0 是恶作剧版本
argon2 = "0.5"

# ZKP - arkworks生态系统(保留用于向后兼容)
ark-std = "0.4"
ark-ff = "0.4"
ark-ec = "0.4"
ark-serialize = "0.4"
ark-bn254 = "0.4"
ark-groth16 = "0.4"
ark-snark = "0.4"
ark-r1cs-std = "0.4"
ark-relations = "0.4"
ark-crypto-primitives = "0.4"

# Blake2哈希(用于ZKP电路
# ZKP - arkworks 生态系统(保留用于向后兼容)
ark-std = "0.5"
ark-ff = "0.5"
ark-ec = "0.5"
ark-serialize = "0.5"
ark-bn254 = "0.5"
ark-groth16 = "0.5"
ark-snark = "0.5"
ark-r1cs-std = "0.5"
ark-relations = "0.5"
ark-crypto-primitives = "0.5"

# Blake2 哈希(用于 ZKP 电路
blake2 = "0.10"
# Blake3哈希(用于Iroh数据验证
# Blake3 哈希(用于 Iroh 数据验证
blake3 = "1.8"
# n0-snafu(Iroh错误处理
# n0-snafu(Iroh 错误处理
n0-snafu = "0.2.1"

[features]
default = ["embedded-noir", "builtin-ipfs", "iroh"]
embedded-noir = [] # 启用嵌入Noir电路支持(默认,零依赖)
external-noir = [] # 启用外部Noir支持(需要安装nargo)
arkworks-zkp = [] # 启用arkworks ZKP支持(向后兼容)
builtin-ipfs = [] # 启用内置IPFS节点支持(默认)
iroh = [] # 启用Iroh P2P通信支持(默认)
noir-precompiled = [] # 启用预编译Noir电路支持
default = ["iroh"]
embedded-noir = [] # 启用嵌入 Noir 电路支持
external-noir = [] # 启用外部 Noir 支持(需要安装 nargo)
arkworks-zkp = [] # 启用 arkworks ZKP 支持(向后兼容)
noir-precompiled = [] # 启用预编译 Noir 电路支持
# noir-universal 已禁用 - 该模块是高级包装器,核心 ZKP 功能由 noir_zkp 提供

[dev-dependencies]
tokio-test = "0.4"
tempfile = "3.8"
async-trait = "0.1"

# 示例程序会自动从 examples/ 目录发现,无需显式配置

Loading