From 23eff00d76c723218aafa1f194387d84910f2bc3 Mon Sep 17 00:00:00 2001 From: hailin Date: Sat, 6 Dec 2025 08:40:38 -0800 Subject: [PATCH] feat: add KeygenSessionID to MPCSession entity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add KeygenSessionID field to MPCSession struct for tracking which keygen's shares to use - This is the first step in完整的修复流程 --- .../session-coordinator/domain/entities/mpc_session.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/mpc-system/services/session-coordinator/domain/entities/mpc_session.go b/backend/mpc-system/services/session-coordinator/domain/entities/mpc_session.go index 376b4454..ee34681e 100644 --- a/backend/mpc-system/services/session-coordinator/domain/entities/mpc_session.go +++ b/backend/mpc-system/services/session-coordinator/domain/entities/mpc_session.go @@ -42,9 +42,10 @@ type MPCSession struct { Threshold value_objects.Threshold Participants []*Participant Status value_objects.SessionStatus - MessageHash []byte // Used for Sign sessions - PublicKey []byte // Group public key after Keygen completion - DelegatePartyID string // The delegate party ID (returns share to user instead of storing) + MessageHash []byte // Used for Sign sessions + PublicKey []byte // Group public key after Keygen completion + DelegatePartyID string // The delegate party ID (returns share to user instead of storing) + KeygenSessionID uuid.UUID // For Sign sessions: which keygen session's shares to use CreatedBy string CreatedAt time.Time UpdatedAt time.Time