def __init__(self, rs: Tuple[int, int], backend: 'Union[BaseECCBackend, Type[BaseECCBackend], str, None]' = None ) -> None: for value in rs: try: validate_signature_r_or_s(value) except ValidationError as error: raise BadSignature(error) from error self._r, self._s = rs super().__init__(backend=backend)
def s(self, value: int) -> None: validate_signature_r_or_s(value) self._s = value