1-Impl.Fieldinclude Core_kernel.Bin_prot.Binable.S with type t := tval bin_size_t : t Bin_prot.Size.sizerval bin_write_t : t Bin_prot.Write.writerval bin_read_t : t Bin_prot.Read.readerval __bin_read_t__ : ( int -> t ) Bin_prot.Read.readerval bin_writer_t : t Bin_prot.Type_class.writerval bin_reader_t : t Bin_prot.Type_class.readerval bin_t : t Bin_prot.Type_class.tval hash_fold_t :
Ppx_hash_lib.Std.Hash.state ->
t ->
Ppx_hash_lib.Std.Hash.stateval hash : t -> Ppx_hash_lib.Std.Hash.hash_valueval gen : t Core_kernel.Quickcheck.Generator.tA generator for Quickcheck tests.
A generator for Quickcheck tests within specified inclusive bounds
val gen_uniform : t Core_kernel.Quickcheck.Generator.tA uniform generator for Quickcheck tests.
A uniform Quickcheck generator within specified inclusive bounds
include Snarky_intf.Field.Extended with type t := tinclude Snarky_intf.Field.S with type t := tinclude Bin_prot.Binable.S with type t := tval bin_size_t : t Bin_prot.Size.sizerval bin_write_t : t Bin_prot.Write.writerval bin_read_t : t Bin_prot.Read.readerval __bin_read_t__ : ( int -> t ) Bin_prot.Read.readerval bin_writer_t : t Bin_prot.Type_class.writerval bin_reader_t : t Bin_prot.Type_class.readerval bin_t : t Bin_prot.Type_class.tval of_int : int -> tval one : tval zero : tval is_square : t -> boolval print : t -> unitval random : unit -> tmodule Mutable : sig ... endmodule Vector : Snarky_intf.Vector.S with type elt = tval size : Snarky_backendless.Snark_intf.Bignum_bigint.tThe number at which values in the field wrap back around to 0.
val unpack : t -> bool listConvert a field element into its constituent bits.
val project : bool list -> tConvert a list of bits into a field element. This is the inverse of unpack.
val project_reference : bool list -> tproject, but slow. Exposed for benchmarks.
val parity : t -> boolGet the least significant bit of a field element.
module Var :
Snarky_backendless.Snark_intf.Field_var_intf
with type field := field
and type boolean_var := Boolean.varmodule Checked :
Snarky_backendless.Snark_intf.Field_checked_intf
with type field := field
and type field_var := Var.t
and type scale_field := field
and type 'a checked := 'a Checked.t
and type boolean_var := Boolean.var