From 141553da4cf05db8faf63beb2c53d7fd16b133de Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 12 Feb 2020 14:55:19 +0300 Subject: [PATCH] keys: fix PublicKeys decoding It changes the slice, thus it has to work via a pointer. --- pkg/crypto/keys/publickey.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/crypto/keys/publickey.go b/pkg/crypto/keys/publickey.go index 422efadca..be1435fea 100644 --- a/pkg/crypto/keys/publickey.go +++ b/pkg/crypto/keys/publickey.go @@ -36,7 +36,7 @@ func (keys PublicKeys) Less(i, j int) bool { } // DecodeBytes decodes a PublicKeys from the given slice of bytes. -func (keys PublicKeys) DecodeBytes(data []byte) error { +func (keys *PublicKeys) DecodeBytes(data []byte) error { b := io.NewBinReaderFromBuf(data) b.ReadArray(keys) return b.Err