diff --git a/crypto/keyset.go b/crypto/keyset.go index c7d982c..f3030c1 100644 --- a/crypto/keyset.go +++ b/crypto/keyset.go @@ -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()...) }