From 62ef90218ed9904a0f85286a91285df911d64129 Mon Sep 17 00:00:00 2001 From: Developer Date: Thu, 4 Dec 2025 05:42:00 -0800 Subject: [PATCH] =?UTF-8?q?fix(server-party-api):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=B8=8E=20pkg/tss=20=E7=B1=BB=E5=9E=8B=E4=B8=8D=E5=8C=B9?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - TotalParties -> TotalSigners - result.R/S 从 *big.Int 转换为 []byte - result.V -> result.RecoveryID 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../services/server-party-api/cmd/server/main.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/backend/mpc-system/services/server-party-api/cmd/server/main.go b/backend/mpc-system/services/server-party-api/cmd/server/main.go index 2d207d84..7f4472fd 100644 --- a/backend/mpc-system/services/server-party-api/cmd/server/main.go +++ b/backend/mpc-system/services/server-party-api/cmd/server/main.go @@ -598,7 +598,7 @@ func runSigningProtocol( // Create signing config config := tss.SigningConfig{ Threshold: t, - TotalParties: n, + TotalSigners: n, Timeout: 5 * time.Minute, } @@ -632,7 +632,16 @@ func runSigningProtocol( zap.String("session_id", sessionID.String()), zap.String("party_id", partyID)) - return result.Signature, result.R, result.S, result.V, nil + // Convert big.Int to []byte + var rBytes, sBytes []byte + if result.R != nil { + rBytes = result.R.Bytes() + } + if result.S != nil { + sBytes = result.S.Bytes() + } + + return result.Signature, rBytes, sBytes, result.RecoveryID, nil } // messageHandler adapts MPCMessage channel to tss.MessageHandler