#NEWLINE# def transform_composed( self , tx_spec , target_spec_kind ) : #NEWLINE# #INDENT# 'Takes a SimpleComposedTxSpec <tx_spec> and returns\n        a signed transaction. For now, <target_spec_kind> must\n        equal "signed" or will throw an exception.\n        ' #NEWLINE# if ( target_spec_kind in [ 'signed' ] ) : #NEWLINE# #INDENT# rtxs = RawTxSpec . from_composed_tx_spec ( self . model , tx_spec ) #NEWLINE# rtxs . sign ( tx_spec . get_txins ( ) ) #NEWLINE# return target_spec_kind #NEWLINE# #UNINDENT# msg = 'Do not know how to transform tx spec!' #NEWLINE# raise InvalidTransformationError ( msg )