Closed bnavigator closed 1 year ago
[ 146s] _______________________________ test_sig_verify ________________________________
[ 146s]
[ 146s] @settings(**SIG_VER_SETTINGS)
[ 146s] > @example((generator_224, 4, 1, 1))
[ 146s]
[ 146s] src/ecdsa/test_ecdsa.py:641:
[ 146s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 146s] src/ecdsa/test_ecdsa.py:650: in test_sig_verify
[ 146s] pubkey = Public_key(generator, generator * sec_mult)
[ 146s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 146s]
[ 146s] self = <ecdsa.ecdsa.Public_key object at 0x7fb780c7c280>
[ 146s] generator = <ecdsa.ellipticcurve.PointJacobi object at 0x7fb7819f53c0>
[ 146s] point = <ecdsa.ellipticcurve.Point object at 0x7fb7819f5690>, verify = True
[ 146s]
[ 146s] def __init__(self, generator, point, verify=True):
[ 146s] """Low level ECDSA public key object.
[ 146s]
[ 146s] :param generator: the Point that generates the group (the base point)
[ 146s] :param point: the Point that defines the public key
[ 146s] :param bool verify: if True check if point is valid point on curve
[ 146s]
[ 146s] :raises InvalidPointError: if the point parameters are invalid or
[ 146s] point does not lay on the curve
[ 146s] """
[ 146s]
[ 146s] self.curve = generator.curve()
[ 146s] self.generator = generator
[ 146s] self.point = point
[ 146s] n = generator.order()
[ 146s] p = self.curve.p()
[ 146s] > if not (0 <= point.x() < p) or not (0 <= point.y() < p):
[ 146s] E TypeError: '<=' not supported between instances of 'int' and 'NoneType'
[ 146s] E Generator used: generator_192
[ 146s] E Falsifying example: test_sig_verify(
[ 146s] E args=(<ecdsa.ellipticcurve.PointJacobi at 0x7fb7819f53c0>,
[ 146s] E 6277101735386680763835789423176059013767194773182842284081,
[ 146s] E 1,
[ 146s] E 1),
[ 146s] E )
[ 146s]
[ 146s] src/ecdsa/ecdsa.py:149: TypeError
python-excdsa 0.18.0 hypothesis 6.56.2