-
Notifications
You must be signed in to change notification settings - Fork 78
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
24 changed files
with
665 additions
and
674 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
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,37 +1,33 @@ | ||
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 | ||
module type S = sig | ||
module Field : Snarky_intf.Field.S | ||
|
||
val add_constraint : | ||
?label:string -> t -> (Field.t Cvar.t, Field.t) Constraint.basic -> unit | ||
module Bigint : Snarky_intf.Bigint_intf.Extended with type field := Field.t | ||
|
||
val digest : t -> Md5.t | ||
val field_size : Bigint.t | ||
|
||
val set_primary_input_size : t -> int -> unit | ||
module Constraint : sig | ||
type t [@@deriving sexp] | ||
|
||
val set_auxiliary_input_size : t -> int -> unit | ||
val boolean : Field.t Cvar.t -> t | ||
|
||
val get_public_input_size : t -> int Core_kernel.Set_once.t | ||
val equal : Field.t Cvar.t -> Field.t Cvar.t -> t | ||
|
||
val get_rows_len : t -> int | ||
end | ||
val r1cs : Field.t Cvar.t -> Field.t Cvar.t -> Field.t Cvar.t -> t | ||
|
||
module type S = sig | ||
module Field : Snarky_intf.Field.S | ||
val square : Field.t Cvar.t -> Field.t Cvar.t -> t | ||
|
||
module Bigint : Snarky_intf.Bigint_intf.Extended with type field := Field.t | ||
val eval : t -> (Field.t Cvar.t -> Field.t) -> bool | ||
|
||
val field_size : Bigint.t | ||
val log_constraint : t -> (Field.t Cvar.t -> Field.t) -> string | ||
end | ||
|
||
module R1CS_constraint_system : | ||
Constraint_system_intf with module Field := Field | ||
Constraint_system.S | ||
with module Field := Field | ||
with type constraint_ = Constraint.t | ||
|
||
module Run_state : | ||
Run_state_intf.S | ||
with type field := Field.t | ||
and type constraint_ := Constraint.t | ||
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
Oops, something went wrong.