#NEWLINE# def check_validation( self , validation , account_public_key ) : #NEWLINE# #INDENT# 'Check validation.\n\n        :param JWS validation:\n        :param JWK account_public_key:\n        :rtype: bool\n\n        ' #NEWLINE# if ( not validation . verify ( key = account_public_key ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# return ( self == self . json_loads ( validation . payload . decode ( 'utf-8' ) ) ) #NEWLINE# #UNINDENT# except jose . DeserializationError as error : #NEWLINE# #INDENT# logger . debug ( 'Checking validation for DNS failed: %s' , self ) #NEWLINE# return False