Skip to content

Commit

Permalink
use staged
Browse files Browse the repository at this point in the history
  • Loading branch information
mitschabaude committed Mar 5, 2024
1 parent 46b1300 commit f27f6d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/base/snark0.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ module Run = struct

(* start an as_prover / exists block and return a function to finish it and witness a given list of fields *)
let as_prover_manual (size_to_witness : int) :
field array option -> Field.t array =
(field array option -> Field.t array) Staged.t =
let s = !state in
let old_as_prover = Run_state.as_prover s in
(* enter the as_prover block *)
Expand Down Expand Up @@ -1426,7 +1426,7 @@ module Run = struct
| true, None ->
failwith "Expected values to witness"
in
finish_computation
Staged.stage finish_computation

let run_unchecked x =
finalize_is_running (fun () ->
Expand Down
2 changes: 1 addition & 1 deletion src/base/snark_intf.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ module type Run_basic = sig
manual_callbacks

(* Callback, low-level version of [as_prover] and [exists]. *)
val as_prover_manual : int -> field array option -> Field.t array
val as_prover_manual : int -> (field array option -> Field.t array) Staged.t

(** Generate the public input vector for a given statement. *)
val generate_public_input :
Expand Down

0 comments on commit f27f6d8

Please sign in to comment.