def make_sh_output_script(script_string, witness=False):
    '''
    str -> bytearray
    '''
    if witness and not riemann.network.SEGWIT:
        raise ValueError(
            'Network {} does not support witness scripts.'
            .format(riemann.get_current_network_name()))

    script_bytes = serialization.serialize(script_string)
    return make_sh_script_pubkey(script_bytes=script_bytes, witness=witness)
def make_sh_output_script ( script_string , witness = False ) : if witness and not riemann . network . SEGWIT : raise ValueError ( 'Network {} does not support witness scripts.' . format ( riemann . get_current_network_name ( ) ) ) script_bytes = serialization . serialize ( script_string ) return make_sh_script_pubkey ( script_bytes = script_bytes , witness = witness )
str -> bytearray