Skip to content

Commit

Permalink
Merge pull request #33 from Sindri-Labs/kp-remove-include-proof-input…
Browse files Browse the repository at this point in the history
…-flag

Remove include_proof_input parameter to endpoint methods
  • Loading branch information
KPreisner authored Mar 18, 2024
2 parents 6269088 + 55437fe commit dcb7147
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/sindri/sindri.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ def _hit_api_circuit_detail(
def _hit_api_proof_detail(
self,
proof_id: str,
include_proof_input: bool = False,
include_proof: bool = False,
include_public: bool = False,
include_smart_contract_calldata: bool = False,
Expand All @@ -271,7 +270,6 @@ def _hit_api_proof_detail(
"GET",
f"proof/{proof_id}/detail",
data={
"include_proof_input": include_proof_input,
"include_proof": include_proof,
"include_public": include_public,
"include_smart_contract_calldata": include_smart_contract_calldata,
Expand Down Expand Up @@ -407,7 +405,6 @@ def get_all_circuit_proofs(self, circuit_id: str) -> list[dict]:
"GET",
f"circuit/{circuit_id}/proofs",
data={
"include_proof_input": True,
"include_public": True,
"include_verification_key": True,
"include_proof": True,
Expand Down Expand Up @@ -466,7 +463,6 @@ def get_all_proofs(self) -> list[dict]:
"GET",
"proof/list",
data={
"include_proof_input": True,
"include_public": True,
"include_verification_key": True,
"include_proof": True,
Expand Down Expand Up @@ -558,15 +554,13 @@ def get_circuit_smart_contract_verifier(self, circuit_id: str) -> str:
def get_proof(
self,
proof_id: str,
include_proof_input: bool = False,
include_smart_contract_calldata: bool = False,
) -> dict:
"""
Get proof for `proof_id`.
Parameters:
- `include_proof_input: bool` specifies if the proof input should also be returned.
- `include_smart_contract_calldata: bool` specifies if the proof + public formated as
calldata for the circuit's smart contract verifier should also be returned.
Expand All @@ -579,7 +573,6 @@ def get_proof(
print(f"Proof: Get proof detail for proof_id: {proof_id}")
response_status_code, response_json = self._hit_api_proof_detail(
proof_id,
include_proof_input=include_proof_input,
include_proof=True,
include_public=True,
include_smart_contract_calldata=include_smart_contract_calldata,
Expand Down Expand Up @@ -679,7 +672,6 @@ def prove_circuit(
for _ in range(self.max_polling_iterations):
response_status_code, response_json = self._hit_api_proof_detail(
proof_id,
include_proof_input=False,
include_proof=False,
include_public=False,
include_verification_key=False,
Expand Down

0 comments on commit dcb7147

Please sign in to comment.