rwadurian/backend/mpc-system/services/service-party-android/tsslib
hailin 613f85f1c2 fix(android): 修复keygen进度显示和参与者列表不完整的问题
问题1: 进度显示问题
- 协议进度永远卡在0/9直到完成
- 原因: 进度只在发送出站消息时更新,接收消息时不更新
- 修复: 在SendIncomingMessage中也提取轮次并调用OnProgress

问题2: totalRounds硬编码
- UI硬编码totalRounds=9,但keygen只有4轮
- 修复: 使用Go库传来的动态totalRounds值
- keygen默认4轮,sign默认9轮

问题3: 参与者列表不完整
- 只显示"参与方 1",缺少其他参与者
- 原因: 参与者通过participant_joined事件逐个添加
- 后加入者不会收到之前参与者的事件
- 修复: 在session_started时根据thresholdN/T初始化完整列表

修改文件:
- tsslib.go: SendIncomingMessage添加进度回调
- MainViewModel.kt: 添加_totalRounds, 初始化完整参与者列表
- MainActivity.kt: 使用动态totalRounds

注意: 需要重新编译tsslib.aar才能生效

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 08:36:25 -08:00
..
build.bat feat(android): add Android TSS Party app with full API implementation 2025-12-31 23:27:29 -08:00
build.sh feat(android): add Android TSS Party app with full API implementation 2025-12-31 23:27:29 -08:00
go.mod fix(android): simplify build-apk.bat with official gomobile setup 2026-01-01 00:53:04 -08:00
go.sum fix(android): simplify build-apk.bat with official gomobile setup 2026-01-01 00:53:04 -08:00
tsslib.go fix(android): 修复keygen进度显示和参与者列表不完整的问题 2026-01-27 08:36:25 -08:00