rwadurian/backend/mpc-system/services/service-party-app/tss-party
hailin 51c0f59924 fix(tss): remove threshold-1 in signing to match keygen exactly
The signing code was using thresholdT-1 while keygen was using thresholdT,
causing Lagrange coefficient mismatch and "U doesn't equal T" error in round 9.

Root cause: commit d0c504dc added -1 to signing threshold to "match user expectation",
but this broke the keygen/sign consistency that TSS-lib requires.

Changes:
- tss-party/main.go: Sign now uses thresholdT (same as keygen)
- pkg/tss/signing.go: Add logging, emphasize threshold must match keygen
- tss-wasm/main.go: Add comment about threshold consistency

NOTE: This fix maintains backward compatibility with existing wallets.
No wallet regeneration is needed.

ROLLBACK: If this causes issues, revert to commit before this one.
Previous signing threshold was thresholdT-1 (commit d0c504dc).

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 12:08:40 -08:00
..
build.sh feat(co-managed-wallet): 添加分布式多方共管钱包创建功能 2025-12-27 21:39:07 -08:00
go.mod feat(service-party-app): implement co-sign multi-party signing 2025-12-30 18:36:11 -08:00
go.sum feat(service-party-app): implement co-sign multi-party signing 2025-12-30 18:36:11 -08:00
integration_test.go feat(service-party-app): implement co-sign multi-party signing 2025-12-30 18:36:11 -08:00
main.go fix(tss): remove threshold-1 in signing to match keygen exactly 2025-12-31 12:08:40 -08:00