rwadurian/backend/services/mpc-service
Developer e51edc2ce4 fix(mpc-service): 修复 MPC 会话流程,先创建会话再加入
问题:mpc-service 尝试用 identity-service 生成的 SHA256 哈希作为
joinToken 加入会话,但 session-coordinator 期望的是由它自己
CreateSession 接口生成的 JWT token。

修复:
- coordinator-client.ts: 添加 createSession() 方法
- participate-keygen.handler.ts: 先创建会话获取 JWT,再加入
- participate-signing.handler.ts: 同上
- rotate-share.handler.ts: 同上(使用 keygen 类型)

流程变更:
1. CreateSession -> 获取 sessionId + JWT joinToken
2. JoinSession 使用 JWT token 加入会话

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 21:21:22 -08:00
..
database/migrations feat: 添加MPC多方计算服务模块 2025-11-27 17:31:43 -08:00
docs feat: 添加MPC多方计算服务模块 2025-11-27 17:31:43 -08:00
prisma feat(mpc-service): 添加初始数据库 migration 2025-12-02 10:03:03 -08:00
src fix(mpc-service): 修复 MPC 会话流程,先创建会话再加入 2025-12-03 21:21:22 -08:00
tests feat: 添加MPC多方计算服务模块 2025-11-27 17:31:43 -08:00
.env.example feat: 添加MPC多方计算服务模块 2025-11-27 17:31:43 -08:00
.gitignore feat: 添加MPC多方计算服务模块 2025-11-27 17:31:43 -08:00
Context(微服务)架构.jpg feat: 添加MPC多方计算服务模块 2025-11-27 17:31:43 -08:00
Dockerfile fix(mpc-service): 改用 Debian slim 基础镜像 2025-12-03 19:57:11 -08:00
MPC-Service-Context-Complete-Specification.md feat: 添加MPC多方计算服务模块 2025-11-27 17:31:43 -08:00
deploy.sh feat(services): add individual deploy scripts for each service 2025-12-02 03:36:50 -08:00
docker-compose.yml feat: 添加MPC多方计算服务模块 2025-11-27 17:31:43 -08:00
nest-cli.json feat: 添加MPC多方计算服务模块 2025-11-27 17:31:43 -08:00
package-lock.json feat: 添加MPC多方计算服务模块 2025-11-27 17:31:43 -08:00
package.json feat: 添加MPC多方计算服务模块 2025-11-27 17:31:43 -08:00
tsconfig.json feat: 添加MPC多方计算服务模块 2025-11-27 17:31:43 -08:00
项目目录架构.jpg feat: 添加MPC多方计算服务模块 2025-11-27 17:31:43 -08:00