!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
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue