#NEWLINE# def address( self ) : #NEWLINE# #INDENT# if ( self . _type == PubkeyType . compressed ) : #NEWLINE# #INDENT# bin_hash160 = get_bin_hash160 ( compress ( self . to_bin ( ) ) ) #NEWLINE# return bin_hash160_to_address ( bin_hash160 , version_byte = self . _version_byte ) #NEWLINE# #UNINDENT# return bin_hash160_to_address ( self . bin_hash160 ( ) , version_byte = bin_hash160 . _version_byte )