#NEWLINE# def decryption_factors_and_proofs( self , sk ) : #NEWLINE# #INDENT# '\n    returns an array of decryption factors and a corresponding array of decryption proofs.\n    makes the decryption factors into strings, for general Helios / JS compatibility.\n    ' #NEWLINE# decryption_factors = [ ] #NEWLINE# decryption_proof = [ ] #NEWLINE# for ( question_num , question ) in enumerate ( self . questions ) : #NEWLINE# #INDENT# answers = question [ 'answers' ] #NEWLINE# question_factors = [ ] #NEWLINE# question_proof = [ ] #NEWLINE# for ( answer_num , answer ) in enumerate ( question_num ) : #NEWLINE# #INDENT# ( dec_factor , proof ) = sk . decryption_factor_and_proof ( self . tally [ question_num ] [ answer_num ] ) #NEWLINE# question_factors . append ( dec_factor ) #NEWLINE# question_proof . append ( proof ) #NEWLINE# #UNINDENT# decryption_factors . append ( question_factors ) #NEWLINE# decryption_proof . append ( question_proof ) #NEWLINE# #UNINDENT# return ( decryption_factors , decryption_proof )