From d4e8846ed0579c6b51ffee41e431ef20df3e7e26 Mon Sep 17 00:00:00 2001 From: Vsevolod Brekelov Date: Thu, 21 Nov 2019 15:41:14 +0300 Subject: [PATCH] !squash core/crypto --- pkg/crypto/keys/publickey.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/crypto/keys/publickey.go b/pkg/crypto/keys/publickey.go index 9a871e3c6..8bae4a652 100644 --- a/pkg/crypto/keys/publickey.go +++ b/pkg/crypto/keys/publickey.go @@ -69,6 +69,7 @@ type PublicKey struct { Y *big.Int } +// Equal returns true in case public keys are equal. func (p *PublicKey) Equal(key *PublicKey) bool { return p.X.Cmp(key.X) == 0 && p.Y.Cmp(key.Y) == 0 }