text stringlengths 0 601k |
|---|
let nat_module ( i : int ) int : ( module Pickles_types . Nat . Intf ) Intf = List . nth_exn nat_modules_list i |
let pickles_compile ( choices : pickles_rule_js Js . js_array Js . t ) t = let choices = choices |> Js . to_array |> Array . to_list in let branches = List . length choices + 1 in let choices ~ self = List . map choices ~ f : create_pickles_rule @ [ dummy_rule self ] in let ( module Branches ) Branches = nat_module bra... |
let proof_to_string proof = proof |> Pickles . Side_loaded . Proof . to_base64 |> Js . string |
let pickles = object % js val compile = pickles_compile val proofToString = proof_to_string end |
module Ledger = struct type js_uint32 = < value : field_class Js . t Js . readonly_prop > Js . t type js_uint64 = < value : field_class Js . t Js . readonly_prop > Js . t type private_key = < s : scalar_class Js . t Js . prop > Js . t type public_key = < g : group_class Js . t Js . prop > Js . t type zkapp_account = < ... |
let export ( ) = Js . export " Field " field_class ; Js . export " Scalar " scalar_class ; Js . export " Bool " bool_class ; Js . export " Group " group_class ; Js . export " Poseidon " poseidon ; Js . export " Circuit " Circuit . circuit ; Js . export " Ledger " Ledger . ledger_class ; Js . export " Pickles " pickles |
let export_global ( ) = let snarky_obj = Js . Unsafe ( . let i = inject in obj [ | ( " Field " , i field_class ) field_class ; ( " Scalar " , i scalar_class ) scalar_class ; ( " Bool " , i bool_class ) bool_class ; ( " Group " , i group_class ) group_class ; ( " Poseidon " , i poseidon ) poseidon ; ( " Circuit " , i Ci... |
let to_string ? buf ? len ? std events = to_string ? buf ? len ? std @@ json_of_events events |
let to_channel ? buf ? len ? std out_channel events = to_channel ? buf ? len ? std out_channel @@ json_of_events events |
let to_file ? buf ? len ? std filename events = let oc = open_out filename in to_channel ? buf ? len ? std oc events ; close_out oc |
module Constraints ( Snarky_backendless : Snark_intf . Basic ) Basic = struct open Snarky_backendless let log ? weight ( t : _ Checked . t ) t : events = let rev_events = ref [ ] in let _total = constraint_count ? weight t ~ log ( : fun ( ? start = false ) false label count -> rev_events := create_event label ~ phase (... |
type lbl = label Location . loc |
type longident = Ast . longident = | Lident of string | Ldot of longident * string | Lapply of longident * longident |
type lid = longident Location . loc |
let sexp_of_lid { txt ; _ } = sexp_of_longident txt |
let lid_of_sexp sexp = { txt = longident_of_sexp sexp ; loc = Location . none } |
type modinfo = ModuleName of lid | IdentName of lid | BaseModule of lid |
let cmp_modinfo x y = match ( x , y ) with | ModuleName x , ModuleName y | IdentName x , IdentName y | BaseModule x , BaseModule y -> Longident . compare x . txt y . txt | ModuleName _ , _ -> - 1 | _ , ModuleName _ -> 1 | IdentName _ , _ -> - 1 | _ , IdentName _ -> 1 |
let parse_to_modinfo expr = match expr . pexp_desc with | Pexp_construct ( ident , None ) -> ModuleName ident | Pexp_ident ( { txt = Ldot _ ; _ } as ident ) -> IdentName ident | _ -> raise_errorf ~ loc : expr . pexp_loc " Expected a bare module name or a type identifier of form \ Module_name . type_name " |
type field = { label : lbl ; modules : modinfo list ; base_module : lid ; var_name : string } |
type last_modules = ( modinfo * lbl ) list |
type polyrecord = { name : lbl ; fields : field list } |
type polyrecord_map = ( label , polyrecord , Base . String . comparator_witness ) Map_intf . Map . t |
let rec unique_var_name ~ modules var_name_map var_name ' i = let var_name = if i = 0 then var_name ' else var_name ' ^ string_of_int i in match Map . find var_name_map var_name with | Some stored_modules -> if List . compare cmp_modinfo stored_modules modules = 0 then ( var_name_map , var_name ) else unique_var_name ~... |
let unique_field_types fields = List . dedup_and_sort fields ~ compare ( : fun field1 field2 -> String . compare field1 . var_name field2 . var_name ) |
let fields_pattern ~ loc polyrecord = Pat . record ~ loc ( List . map polyrecord . fields ~ f ( : fun { label ; _ } -> ( { txt = Lident label . txt ; loc = label . loc } , Pat . var ~ loc : label . loc label ) ) ) Closed |
let fields_expression ~ loc polyrecord = Exp . record ~ loc ( List . map polyrecord . fields ~ f ( : fun { label ; _ } -> ( { txt = Lident label . txt ; loc = label . loc } , Exp . ident ~ loc : label . loc { txt = Lident label . txt ; loc = label . loc } ) ) ) None |
let last_common_name lid1 lid2 = let names1 = Longident . flatten_exn lid1 in let names2 = Longident . flatten_exn lid2 in let rec last_equal prev_name names1 names2 = match ( names1 , names2 ) with | a :: names1 , b :: names2 when String . equal a b -> last_equal a names1 names2 | _ , _ -> prev_name in last_equal " un... |
let rec longident_of_revlist ~ loc = function | [ ] -> raise_errorf ~ loc " No common prefix found . " | [ a ] -> Lident a | a :: rest -> Ldot ( longident_of_revlist ~ loc rest , a ) |
let common_prefix ~ loc lid1 lid2 = let names1 = Longident . flatten_exn lid1 in let names2 = Longident . flatten_exn lid2 in let rec common_prefix names1 names2 = match ( names1 , names2 ) with | a :: names1 , b :: names2 when String . equal a b -> a :: common_prefix names1 names2 | _ , _ -> [ ] in longident_of_revlis... |
let is_listlike expr = match expr . pexp_desc with | Pexp_array _ | Pexp_tuple _ | Pexp_construct ( { txt = Lident " " ; :: _ } , Some { pexp_desc = Pexp_tuple [ _ ; _ ] ; _ } ) | Pexp_construct ( { txt = Lident " [ ] " ; _ } , None ) -> true | _ -> false |
let rec parse_listlike expr = match expr . pexp_desc with | Pexp_array exprs -> exprs | Pexp_tuple exprs -> exprs | Pexp_construct ( { txt = Lident " " ; :: _ } , Some { pexp_desc = Pexp_tuple [ hd ; tl ] ; _ } ) -> hd :: parse_listlike tl | Pexp_construct ( { txt = Lident " [ ] " ; _ } , None ) -> [ ] | _ -> raise_err... |
module Polydef = struct let parse_field var_name_map ( { loc ; txt = name } , expr ) = let label = match name with | Lident label -> { loc ; txt = label } | _ -> raise_errorf ~ loc " Expected a bare identifier . " in let modules = if is_listlike expr then parse_listlike expr else [ expr ] in let modules = List . map mo... |
let rec longident_add lid = function | [ ] -> lid | name :: names -> longident_add ( Ldot ( lid , name ) ) names |
module Typedef = struct let build ~ name ~ map ~ polyname ~ current_module polyrecord = let module_names = List . rev current_module in let modules , fields = List . fold_left polyrecord . fields ~ init ( [ ] , : [ ] ) ~ f ( : fun ( modules , fields ) field -> match field . modules with | [ ] -> ( ( BaseModule field . ... |
module Snarkytyp = struct let build_fold ~ loc ~ name ~ typ_mod ~ fname polyrecord = let typ_fn f = Exp . ident ~ loc : typ_mod . loc { txt = Ldot ( typ_mod . txt , f ) ; loc = typ_mod . loc } in List . fold_left ( List . rev polyrecord . fields ) ~ init : ( Exp . apply ~ loc ( typ_fn " return " ) [ ( Nolabel , fields_... |
module Polyfold = struct let rec build ~ loc ~ current_module ~ name ~ var_name ~ folder last_modules = let module_names = List . rev current_module in let call ( modinfo , label ) = let f_name = match modinfo with | ModuleName { txt = ident ; loc = ident_loc } | IdentName { txt = Ldot ( ident , _ ) ; loc = ident_loc }... |
module Polyfields = struct let build ~ loc polyrecord = Str . value ~ loc Nonrecursive ( List . map polyrecord . fields ~ f ( : fun { label ; _ } -> let loc = label . loc in let label_ident = { txt = Lident label . txt ; loc = label . loc } in let label_pat = Pat . var ~ loc label in let destr_record = Pat . record [ (... |
let snarky_module_map = object inherit [ polyrecord_map * last_modules * string list ] Ast_traverse . fold_map as super method ! structure_item str acc = let or_default v = match v with Some v -> v | None -> super # structure_item str acc in match str . pstr_desc with | Pstr_extension ( ( { txt = name ; _ } , payload )... |
let include_ ~ loc ( ? attr = [ ] ) mod_ = Str . include_ ~ loc { pincl_loc = loc ; pincl_attributes = attr ; pincl_mod = mod_ } |
let snarky_module ~ loc ~ path : _ payload = match payload with | PStr structure -> let structure , _ = snarky_module_map # structure structure ( Map . empty ( module String ) , [ ] , [ ] ) in include_ ~ loc ( Mod . structure ~ loc structure ) | _ -> raise_errorf ~ loc " Expected [ %% snarky_module ] to contain a struc... |
let ext = Extension . declare " snarky_module " Extension . Context . structure_item Ast_pattern . __ snarky_module |
let main ( ) = Driver . register_transformation " snarky_module " ~ rules [ : Context_free . Rule . extension ext ] |
module Type = struct include struct type nonrec ( ' a , ' a1 , ' b , ' c ) polymorphic = { a : ' a ; b : ' b ; c : ' c ; d : ' a ; e : ' a1 } let a { a ; _ } = a and b { b ; _ } = b and c { c ; _ } = c and d { d ; _ } = d and e { e ; _ } = e type nonrec t = ( A . t , A . t , B . t , C . t ) polymorphic let typ = let st... |
module Type2 = struct include struct type nonrec ( ' hash , ' hash1 , ' hash2 , ' nat , ' time ) polymorphic = { length : ' nat ; timestamp : ' time ; previous_hash : ' hash ; next_hash : ' hash1 ; new_hash : ' hash2 } let length { length ; _ } = length and timestamp { timestamp ; _ } = timestamp and previous_hash { pr... |
let bignum_as_fixed_point k x = let p , q = Bignum ( . num_as_bigint x , den_as_bigint x ) x in B ( . shift_left p k / q ) q |
let least ~ such_that = let rec go i = if such_that i then i else go ( i + 1 ) 1 in go 0 |
let greatest ~ such_that = let rec go best i = match such_that i with | Some acc -> go ( Some acc ) acc ( i + 1 ) 1 | None -> Option . value_exn best in go None 0 |
let factorial n = let rec go acc i = if B ( . equal zero i ) i then acc else go B ( . i * acc ) acc B ( . i - one ) one in go B . one n |
let log ~ terms x = let open Bignum in let a = x - one in let open Sequence in unfold ~ init ( : a , 1 ) 1 ~ f ( : fun ( ai , i ) i -> let t = ai / of_int i in Some ( ( if Int ( . i mod 2 = 0 ) 0 then neg t else t ) t , ( ai * a , Int ( . i + 1 ) 1 ) 1 ) 1 ) |> Fn . flip take terms |> fold ~ init : zero ~ f ( : + ) |
let terms_needed ~ derivative_magnitude_upper_bound ~ bits_of_precision : k = let lower_bound = Bignum . of_bigint B ( . pow ( of_int 2 ) 2 k ) k in least ~ such_that ( : fun n -> let nn = B . of_int n in let d = derivative_magnitude_upper_bound Int ( . n + 1 ) 1 in Bignum ( . of_bigint ( factorial nn ) nn / d > lower_... |
let ceil_log2 n = least ~ such_that ( : fun i -> B ( . pow ( of_int 2 ) 2 ( of_int i ) i >= n ) n ) n |
let binary_expansion x = assert ( Bignum ( . x < one ) one ) one ; let two = Bignum . of_int 2 in Sequence . unfold ~ init ( : x , Bignum ( . one / two ) two ) two ~ f ( : fun ( rem , pt ) pt -> let b = Bignum ( . rem >= pt ) pt in let rem = if b then Bignum ( . rem - pt ) pt else rem in Some ( b , Bignum ( . rem , pt ... |
module Coeff_integer_part = struct type t = [ ` Zero | ` One ] [ @@ deriving sexp ] sexp let of_int_exn : int -> t = function | 0 -> ` Zero | 1 -> ` One | _ -> assert false let to_int = function ` Zero -> 0 | ` One -> 1 end |
module Params = struct type t = { total_precision : int ; per_term_precision : int ; terms_needed : int ; linear_term_integer_part : Coeff_integer_part . t ; coefficients : ( [ ` Neg | ` Pos ] * B . t ) t array } end |
module Exp = struct let derivative_magnitude_upper_bound n ~ log_base = Bignum ( . log_base ** n ) n let terms_needed ~ log_base ~ bits_of_precision = terms_needed ~ derivative_magnitude_upper_bound : ( derivative_magnitude_upper_bound ~ log_base ) log_base ~ bits_of_precision type bit_params = { total_precision : int ... |
type ' a json = [ > ` String of string | ` Assoc of ( string * ' a json ) list | ` List of ' a json list ] as ' a |
module type Basic = sig type field module R1CS_constraint_system : sig type t val digest : t -> Md5 . t val to_json : t -> ' a json end module Var : sig include Comparable . S val create : int -> t val index : t -> int end module Bigint : sig include Snarky_intf . Bigint_intf . Extended with type field := field val of_... |
module type S = sig include Basic module Number : Number_intf . S with type ' a checked := ' a Checked . t and type field := field and type field_var := Field . Var . t and type bool_var := Boolean . var module Enumerable ( M : sig type t [ @@ deriving enum ] end ) : Enumerable_intf . S with type ' a checked := ' a Che... |
module type Run_basic = sig module R1CS_constraint_system : sig type t val digest : t -> Md5 . t end module Var : sig include Comparable . S val create : int -> t val index : t -> int end type field module Bigint : sig include Snarky_intf . Bigint_intf . Extended with type field := field val of_bignum_bigint : Bignum_b... |
module type Run = sig include Run_basic module Number : Number_intf . Run with type field := field and type field_var := Field . t and type bool_var := Boolean . var module Enumerable ( M : sig type t [ @@ deriving enum ] end ) : Enumerable_intf . Run with type ( ' a , ' b ) typ := ( ' a , ' b ) Typ . t and type bool_v... |
module UInt64 = struct type t = Unsigned . UInt64 . t [ @@ deriving ord , equal ] equal let to_yojson x = ` String ( Unsigned . UInt64 . to_string x ) x let of_yojson = function | ` String x -> Or_error . try_with ( fun ( ) -> Unsigned . UInt64 . of_string x ) x |> Result . map_error ~ f ( : fun err -> sprintf " Snark_... |
module Kind = struct type t = { type_ : string [ @ key " type ] " ; identifier : string } [ @@ deriving yojson , sexp , ord , equal ] equal end |
module Constraint_constants = struct module Transaction_capacity = struct type t = Log_2 of int | Txns_per_second_x10 of int [ @@ deriving sexp , ord , equal ] equal let to_yojson t : Yojson . Safe . t = match t with | Log_2 i -> ` Assoc [ ( " two_to_the " , ` Int i ) i ] | Txns_per_second_x10 i -> ` Assoc [ ( " txns_p... |
module Commits = struct type t = { mina : string ; marlin : string } [ @@ deriving yojson , sexp , ord , equal ] equal end |
type t = { header_version : int ; kind : Kind . t ; constraint_constants : Constraint_constants . t ; commits : Commits . t ; length : int ; commit_date : string ; constraint_system_hash : string ; identifying_hash : string } |
let prefix_len = String . length prefix |
let parse_prefix ( lexbuf : Lexing . lexbuf ) lexbuf = let open Or_error . Let_syntax in Result . map_error ~ f ( : fun err -> Error . tag_arg err " Could not read prefix " ( " prefix " , prefix ) prefix [ % sexp_of : string * string ] string ) @@ Or_error . try_with_join ( fun ( ) -> lexbuf . lex_start_pos <- lexbuf .... |
let parse_lexbuf ( lexbuf : Lexing . lexbuf ) lexbuf = let open Or_error . Let_syntax in Result . map_error ~ f ( : Error . tag ~ tag " : Failed to read snark key header ) " @@ let % bind ( ) = parse_prefix lexbuf in Or_error . try_with ( fun ( ) -> let yojson_parsebuffer = Yojson . init_lexer ( ) in Yojson . Safe . re... |
let write_with_header ~ expected_max_size_log2 ~ append_data header filename = let length = 1 lsl expected_max_size_log2 in if length <= 0 then failwith " Snark_keys_header . write_header : expected_max_size_log2 is too large , \ the resulting length underflows " ; let header_string = Yojson . Safe . to_string ( to_yoj... |
let read_with_header ~ read_data filename = let open Or_error . Let_syntax in Or_error . try_with_join ( fun ( ) -> let in_channel = In_channel . create ~ binary : true filename in let file_length = In_channel . length in_channel |> Int . of_int64_exn in let lexbuf = Lexing . from_channel in_channel in let % bind heade... |
module Make_snarkable ( Impl : Snarky_backendless . Snark_intf . S ) S = struct open Impl module type S = sig type var type value val typ : ( var , value ) value Typ . t end module Bits = struct module type Lossy = Bits_intf . Snarkable . Lossy with type ( ' a , ' b ) ' b typ := ( ' a , ' b ) ' b Typ . t and type ' a c... |
module Tock0 = struct include Crypto_params . Tock module Snarkable = Make_snarkable ( Crypto_params . Tock ) Tock end |
module Tick0 = struct include Crypto_params . Tick module Snarkable = Make_snarkable ( Crypto_params . Tick ) Tick end let params = Crypto_params . Tock . group_map_params ( ) in let module M = Crypto_params . Tick . Run in Quickcheck . test ~ trials : 3 Tick0 . Field . gen ~ f ( : fun t -> let checked_output = M . run... |
module Make_inner_curve_scalar ( Impl : Snark_intf . S ) S ( Other_impl : Snark_intf . S ) S = struct module T = Other_impl . Field include ( T : module type of T with module Var := T . Var and module Checked := T . Checked ) let of_bits = Other_impl . Field . project let length_in_bits = size_in_bits open Impl type va... |
module Make_inner_curve_aux ( Impl : Snark_intf . S ) S ( Other_impl : Snark_intf . S ) S = struct open Impl type var = Field . Var . t * Field . Var . t module Scalar = Make_inner_curve_scalar ( Impl ) Impl ( Other_impl ) Other_impl end |
module Tock = struct include ( Tock0 : module type of Tock0 with module Inner_curve := Tock0 . Inner_curve ) module Fq = Snarky_field_extensions . Field_extensions . F ( Tock0 ) Tock0 module Inner_curve = struct include Tock0 . Inner_curve include Sexpable . Of_sexpable ( struct type t = Field . t * Field . t [ @@ deri... |
module Tick = struct include ( Tick0 : module type of Tick0 with module Field := Tick0 . Field and module Inner_curve := Tick0 . Inner_curve ) module Field = struct include Tick0 . Field include Hashable . Make ( Tick0 . Field ) Field module Bits = Bits . Make_field ( Tick0 . Field ) Field ( Tick0 . Bigint ) Bigint let... |
let target_bit_length = Tick . Field . size_in_bits - 8 |
module type Snark_intf = Snark_intf . S |
module Group_map = struct let to_group x = Group_map . to_group ( module Tick . Field ) Field ~ params ( : Tock . group_map_params ( ) ) x module Checked = struct let to_group x = Snarky_group_map . Checked . to_group ( module Tick . Run ) Run ~ params ( : Tock . group_map_params ( ) ) x end end |
module Snark_tables = struct module Serializable = struct [ %% versioned module Stable = struct module V2 = struct type t = ( Ledger_proof . Stable . V2 . t One_or_two . Stable . V1 . t Priced_proof . Stable . V1 . t * [ ` Rebroadcastable of Core . Time . Stable . With_utc_sexp . V2 . t | ` Not_rebroadcastable ] ) Tran... |
module type S = sig type transition_frontier module Resource_pool : sig include Intf . Snark_resource_pool_intf with type transition_frontier := transition_frontier val remove_solved_work : t -> Transaction_snark_work . Statement . t -> unit module Diff : Intf . Snark_pool_diff_intf with type resource_pool := t end mod... |
module type Transition_frontier_intf = sig type t type staged_ledger module Breadcrumb : sig type t val staged_ledger : t -> staged_ledger end type best_tip_diff val best_tip : t -> Breadcrumb . t val best_tip_diff_pipe : t -> best_tip_diff Broadcast_pipe . Reader . t val snark_pool_refcount_pipe : t -> Transition_fron... |
module Make ( Base_ledger : Intf . Base_ledger_intf ) Base_ledger_intf ( Staged_ledger : sig type t val ledger : t -> Base_ledger . t end ) end ( Transition_frontier : Transition_frontier_intf with type staged_ledger := Staged_ledger . t ) t = struct module Resource_pool = struct module T = struct let label = " snark_p... |
module Diff_versioned = struct [ %% versioned module Stable = struct [ @@@ no_toplevel_latest_type ] no_toplevel_latest_type module V2 = struct type t = Resource_pool . Diff . t = | Add_solved_work of Transaction_snark_work . Statement . Stable . V2 . t * Ledger_proof . Stable . V2 . t One_or_two . Stable . V1 . t Pric... |
module Rejected = struct [ %% versioned module Stable = struct [ @@@ no_toplevel_latest_type ] no_toplevel_latest_type module V1 = struct type t = unit [ @@ deriving sexp , yojson ] yojson let to_latest = Fn . id end end ] end type t = Stable . Latest . t [ @@ deriving sexp , yojson ] yojson end |
module Make ( Transition_frontier : T ) T ( Pool : Intf . Snark_resource_pool_intf with type transition_frontier := Transition_frontier . t ) t : Intf . Snark_pool_diff_intf with type resource_pool := Pool . t = struct type t = | Add_solved_work of Work . t * Ledger_proof . t One_or_two . t Priced_proof . t | Empty [ @... |
module T = struct type view = { removed : int ; refcount_table : int Work . Table . t ; best_tip_table : Work . Hash_set . t } [ @@ deriving sexp ] sexp type t = { refcount_table : int Work . Table . t ; best_tip_table : Work . Hash_set . t } let get_work = Staged_ledger . Scan_state . all_work_statements_exn let add_t... |
module Broadcasted = Functor . Make_broadcasted ( T ) T |
module Poly = struct [ %% versioned module Stable = struct module V1 = struct type ( ' blockchain_state , ' consensus_transition , ' pending_coinbase_update ) t = { blockchain_state : ' blockchain_state ; consensus_transition : ' consensus_transition ; pending_coinbase_update : ' pending_coinbase_update } [ @@ deriving... |
module Value = struct [ %% versioned module Stable = struct module V2 = struct type t = ( Blockchain_state . Value . Stable . V2 . t , Consensus . Data . Consensus_transition . Value . Stable . V1 . t , Pending_coinbase . Update . Stable . V1 . t ) Poly . Stable . V1 . t [ @@ deriving sexp , to_yojson ] to_yojson let t... |
type var = ( Blockchain_state . var , Consensus . Data . Consensus_transition . var , Pending_coinbase . Update . var ) Poly . t |
let create_value ~ blockchain_state ~ consensus_transition ~ pending_coinbase_update ( ) : Value . t = { blockchain_state ; consensus_transition ; pending_coinbase_update } |
let genesis ~ constraint_constants ~ consensus_constants ~ genesis_ledger : value = let genesis_ledger = Lazy . force genesis_ledger in { Poly . blockchain_state = Blockchain_state . genesis ~ constraint_constants ~ consensus_constants ~ genesis_ledger_hash ( : Mina_ledger . Ledger . merkle_root genesis_ledger ) genesi... |
let typ = let open Snark_params . Tick . Typ in of_hlistable ~ var_to_hlist : to_hlist ~ var_of_hlist : of_hlist ~ value_to_hlist : to_hlist ~ value_of_hlist : of_hlist [ Blockchain_state . typ ; Consensus . Data . Consensus_transition . typ ; Pending_coinbase . Update . typ ] |
module Make ( Impl : Snarky_backendless . Snark_intf . S ) S = struct open Impl open Let_syntax let pack_int bs = assert ( List . length bs < 62 ) 62 ; let rec go pt acc = function | [ ] -> acc | b :: bs -> if b then go ( 2 * pt ) pt ( pt + acc ) acc bs else go ( 2 * pt ) pt acc bs in go 1 0 bs let boolean_assert_lte (... |
module Worker = struct include Functor . Make ( Inputs ) Inputs module Rpcs_versioned = struct open Core_kernel open Signature_lib module Work = struct type ledger_proof = Inputs . Ledger_proof . t include Work end module Get_work = struct module V2 = struct module T = struct type query = unit [ @@ deriving bin_io , ve... |
module Var = struct type t = | TM_SELECTED_TEXT | TM_CURRENT_LINE | TM_CURRENT_WORD | TM_LINE_INDEX | TM_LINE_NUMBER | TM_FILENAME | TM_FILENAME_BASE | TM_DIRECTORY | TM_FILEPATH let to_string = function | TM_SELECTED_TEXT -> " TM_SELECTED_TEXT " | TM_CURRENT_LINE -> " TM_CURRENT_LINE " | TM_CURRENT_WORD -> " TM_CURREN... |
type variable_transform = { regex : string ; format_string : string ; regex_options : string option } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.