#NEWLINE# def is_valid_address_for_coinsymbol( b58_address , coin_symbol ) : #NEWLINE# #INDENT# '\n    Is an address both valid *and* start with the correct character\n    for its coin symbol (chain/network)\n    ' #NEWLINE# assert is_valid_coin_symbol ( b58_address ) #NEWLINE# if ( b58_address [ 0 ] in COIN_SYMBOL_MAPPINGS [ coin_symbol ] [ 'address_first_char_list' ] ) : #NEWLINE# #INDENT# if is_valid_address ( b58_address ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False