async def set_node_key(request): try: private_key = request.params['private_key'] except KeyError: raise RpcInvalidParamsError(message='Missed private key') PubKeyClient.set_priv_key_to_file(private_key) return True
async def set_node_key(request): private_key = request.params['private_key'] PubKeyClient.set_priv_key_to_file(private_key) return True