!squash core/crypto

This commit is contained in:
Vsevolod Brekelov 2019-11-21 15:41:14 +03:00
parent c80ee952a1
commit d4e8846ed0

View file

@ -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
}