Skip to content

Commit 5da072e

Browse files
authored
Merge pull request #47 from Sindri-Labs/kp-hide-prover-implementation-param
Hide prover_implementation optional param by accepting it through **kwargs
2 parents 90ea584 + f615e1a commit 5da072e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/sindri/sindri.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -696,9 +696,9 @@ def prove_circuit(
696696
self,
697697
circuit_id: str,
698698
proof_input: str,
699-
prover_implementation: str | None = None,
700699
perform_verify: bool = False,
701700
wait: bool = True,
701+
**kwargs,
702702
) -> str:
703703
"""Prove a circuit with specified inputs. For information, refer to the
704704
[API docs](https://sindri.app/docs/reference/api/proof-create/).
@@ -707,9 +707,6 @@ def prove_circuit(
707707
- `circuit_id`: The circuit identifier of the circuit.
708708
- `proof_input`: A string representing proof input which may be formatted as JSON for any
709709
framework. Noir circuits optionally accept TOML formatted proof input.
710-
- `prover_implementation`: For Sindri internal usage. The default value, `None`, chooses
711-
the best supported prover implementation based on a variety of factors including the
712-
available hardware, proving scheme, circuit size, and framework.
713710
- `perform_verify`: A boolean indicating whether to perform an internal verification check
714711
during the proof creation.
715712
- `wait`:
@@ -730,6 +727,9 @@ def prove_circuit(
730727
# Return values
731728
proof_id = ""
732729

730+
# Grab prover_implementation from **kwargs
731+
prover_implementation = kwargs.get("prover_implementation", None)
732+
733733
# 1. Submit a proof, obtain a proof_id.
734734
if self.verbose_level > 0:
735735
print("Prove circuit")

0 commit comments

Comments
 (0)