diff --git a/src/ecdsa/keys.py b/src/ecdsa/keys.py index 778d5e01..54142160 100644 --- a/src/ecdsa/keys.py +++ b/src/ecdsa/keys.py @@ -726,6 +726,11 @@ def from_secret_exponent(cls, secexp, curve=NIST192p, hashfunc=sha1): pubkey_point = curve.generator * secexp if hasattr(pubkey_point, "scale"): pubkey_point = pubkey_point.scale() + pubkey_point = ellipticcurve.Point(pubkey_point.curve(), + pubkey_point.x(), + pubkey_point.y(), + curve.generator.order()) + pubkey_point = ellipticcurve.PointJacobi.from_affine(pubkey_point) self.verifying_key = VerifyingKey.from_public_point(pubkey_point, curve, hashfunc, False) pubkey = self.verifying_key.pubkey