Skip to content

Commit

Permalink
capacity for keyset slice
Browse files Browse the repository at this point in the history
  • Loading branch information
elnosh committed Oct 19, 2024
1 parent bcdf887 commit fa4cdd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/keyset.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func DeriveKeysetId(keyset map[uint64]*secp256k1.PublicKey) string {
return pubkeys[i].amount < pubkeys[j].amount
})

keys := make([]byte, 0)
keys := make([]byte, 0, len(pubkeys)*33)
for _, key := range pubkeys {
keys = append(keys, key.pk.SerializeCompressed()...)
}
Expand Down

0 comments on commit fa4cdd9

Please sign in to comment.