fix(tss-party): increase stdin buffer for large TSS messages (~200KB)

Default bufio.Scanner buffer (64KB) was too small for TSS keygen messages
which can reach ~178KB. Increased to 1MB to handle large messages.

🤖 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-30 03:15:54 -08:00
parent 20c75c7817
commit 2e718aecfa
1 changed files with 3 additions and 0 deletions

View File

@ -223,6 +223,9 @@ func executeKeygen(
go func() {
defer inWg.Done()
scanner := bufio.NewScanner(os.Stdin)
// Increase buffer for large messages (TSS messages can be ~200KB)
buf := make([]byte, 1024*1024)
scanner.Buffer(buf, len(buf))
for scanner.Scan() {
select {
case <-ctx.Done():