#NEWLINE# def get_my_turn( self , redeem_script ) : #NEWLINE# #INDENT# addresses = sorted ( self . btc . decode_script ( addresses ) [ 'addresses' ] ) #NEWLINE# for ( idx , addr ) in enumerate ( addresses ) : #NEWLINE# #INDENT# if self . btc . address_is_mine ( addr ) : #NEWLINE# #INDENT# return idx #NEWLINE# #UNINDENT# #UNINDENT# return ( - 1 )