rwadurian/backend
hailin 3a985b443f fix(co-managed): 使用数据库中的 PartyIndex 而非循环索引
问题:
- server-party-co-managed 在构建参与者列表时使用循环索引 i
- 导致 PartyIndex 映射错误: map[0:0 1:1] (错误)
- 应为: map[0:0 2:1] (Android 的 keygen index 是 2, 不是 1)
- TSS 协议因索引错误失败: "failed to calculate Bob_mid or Bob_mid_wc"

根本原因:
- event.SelectedParties 只包含 party ID, 不包含 PartyIndex
- 使用循环索引是假设,不是来自数据库的实际数据

解决方案:
1. PendingSession 添加 Participants 字段
2. 存储 JoinSession 返回的 sessionInfo.Participants
   - JoinSession 从数据库查询并返回所有参与方的正确 PartyIndex
3. session_started 时直接使用存储的 participants
   - 不再从 event.SelectedParties 构建

关键变更:
- PendingSession.Participants: 保存来自数据库的正确索引
- 移除循环构建逻辑: 不再假设 PartyIndex = loop index
- 数据来源: 数据库 (JoinSession response) → 缓存 → 使用

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-26 20:24:32 -08:00
..
.claude refactor: simplify mpc-service to gateway mode 2025-12-06 17:16:14 -08:00
api-gateway fix(kong): remove ws/wss protocols from WebSocket route 2026-01-18 21:36:30 -08:00
infrastructure chore(docker): 为 mpc-system、api-gateway、infrastructure 添加时区配置 2025-12-23 18:35:09 -08:00
mpc-system fix(co-managed): 使用数据库中的 PartyIndex 而非循环索引 2026-01-26 20:24:32 -08:00
scripts fix(scripts): 修正容器名为 rwa-blockchain-service 2025-12-15 10:34:25 -08:00
services fix(contribution-service): CDC planting_orders 阶段按 order_id 排序处理 2026-01-23 03:41:14 -08:00
.env.windows fix(referral): 修复 getMyReferralInfo 使用 userId 而不是 accountSequence 的问题 2025-12-14 05:05:03 -08:00
docker-compose.windows.yml feat(service-party-app): implement co-sign multi-party signing 2025-12-30 18:36:11 -08:00