Skip to main content

Check if Circuits are Already Downloaded from Server

The method isAlreadyDownloadedCircuitsFromServer() is used to check if the circuits are already downloaded from the server.

Future<bool> isAlreadyDownloadedCircuitsFromServer({
required String circuitsFileName,
});

where:

  • circuitsFileName is the name of the circuits file.

This function returns a Future of bool. If the circuits are already downloaded, it returns true, otherwise, it returns false.

note

This method is used to avoid unnecessary downloads of the circuits for proof generation. It checks if the circuits file already exists in the local storage.