#NEWLINE# def _set_keys( self , pubkey_x , pubkey_y , privkey ) : #NEWLINE# #INDENT# if ( self . raw_check_key ( privkey , pubkey_x , pubkey_y ) < 0 ) : #NEWLINE# #INDENT# self . pubkey_x = None #NEWLINE# self . pubkey_y = None #NEWLINE# self . privkey = None #NEWLINE# raise Exception ( 'Bad ECC keys ...' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . pubkey_x = pubkey_x #NEWLINE# self . pubkey_y = pubkey_y #NEWLINE# self . privkey = privkey