pub fn load_setup<E: PairingCurve>(
max_log_n: usize,
) -> Result<(ProverSetup<E>, VerifierSetup<E>), DoryError>Expand description
Load prover and verifier setups from disk
Attempts to deserialize both setups from the saved .urs file.
§Errors
Returns DoryError::InvalidURS if:
- Storage directory cannot be determined
- Setup file doesn’t exist
- File cannot be opened
- Deserialization fails