-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
257 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,11 @@ | ||
open Core_kernel | ||
|
||
module type Constraint_system_intf = sig | ||
module Field : sig | ||
type t | ||
end | ||
|
||
type t | ||
|
||
val create : unit -> t | ||
|
||
val finalize : t -> unit | ||
|
||
val add_constraint : | ||
?label:string -> t -> (Field.t Cvar.t, Field.t) Constraint.basic -> unit | ||
|
||
val digest : t -> Md5.t | ||
|
||
val set_primary_input_size : t -> int -> unit | ||
|
||
val set_auxiliary_input_size : t -> int -> unit | ||
|
||
val get_public_input_size : t -> int Core_kernel.Set_once.t | ||
|
||
val get_rows_len : t -> int | ||
end | ||
|
||
module type S = sig | ||
module Field : Snarky_intf.Field.S | ||
|
||
module Bigint : Snarky_intf.Bigint_intf.Extended with type field := Field.t | ||
|
||
val field_size : Bigint.t | ||
|
||
module R1CS_constraint_system : | ||
Constraint_system_intf with module Field := Field | ||
module R1CS_constraint_system : Constraint_system.S with module Field := Field | ||
|
||
module Run_state : Run_state_intf.S | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
type 'f t = | ||
| T : | ||
(module Backend_intf.Constraint_system_intf | ||
with type Field.t = 'f | ||
and type t = 't ) | ||
* 't | ||
-> 'f t | ||
open Core_kernel | ||
|
||
module type S = sig | ||
module Field : sig | ||
type t | ||
end | ||
|
||
type t | ||
|
||
val create : unit -> t | ||
|
||
val finalize : t -> unit | ||
|
||
val add_constraint : | ||
?label:string -> t -> (Field.t Cvar.t, Field.t) Constraint.basic -> unit | ||
|
||
val digest : t -> Md5.t | ||
|
||
val set_primary_input_size : t -> int -> unit | ||
|
||
val set_auxiliary_input_size : t -> int -> unit | ||
|
||
val get_public_input_size : t -> int Core_kernel.Set_once.t | ||
|
||
val get_rows_len : t -> int | ||
end | ||
|
||
type 'f t = T : (module S with type Field.t = 'f and type t = 't) * 't -> 'f t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.