mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-29 23:33:37 +00:00
!squash core/crypto
This commit is contained in:
parent
c80ee952a1
commit
d4e8846ed0
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ type PublicKey struct {
|
||||||
Y *big.Int
|
Y *big.Int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Equal returns true in case public keys are equal.
|
||||||
func (p *PublicKey) Equal(key *PublicKey) bool {
|
func (p *PublicKey) Equal(key *PublicKey) bool {
|
||||||
return p.X.Cmp(key.X) == 0 && p.Y.Cmp(key.Y) == 0
|
return p.X.Cmp(key.X) == 0 && p.Y.Cmp(key.Y) == 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue