fix(co-sign): add threshold_n to CreateSignSession API response

Add keygenThresholdN to the CreateSignSession response so frontend
can access the original N value from keygen session. This is required
for proper TSS operation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-31 06:36:38 -08:00
parent 75b15acda2
commit 5ebdd4d592
1 changed files with 1 additions and 0 deletions

View File

@ -608,6 +608,7 @@ func (h *CoManagedHTTPHandler) CreateSignSession(c *gin.Context) {
"invite_code": inviteCode,
"join_token": wildcardToken, // Backward compatible: wildcard token (may be empty)
"join_tokens": resp.JoinTokens, // New: all join tokens (map[partyID]token)
"threshold_n": keygenThresholdN, // Original N from keygen (required for TSS)
"threshold_t": req.ThresholdT,
"selected_parties": resp.SelectedParties,
"status": "waiting_for_participants",