Sindri-Labs / sindri-python

Contains SDK code for Sindri APIs
MIT License
4 stars 0 forks source link

Change the perform_verify_check in the prove to default to False #13

Closed KPreisner closed 8 months ago

KPreisner commented 9 months ago

Change the perform_verify_check in the prove to default to False

The Sindri API Create Proof endpoint supports the optional flag perform_verify: bool. This change sets the SDK default to False to match the API endpoint default.

An SDK user can still perform the verify check for proofs by altering the class variable of their SDK instance:

# Run Sindri API
API_KEY = <YOUR_API_KEY>
sindri = Sindri(API_KEY)
sindri.perform_verify = True  # ------- here
circuit_id = sindri.create_circuit(circuit_upload_path)
proof_id = sindri.prove_circuit(circuit_id, proof_input)