fix(tss-party): fix debug logging slice bounds error
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
7a82a56ae5
commit
4a00c8066a
|
|
@ -614,14 +614,20 @@ func executeSign(
|
|||
fmt.Fprintf(os.Stderr, "[TSS-SIGN] Original keygenData has %d parties (Ks length)\n", len(keygenData.Ks))
|
||||
fmt.Fprintf(os.Stderr, "[TSS-SIGN] Building subset for %d signing parties\n", len(sortedPartyIDs))
|
||||
|
||||
// Debug: print keygenData.Ks keys (first 8 chars of hex)
|
||||
// Debug: print keygenData.Ks keys
|
||||
for i, k := range keygenData.Ks {
|
||||
fmt.Fprintf(os.Stderr, "[TSS-SIGN] keygenData.Ks[%d] = %s...\n", i, hex.EncodeToString(k.Bytes())[:16])
|
||||
keyHex := hex.EncodeToString(k.Bytes())
|
||||
fmt.Fprintf(os.Stderr, "[TSS-SIGN] keygenData.Ks[%d] = %s\n", i, keyHex)
|
||||
}
|
||||
// Debug: print sortedPartyIDs keys
|
||||
for i, p := range sortedPartyIDs {
|
||||
keyHex := hex.EncodeToString(p.Key)
|
||||
idPrefix := p.Id
|
||||
if len(idPrefix) > 8 {
|
||||
idPrefix = idPrefix[:8]
|
||||
}
|
||||
fmt.Fprintf(os.Stderr, "[TSS-SIGN] sortedPartyIDs[%d]: Id=%s, Moniker=%s, Key=%s\n",
|
||||
i, p.Id[:8], p.Moniker, hex.EncodeToString(p.Key))
|
||||
i, idPrefix, p.Moniker, keyHex)
|
||||
}
|
||||
|
||||
subsetKeygenData := keygen.BuildLocalSaveDataSubset(keygenData, sortedPartyIDs)
|
||||
|
|
|
|||
Loading…
Reference in New Issue