pub fn save_setup<E: PairingCurve>(
prover: &ProverSetup<E>,
verifier: &VerifierSetup<E>,
max_log_n: usize,
)Expand description
Save prover and verifier setups to disk
Serializes both setups to a .urs file in the storage directory.
If the storage directory doesn’t exist, it will be created.
§Panics
Panics if:
- Storage directory cannot be determined
- Directory creation fails
- File creation fails
- Serialization of prover or verifier setup fails