def is_secret_exponent(val, curve_order):
    return (isinstance(val, (int, long)) and val >= 1 and val < curve_order)
dataset/ETHPy150Open blockstack/pybitcoin/pybitcoin/formatcheck.py/is_secret_exponent/original