code: func IsPubKeyEqual(a, b *ecdsa.PublicKey) bool {
  	if !ValidatePublicKey(a) {
  		return false
  	} else if !ValidatePublicKey(b) {
  		return false
  	}
  	// the curve is always the same, just compare the points
  	return a.X.Cmp(b.X) == 0 && a.Y.Cmp(b.Y) == 0
  }
docs: // IsPubKeyEqual checks that two public keys are equal