def file_verify( sender_blockchain_id, sender_key_id, input_path, sig, config_path=CONFIG_PATH, wallet_keys=None ):
config_dir = os.path.dirname(config_path)<EOL>old_key = False<EOL>old_key_index = <NUM_LIT:0><EOL>sender_old_key_index = <NUM_LIT:0><EOL>sender_key_info = file_key_lookup( sender_blockchain_id, None, None, key_id=sender_key_id, config_path=config_path, wallet_keys=wallet_keys ) <EOL>if '<STR_LIT:error>' in sender_key_info:<EOL><INDENT>log.error("<STR_LIT>" % sender_key_info['<STR_LIT:error>'])<EOL>return {'<STR_LIT:error>': '<STR_LIT>'}<EOL><DEDENT>if '<STR_LIT>' in list(sender_key_info.keys()):<EOL><INDENT>old_key = True<EOL>sender_old_key_index = sender_key_info['<STR_LIT>']<EOL><DEDENT>res = blockstack_gpg.gpg_verify( input_path, sig, sender_key_info, config_dir=config_dir )<EOL>if '<STR_LIT:error>' in res:<EOL><INDENT>log.error("<STR_LIT>" % (sender_blockchain_id, sender_key_id))<EOL>return {'<STR_LIT:error>': '<STR_LIT>'}<EOL><DEDENT>return {'<STR_LIT:status>': True}<EOL>
Verify that a file was signed with the given blockchain ID
@config_path should be for the *client*, not blockstack-file
Return {'status': True} on succes
Return {'error': ...} on error