hailin
cc6a76514b
fix: Report completion for all 3 participants in TestCompleteKeygenFlow
...
The test was only reporting completion for one participant, but the session
requires ALL participants to report completion before transitioning to
"completed" status. This follows the domain logic in ShouldCompleteSession()
which checks session.AllCompleted().
Changes:
- Added reportCompletion calls for all 3 parties (party_user_device,
party_server, party_recovery)
- Updated test comment to clarify all participants must report completion
2025-11-29 00:52:53 -08:00
hailin
7531cbd07a
fix: Implement MarkPartyReady and StartSession handlers, update domain logic
...
- Add sessionRepo to HTTP handler for database operations
- Implement MarkPartyReady handler to update participant status
- Implement StartSession handler to start MPC sessions
- Update CanStart() to accept participants in 'ready' status
- Make Start() method idempotent to handle automatic + explicit starts
- Fix repository injection through dependency chain in main.go
- Add party_id parameter to test completion request
2025-11-29 00:31:24 -08:00
hailin
6fa4d7ac1d
feat: 添加MPC多方计算服务模块
...
新增 mpc-service 微服务,实现 MPC-TSS 门限签名功能:
架构设计:
- 采用六边形架构(Hexagonal Architecture)
- 实现 CQRS 命令查询职责分离模式
- 遵循 DDD 领域驱动设计原则
核心功能:
- Keygen: 分布式密钥生成协议参与
- Signing: 门限签名协议参与
- Share Rotation: 密钥份额轮换
- Share Management: 份额查询和管理
技术栈:
- NestJS + TypeScript
- Prisma ORM
- Redis (缓存和分布式锁)
- Kafka (事件发布)
- Jest (单元/集成/E2E测试)
测试覆盖:
- 单元测试: 81个
- 集成测试: 30个
- E2E测试: 15个
- 总计: 111个测试全部通过
文档:
- ARCHITECTURE.md: 架构设计文档
- API.md: REST API接口文档
- TESTING.md: 测试架构说明
- DEVELOPMENT.md: 开发指南
- DEPLOYMENT.md: 部署运维文档
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 17:31:43 -08:00
hailin
92a227b576
.
2025-11-24 12:00:38 +00:00
hailin
7367838324
.
2025-11-24 03:59:50 -08:00
hailin
9a00c611b7
.
2025-11-24 03:49:34 -08:00
hailin
ed5bafbfad
.
2025-11-24 03:46:12 -08:00
hailin
d09af9aa3e
.
2025-11-24 03:43:25 -08:00
hailin
cf706d95a8
.
2025-11-24 11:40:27 +00:00
hailin
c08a692c97
.
2025-11-24 03:38:54 -08:00
hailin
0340d068e7
.
2025-11-24 03:35:26 -08:00
hailin
9e854c3888
.
2025-11-24 11:30:43 +00:00
hailin
ff65cdf3c1
.
2025-11-24 03:26:09 -08:00
hailin
4cdd0b07b9
.
2025-11-24 03:21:24 -08:00
hailin
fbcef7aba2
.
2025-11-24 03:14:38 -08:00
hailin
ff2bbbc977
.
2025-11-24 03:11:05 -08:00
hailin
0e9dc61961
.
2025-11-24 03:03:41 -08:00
hailin
169ca891e6
.
2025-11-24 02:58:50 -08:00
hailin
0b1defb78b
.
2025-11-24 02:54:27 -08:00
hailin
3aaac6af6f
.
2025-11-24 02:50:45 -08:00
hailin
c6c2545095
.
2025-11-24 02:38:15 -08:00
hailin
77725bd769
.
2025-11-24 02:33:14 -08:00
hailin
015f314907
.
2025-11-24 02:31:30 -08:00
hailin
8e3aa0e794
.
2025-11-24 02:29:44 -08:00
hailin
f9a0f95cab
.
2025-11-24 02:19:40 -08:00
hailin
4fbca69942
.
2025-11-24 02:12:13 -08:00
hailin
d8f23a8913
.
2025-11-24 02:08:47 -08:00
hailin
abc87306d2
.
2025-11-24 01:59:58 -08:00
hailin
dce2ea5963
.
2025-11-24 01:48:17 -08:00
hailin
8f639273b1
.
2025-11-24 01:41:54 -08:00
hailin
19b6415c95
.
2025-11-24 17:06:30 +08:00
hailin
ef1ef8ba25
.
2025-11-24 08:27:36 +00:00
hailin
1469b45723
.
2025-11-24 07:49:40 +00:00
hailin
4b03c422ea
.
2025-11-24 07:47:29 +00:00
hailin
e2055483db
.
2025-11-24 07:25:33 +00:00
hailin
44d2e2ad80
.
2025-11-24 06:58:46 +00:00
hailin
c29c185a03
identity_service_context first commit
2025-11-24 06:09:06 +00:00
hailin
b9a3fb9a83
first commit
2025-11-23 21:21:44 -08:00