@helios-lang/effect 0.6.13 → 0.6.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Cardano/TxBuilder.js +11 -1
- package/dist/Cardano/TxBuilder.js.map +1 -1
- package/dist/Cardano/Uplc/Cek.js +53 -25
- package/dist/Cardano/Uplc/Cek.js.map +1 -1
- package/dist/Cardano/Uplc/Metadata.js +184 -0
- package/dist/Cardano/Uplc/Metadata.js.map +1 -0
- package/dist/Cardano/Uplc/Script.js +7 -19
- package/dist/Cardano/Uplc/Script.js.map +1 -1
- package/dist/Cardano/Uplc/Term.js +83 -4
- package/dist/Cardano/Uplc/Term.js.map +1 -1
- package/dist/Cardano/ZK.js +232 -0
- package/dist/Cardano/ZK.js.map +1 -0
- package/dist/Cardano/index.js +1 -0
- package/dist/Cardano/index.js.map +1 -1
- package/package.json +1 -1
- package/types/Cardano/Contract.d.ts +19 -19
- package/types/Cardano/ScriptContext.d.ts +8 -8
- package/types/Cardano/TxBuilder.d.ts +4 -4
- package/types/Cardano/Uplc/Cek.d.ts +1 -8
- package/types/Cardano/Uplc/Cek.d.ts.map +1 -1
- package/types/Cardano/Uplc/Metadata.d.ts +31 -0
- package/types/Cardano/Uplc/Metadata.d.ts.map +1 -0
- package/types/Cardano/Uplc/Script.d.ts +1 -4
- package/types/Cardano/Uplc/Script.d.ts.map +1 -1
- package/types/Cardano/Uplc/Term.d.ts +110 -5
- package/types/Cardano/Uplc/Term.d.ts.map +1 -1
- package/types/Cardano/ZK.d.ts +188 -0
- package/types/Cardano/ZK.d.ts.map +1 -0
- package/types/Cardano/index.d.ts +1 -0
- package/types/Cardano/index.d.ts.map +1 -1
|
@@ -17,6 +17,8 @@ export type SourceSpan = Schema.Schema.Type<typeof SourceSpan>;
|
|
|
17
17
|
export declare const Apply: Schema.TaggedStruct<"Apply", {
|
|
18
18
|
fn: Schema.suspend<Term, Term, never>;
|
|
19
19
|
arg: Schema.suspend<Term, Term, never>;
|
|
20
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
21
|
+
description: Schema.optional<typeof Schema.String>;
|
|
20
22
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
21
23
|
file: typeof Schema.String;
|
|
22
24
|
start: Schema.Struct<{
|
|
@@ -33,11 +35,15 @@ export type Apply = {
|
|
|
33
35
|
_tag: "Apply";
|
|
34
36
|
fn: Term;
|
|
35
37
|
arg: Term;
|
|
38
|
+
capture?: string | undefined;
|
|
39
|
+
description?: string | undefined;
|
|
36
40
|
sourceSpan?: SourceSpan | undefined;
|
|
37
41
|
};
|
|
38
42
|
declare const Builtin$: Schema.TaggedStruct<"Builtin", {
|
|
39
43
|
id: typeof Schema.Int;
|
|
40
44
|
name: Schema.optional<typeof Schema.String>;
|
|
45
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
46
|
+
description: Schema.optional<typeof Schema.String>;
|
|
41
47
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
42
48
|
file: typeof Schema.String;
|
|
43
49
|
start: Schema.Struct<{
|
|
@@ -50,11 +56,20 @@ declare const Builtin$: Schema.TaggedStruct<"Builtin", {
|
|
|
50
56
|
}>>;
|
|
51
57
|
}>>;
|
|
52
58
|
}>;
|
|
53
|
-
type Builtin$ =
|
|
59
|
+
type Builtin$ = {
|
|
60
|
+
_tag: "Builtin";
|
|
61
|
+
id: number;
|
|
62
|
+
name?: string | undefined;
|
|
63
|
+
capture?: string | undefined;
|
|
64
|
+
description?: string | undefined;
|
|
65
|
+
sourceSpan?: SourceSpan | undefined;
|
|
66
|
+
};
|
|
54
67
|
export { Builtin$ as Builtin };
|
|
55
68
|
export declare const Case: Schema.TaggedStruct<"Case", {
|
|
56
69
|
arg: Schema.suspend<Term, Term, never>;
|
|
57
70
|
cases: Schema.Array$<Schema.suspend<Term, Term, never>>;
|
|
71
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
72
|
+
description: Schema.optional<typeof Schema.String>;
|
|
58
73
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
59
74
|
file: typeof Schema.String;
|
|
60
75
|
start: Schema.Struct<{
|
|
@@ -71,6 +86,8 @@ export type Case = {
|
|
|
71
86
|
_tag: "Case";
|
|
72
87
|
arg: Term;
|
|
73
88
|
cases: readonly Term[];
|
|
89
|
+
capture?: string | undefined;
|
|
90
|
+
description?: string | undefined;
|
|
74
91
|
sourceSpan?: SourceSpan | undefined;
|
|
75
92
|
};
|
|
76
93
|
export declare const Const: Schema.TaggedStruct<"Const", {
|
|
@@ -118,6 +135,8 @@ export declare const Const: Schema.TaggedStruct<"Const", {
|
|
|
118
135
|
mlResult: Schema.Tuple2<Schema.Tuple<[Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>]>, Schema.Tuple<[Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>]>>;
|
|
119
136
|
}>]>;
|
|
120
137
|
name: Schema.optional<typeof Schema.String>;
|
|
138
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
139
|
+
description: Schema.optional<typeof Schema.String>;
|
|
121
140
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
122
141
|
file: typeof Schema.String;
|
|
123
142
|
start: Schema.Struct<{
|
|
@@ -130,10 +149,19 @@ export declare const Const: Schema.TaggedStruct<"Const", {
|
|
|
130
149
|
}>>;
|
|
131
150
|
}>>;
|
|
132
151
|
}>;
|
|
133
|
-
export type Const =
|
|
152
|
+
export type Const = {
|
|
153
|
+
_tag: "Const";
|
|
154
|
+
value: Value.Value;
|
|
155
|
+
name?: string | undefined;
|
|
156
|
+
capture?: string | undefined;
|
|
157
|
+
description?: string | undefined;
|
|
158
|
+
sourceSpan?: SourceSpan | undefined;
|
|
159
|
+
};
|
|
134
160
|
export declare const Constr: Schema.TaggedStruct<"Constr", {
|
|
135
161
|
tag: typeof Schema.Int;
|
|
136
162
|
args: Schema.Array$<Schema.suspend<Term, Term, never>>;
|
|
163
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
164
|
+
description: Schema.optional<typeof Schema.String>;
|
|
137
165
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
138
166
|
file: typeof Schema.String;
|
|
139
167
|
start: Schema.Struct<{
|
|
@@ -150,10 +178,15 @@ export type Constr = {
|
|
|
150
178
|
_tag: "Constr";
|
|
151
179
|
tag: number;
|
|
152
180
|
args: readonly Term[];
|
|
181
|
+
capture?: string | undefined;
|
|
182
|
+
description?: string | undefined;
|
|
153
183
|
sourceSpan?: SourceSpan | undefined;
|
|
154
184
|
};
|
|
155
185
|
export declare const Delay: Schema.TaggedStruct<"Delay", {
|
|
156
186
|
arg: Schema.suspend<Term, Term, never>;
|
|
187
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
188
|
+
description: Schema.optional<typeof Schema.String>;
|
|
189
|
+
name: Schema.optional<typeof Schema.String>;
|
|
157
190
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
158
191
|
file: typeof Schema.String;
|
|
159
192
|
start: Schema.Struct<{
|
|
@@ -169,10 +202,14 @@ export declare const Delay: Schema.TaggedStruct<"Delay", {
|
|
|
169
202
|
export type Delay = {
|
|
170
203
|
_tag: "Delay";
|
|
171
204
|
arg: Term;
|
|
205
|
+
capture?: string | undefined;
|
|
206
|
+
description?: string | undefined;
|
|
172
207
|
sourceSpan?: SourceSpan | undefined;
|
|
173
208
|
name?: string | undefined;
|
|
174
209
|
};
|
|
175
210
|
declare const Error$: Schema.TaggedStruct<"Error", {
|
|
211
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
212
|
+
description: Schema.optional<typeof Schema.String>;
|
|
176
213
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
177
214
|
file: typeof Schema.String;
|
|
178
215
|
start: Schema.Struct<{
|
|
@@ -185,10 +222,17 @@ declare const Error$: Schema.TaggedStruct<"Error", {
|
|
|
185
222
|
}>>;
|
|
186
223
|
}>>;
|
|
187
224
|
}>;
|
|
188
|
-
type Error$ =
|
|
225
|
+
type Error$ = {
|
|
226
|
+
_tag: "Error";
|
|
227
|
+
capture?: string | undefined;
|
|
228
|
+
description?: string | undefined;
|
|
229
|
+
sourceSpan?: SourceSpan | undefined;
|
|
230
|
+
};
|
|
189
231
|
export { Error$ as Error };
|
|
190
232
|
export declare const Force: Schema.TaggedStruct<"Force", {
|
|
191
233
|
arg: Schema.suspend<Term, Term, never>;
|
|
234
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
235
|
+
description: Schema.optional<typeof Schema.String>;
|
|
192
236
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
193
237
|
file: typeof Schema.String;
|
|
194
238
|
start: Schema.Struct<{
|
|
@@ -204,11 +248,15 @@ export declare const Force: Schema.TaggedStruct<"Force", {
|
|
|
204
248
|
export type Force = {
|
|
205
249
|
_tag: "Force";
|
|
206
250
|
arg: Term;
|
|
251
|
+
capture?: string | undefined;
|
|
252
|
+
description?: string | undefined;
|
|
207
253
|
sourceSpan?: SourceSpan | undefined;
|
|
208
254
|
};
|
|
209
255
|
export declare const Lambda: Schema.TaggedStruct<"Lambda", {
|
|
210
256
|
body: Schema.suspend<Term, Term, never>;
|
|
211
257
|
argName: Schema.optional<typeof Schema.String>;
|
|
258
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
259
|
+
description: Schema.optional<typeof Schema.String>;
|
|
212
260
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
213
261
|
file: typeof Schema.String;
|
|
214
262
|
start: Schema.Struct<{
|
|
@@ -226,12 +274,16 @@ export type Lambda = {
|
|
|
226
274
|
_tag: "Lambda";
|
|
227
275
|
body: Term;
|
|
228
276
|
argName?: string | undefined;
|
|
277
|
+
capture?: string | undefined;
|
|
278
|
+
description?: string | undefined;
|
|
229
279
|
sourceSpan?: SourceSpan | undefined;
|
|
230
280
|
name?: string | undefined;
|
|
231
281
|
};
|
|
232
282
|
export declare const Var: Schema.TaggedStruct<"Var", {
|
|
233
283
|
index: typeof Schema.Int;
|
|
234
284
|
name: Schema.optional<typeof Schema.String>;
|
|
285
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
286
|
+
description: Schema.optional<typeof Schema.String>;
|
|
235
287
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
236
288
|
file: typeof Schema.String;
|
|
237
289
|
start: Schema.Struct<{
|
|
@@ -244,10 +296,19 @@ export declare const Var: Schema.TaggedStruct<"Var", {
|
|
|
244
296
|
}>>;
|
|
245
297
|
}>>;
|
|
246
298
|
}>;
|
|
247
|
-
export type Var =
|
|
299
|
+
export type Var = {
|
|
300
|
+
_tag: "Var";
|
|
301
|
+
index: number;
|
|
302
|
+
name?: string | undefined;
|
|
303
|
+
capture?: string | undefined;
|
|
304
|
+
description?: string | undefined;
|
|
305
|
+
sourceSpan?: SourceSpan | undefined;
|
|
306
|
+
};
|
|
248
307
|
export declare const Term: Schema.Union<[Schema.TaggedStruct<"Apply", {
|
|
249
308
|
fn: Schema.suspend<Term, Term, never>;
|
|
250
309
|
arg: Schema.suspend<Term, Term, never>;
|
|
310
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
311
|
+
description: Schema.optional<typeof Schema.String>;
|
|
251
312
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
252
313
|
file: typeof Schema.String;
|
|
253
314
|
start: Schema.Struct<{
|
|
@@ -262,6 +323,8 @@ export declare const Term: Schema.Union<[Schema.TaggedStruct<"Apply", {
|
|
|
262
323
|
}>, Schema.TaggedStruct<"Builtin", {
|
|
263
324
|
id: typeof Schema.Int;
|
|
264
325
|
name: Schema.optional<typeof Schema.String>;
|
|
326
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
327
|
+
description: Schema.optional<typeof Schema.String>;
|
|
265
328
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
266
329
|
file: typeof Schema.String;
|
|
267
330
|
start: Schema.Struct<{
|
|
@@ -276,6 +339,8 @@ export declare const Term: Schema.Union<[Schema.TaggedStruct<"Apply", {
|
|
|
276
339
|
}>, Schema.TaggedStruct<"Case", {
|
|
277
340
|
arg: Schema.suspend<Term, Term, never>;
|
|
278
341
|
cases: Schema.Array$<Schema.suspend<Term, Term, never>>;
|
|
342
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
343
|
+
description: Schema.optional<typeof Schema.String>;
|
|
279
344
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
280
345
|
file: typeof Schema.String;
|
|
281
346
|
start: Schema.Struct<{
|
|
@@ -332,6 +397,8 @@ export declare const Term: Schema.Union<[Schema.TaggedStruct<"Apply", {
|
|
|
332
397
|
mlResult: Schema.Tuple2<Schema.Tuple<[Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>]>, Schema.Tuple<[Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>]>>;
|
|
333
398
|
}>]>;
|
|
334
399
|
name: Schema.optional<typeof Schema.String>;
|
|
400
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
401
|
+
description: Schema.optional<typeof Schema.String>;
|
|
335
402
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
336
403
|
file: typeof Schema.String;
|
|
337
404
|
start: Schema.Struct<{
|
|
@@ -346,6 +413,8 @@ export declare const Term: Schema.Union<[Schema.TaggedStruct<"Apply", {
|
|
|
346
413
|
}>, Schema.TaggedStruct<"Constr", {
|
|
347
414
|
tag: typeof Schema.Int;
|
|
348
415
|
args: Schema.Array$<Schema.suspend<Term, Term, never>>;
|
|
416
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
417
|
+
description: Schema.optional<typeof Schema.String>;
|
|
349
418
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
350
419
|
file: typeof Schema.String;
|
|
351
420
|
start: Schema.Struct<{
|
|
@@ -359,6 +428,9 @@ export declare const Term: Schema.Union<[Schema.TaggedStruct<"Apply", {
|
|
|
359
428
|
}>>;
|
|
360
429
|
}>, Schema.TaggedStruct<"Delay", {
|
|
361
430
|
arg: Schema.suspend<Term, Term, never>;
|
|
431
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
432
|
+
description: Schema.optional<typeof Schema.String>;
|
|
433
|
+
name: Schema.optional<typeof Schema.String>;
|
|
362
434
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
363
435
|
file: typeof Schema.String;
|
|
364
436
|
start: Schema.Struct<{
|
|
@@ -371,6 +443,8 @@ export declare const Term: Schema.Union<[Schema.TaggedStruct<"Apply", {
|
|
|
371
443
|
}>>;
|
|
372
444
|
}>>;
|
|
373
445
|
}>, Schema.TaggedStruct<"Error", {
|
|
446
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
447
|
+
description: Schema.optional<typeof Schema.String>;
|
|
374
448
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
375
449
|
file: typeof Schema.String;
|
|
376
450
|
start: Schema.Struct<{
|
|
@@ -384,6 +458,8 @@ export declare const Term: Schema.Union<[Schema.TaggedStruct<"Apply", {
|
|
|
384
458
|
}>>;
|
|
385
459
|
}>, Schema.TaggedStruct<"Force", {
|
|
386
460
|
arg: Schema.suspend<Term, Term, never>;
|
|
461
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
462
|
+
description: Schema.optional<typeof Schema.String>;
|
|
387
463
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
388
464
|
file: typeof Schema.String;
|
|
389
465
|
start: Schema.Struct<{
|
|
@@ -398,6 +474,8 @@ export declare const Term: Schema.Union<[Schema.TaggedStruct<"Apply", {
|
|
|
398
474
|
}>, Schema.TaggedStruct<"Lambda", {
|
|
399
475
|
body: Schema.suspend<Term, Term, never>;
|
|
400
476
|
argName: Schema.optional<typeof Schema.String>;
|
|
477
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
478
|
+
description: Schema.optional<typeof Schema.String>;
|
|
401
479
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
402
480
|
file: typeof Schema.String;
|
|
403
481
|
start: Schema.Struct<{
|
|
@@ -413,6 +491,8 @@ export declare const Term: Schema.Union<[Schema.TaggedStruct<"Apply", {
|
|
|
413
491
|
}>, Schema.TaggedStruct<"Var", {
|
|
414
492
|
index: typeof Schema.Int;
|
|
415
493
|
name: Schema.optional<typeof Schema.String>;
|
|
494
|
+
capture: Schema.optional<typeof Schema.String>;
|
|
495
|
+
description: Schema.optional<typeof Schema.String>;
|
|
416
496
|
sourceSpan: Schema.optional<Schema.Struct<{
|
|
417
497
|
file: typeof Schema.String;
|
|
418
498
|
start: Schema.Struct<{
|
|
@@ -433,8 +513,33 @@ export type Term = Apply | Builtin$ | Case | Const | Constr | Delay | Error$ | F
|
|
|
433
513
|
*/
|
|
434
514
|
export declare function flatSize(term: Term): number;
|
|
435
515
|
export declare function flatTag(term: Term): number;
|
|
516
|
+
/**
|
|
517
|
+
* Verbose encoding format:
|
|
518
|
+
*
|
|
519
|
+
* {
|
|
520
|
+
* 0: CBORBytes(root flat bytes (i.e. what would be returned if verbose == false)),
|
|
521
|
+
* 1: {
|
|
522
|
+
* 0: CBORList<String> (source names list),
|
|
523
|
+
* 1: CBORList<Int> (flattened source mapping tuples [termIndex, sourceIndex, startLine, startColumn, endLine, endColumn], endLine==-1 and endColumn==-1 means absence of end of sourceSpan, sourceIndex is the index in the source names list),
|
|
524
|
+
* 2: CBORMap<Int, String> (lambda arg names, key is term index)
|
|
525
|
+
* 3: CBORMap<Int, String> (term names, key is term index)
|
|
526
|
+
* 4: CBORMap<Int, String> (term descriptions, key is termIndex)
|
|
527
|
+
* 5: CBORMap<Int, String> (capture names/ids, key is termIndex)
|
|
528
|
+
* }
|
|
529
|
+
* }
|
|
530
|
+
*/
|
|
436
531
|
export declare const decodeRoot: (bytes: Bytes.BytesLike) => Either.Either<Term, Error>;
|
|
437
|
-
|
|
532
|
+
/**
|
|
533
|
+
* @param uplcVersion
|
|
534
|
+
* @param term
|
|
535
|
+
* @param verbose
|
|
536
|
+
* Optional, defaults to false.
|
|
537
|
+
* Note that if verbose==true but metadata is empty, the plain flat encoded program without metadata is still returned
|
|
538
|
+
*
|
|
539
|
+
* @returns
|
|
540
|
+
* The encoded program
|
|
541
|
+
*/
|
|
542
|
+
export declare const encodeRoot: (uplcVersion: "1.0.0" | "1.1.0", term: Term, verbose?: boolean) => Uint8Array;
|
|
438
543
|
/**
|
|
439
544
|
* Reads a single Term using stack-based algorithm for its children
|
|
440
545
|
* @param param0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Term.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Uplc/Term.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"Term.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Uplc/Term.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAE9C,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAA;AAG5C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC,eAAO,MAAM,UAAU;;;;;;;;;;EAYrB,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAA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837690552500527637822603658699938581184513n;
|
|
3
|
+
export declare const ProverInput: Schema.Struct<{
|
|
4
|
+
name: typeof Schema.String;
|
|
5
|
+
type: typeof Schema.String;
|
|
6
|
+
}>;
|
|
7
|
+
export type ProverInput = Schema.Schema.Type<typeof ProverInput>;
|
|
8
|
+
export declare const WitnessInput: Schema.extend<Schema.Struct<{
|
|
9
|
+
name: typeof Schema.String;
|
|
10
|
+
type: typeof Schema.String;
|
|
11
|
+
}>, Schema.Struct<{
|
|
12
|
+
captureId: typeof Schema.String;
|
|
13
|
+
}>>;
|
|
14
|
+
export type WitnessInput = Schema.Schema.Type<typeof WitnessInput>;
|
|
15
|
+
export declare const VerificationKey: Schema.Struct<{
|
|
16
|
+
alphaG1: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
|
|
17
|
+
betaG2: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
|
|
18
|
+
gammaG2: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
|
|
19
|
+
deltaG2: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
|
|
20
|
+
publicInputsG1: Schema.Array$<Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>>;
|
|
21
|
+
}>;
|
|
22
|
+
export type VerificationKey = Schema.Schema.Type<typeof VerificationKey>;
|
|
23
|
+
export type InputValue = bigint | boolean | Uint8Array | readonly InputValue[];
|
|
24
|
+
export type InputValueList = {
|
|
25
|
+
readonly items: readonly InputValue[];
|
|
26
|
+
};
|
|
27
|
+
type EncodedInputValue = string | boolean | readonly EncodedInputValue[];
|
|
28
|
+
export declare const InputValue: Schema.Schema<InputValue, EncodedInputValue>;
|
|
29
|
+
/**
|
|
30
|
+
* Describes the public/private inputs required by a prover.
|
|
31
|
+
*
|
|
32
|
+
* This is the part of a prover that callers need in order to construct
|
|
33
|
+
* witnesses, but it does not include constraints, keys, or evaluator metadata.
|
|
34
|
+
*
|
|
35
|
+
* Compiler-v2 emits the circuit so that the proof-engine private input vector is
|
|
36
|
+
* `privateInputs` first, followed by captured `witnessInputs`. Public inputs
|
|
37
|
+
* are prepared independently from `publicInputs`.
|
|
38
|
+
*/
|
|
39
|
+
export declare const ProverInputs: Schema.Struct<{
|
|
40
|
+
privateInputs: Schema.Array$<Schema.Struct<{
|
|
41
|
+
name: typeof Schema.String;
|
|
42
|
+
type: typeof Schema.String;
|
|
43
|
+
}>>;
|
|
44
|
+
witnessInputs: Schema.Array$<Schema.extend<Schema.Struct<{
|
|
45
|
+
name: typeof Schema.String;
|
|
46
|
+
type: typeof Schema.String;
|
|
47
|
+
}>, Schema.Struct<{
|
|
48
|
+
captureId: typeof Schema.String;
|
|
49
|
+
}>>>;
|
|
50
|
+
publicInputs: Schema.Array$<Schema.Struct<{
|
|
51
|
+
name: typeof Schema.String;
|
|
52
|
+
type: typeof Schema.String;
|
|
53
|
+
}>>;
|
|
54
|
+
}>;
|
|
55
|
+
export type ProverInputs = Schema.Schema.Type<typeof ProverInputs>;
|
|
56
|
+
/**
|
|
57
|
+
* Minimal compiler artifact consumed by a proof engine.
|
|
58
|
+
*
|
|
59
|
+
* This intentionally excludes input metadata and evaluator bytes. Those fields
|
|
60
|
+
* are only needed by this module to prepare positional inputs before calling the
|
|
61
|
+
* proof engine.
|
|
62
|
+
*/
|
|
63
|
+
export declare const Prover: Schema.Struct<{
|
|
64
|
+
name: Schema.optional<typeof Schema.String>;
|
|
65
|
+
constraints: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
|
|
66
|
+
}>;
|
|
67
|
+
export type Prover = Schema.Schema.Type<typeof Prover>;
|
|
68
|
+
/**
|
|
69
|
+
* Compiler artifact with metadata needed to prepare proof inputs.
|
|
70
|
+
*
|
|
71
|
+
* Field roles:
|
|
72
|
+
* - inputs: public, private, and proof-engine witness input interface emitted by
|
|
73
|
+
* the compiler.
|
|
74
|
+
* - evaluator: verbose latest-version UPLC script bytes used to fill captured
|
|
75
|
+
* witness inputs before proving.
|
|
76
|
+
*/
|
|
77
|
+
export declare const ProverWithMetadata: Schema.extend<Schema.Struct<{
|
|
78
|
+
name: Schema.optional<typeof Schema.String>;
|
|
79
|
+
constraints: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
|
|
80
|
+
}>, Schema.Struct<{
|
|
81
|
+
evaluator: Schema.optional<Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>>;
|
|
82
|
+
inputs: Schema.Struct<{
|
|
83
|
+
privateInputs: Schema.Array$<Schema.Struct<{
|
|
84
|
+
name: typeof Schema.String;
|
|
85
|
+
type: typeof Schema.String;
|
|
86
|
+
}>>;
|
|
87
|
+
witnessInputs: Schema.Array$<Schema.extend<Schema.Struct<{
|
|
88
|
+
name: typeof Schema.String;
|
|
89
|
+
type: typeof Schema.String;
|
|
90
|
+
}>, Schema.Struct<{
|
|
91
|
+
captureId: typeof Schema.String;
|
|
92
|
+
}>>>;
|
|
93
|
+
publicInputs: Schema.Array$<Schema.Struct<{
|
|
94
|
+
name: typeof Schema.String;
|
|
95
|
+
type: typeof Schema.String;
|
|
96
|
+
}>>;
|
|
97
|
+
}>;
|
|
98
|
+
}>>;
|
|
99
|
+
export type ProverWithMetadata = Schema.Schema.Type<typeof ProverWithMetadata>;
|
|
100
|
+
/**
|
|
101
|
+
* Minimal proof-engine artifact with derived key material.
|
|
102
|
+
*
|
|
103
|
+
* `provingKey` is used to create proofs for this circuit, while
|
|
104
|
+
* `verificationKey` is public material used to verify those proofs.
|
|
105
|
+
*/
|
|
106
|
+
export declare const ProverWithDerivedKeys: Schema.extend<Schema.Struct<{
|
|
107
|
+
name: Schema.optional<typeof Schema.String>;
|
|
108
|
+
constraints: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
|
|
109
|
+
}>, Schema.Struct<{
|
|
110
|
+
provingKey: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
|
|
111
|
+
verificationKey: Schema.Struct<{
|
|
112
|
+
alphaG1: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
|
|
113
|
+
betaG2: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
|
|
114
|
+
gammaG2: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
|
|
115
|
+
deltaG2: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
|
|
116
|
+
publicInputsG1: Schema.Array$<Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>>;
|
|
117
|
+
}>;
|
|
118
|
+
}>>;
|
|
119
|
+
export type ProverWithDerivedKeys = Schema.Schema.Type<typeof ProverWithDerivedKeys>;
|
|
120
|
+
type DerivedKeys = Pick<ProverWithDerivedKeys, "provingKey" | "verificationKey">;
|
|
121
|
+
declare const MissingWitnessInput_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
122
|
+
readonly _tag: "Cardano.ZK.MissingWitnessInput";
|
|
123
|
+
} & Readonly<A>;
|
|
124
|
+
export declare class MissingWitnessInput extends MissingWitnessInput_base<{
|
|
125
|
+
readonly message: string;
|
|
126
|
+
readonly kind: "public" | "private" | "witness";
|
|
127
|
+
readonly name: string;
|
|
128
|
+
}> {
|
|
129
|
+
constructor(kind: "public" | "private" | "witness", name: string);
|
|
130
|
+
}
|
|
131
|
+
declare const MissingEvaluator_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
132
|
+
readonly _tag: "Cardano.ZK.MissingEvaluator";
|
|
133
|
+
} & Readonly<A>;
|
|
134
|
+
export declare class MissingEvaluator extends MissingEvaluator_base<{
|
|
135
|
+
readonly message: string;
|
|
136
|
+
}> {
|
|
137
|
+
constructor();
|
|
138
|
+
}
|
|
139
|
+
declare const EvaluatorFailed_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
140
|
+
readonly _tag: "Cardano.ZK.EvaluatorFailed";
|
|
141
|
+
} & Readonly<A>;
|
|
142
|
+
export declare class EvaluatorFailed extends EvaluatorFailed_base<{
|
|
143
|
+
readonly message: string;
|
|
144
|
+
}> {
|
|
145
|
+
constructor(message: string);
|
|
146
|
+
}
|
|
147
|
+
declare const MissingCapture_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
148
|
+
readonly _tag: "Cardano.ZK.MissingCapture";
|
|
149
|
+
} & Readonly<A>;
|
|
150
|
+
export declare class MissingCapture extends MissingCapture_base<{
|
|
151
|
+
readonly message: string;
|
|
152
|
+
readonly captureId: string;
|
|
153
|
+
}> {
|
|
154
|
+
constructor(captureId: string);
|
|
155
|
+
}
|
|
156
|
+
declare const InvalidCapturedValue_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
157
|
+
readonly _tag: "Cardano.ZK.InvalidCapturedValue";
|
|
158
|
+
} & Readonly<A>;
|
|
159
|
+
export declare class InvalidCapturedValue extends InvalidCapturedValue_base<{
|
|
160
|
+
readonly message: string;
|
|
161
|
+
readonly captureId: string;
|
|
162
|
+
}> {
|
|
163
|
+
constructor(captureId: string);
|
|
164
|
+
}
|
|
165
|
+
declare const InvalidInputValue_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
166
|
+
readonly _tag: "Cardano.ZK.InvalidInputValue";
|
|
167
|
+
} & Readonly<A>;
|
|
168
|
+
export declare class InvalidInputValue extends InvalidInputValue_base<{
|
|
169
|
+
readonly message: string;
|
|
170
|
+
readonly kind: "public" | "private" | "witness";
|
|
171
|
+
readonly name: string;
|
|
172
|
+
}> {
|
|
173
|
+
constructor(kind: "public" | "private" | "witness", name: string);
|
|
174
|
+
}
|
|
175
|
+
export type ZKError = MissingWitnessInput | MissingEvaluator | EvaluatorFailed | MissingCapture | InvalidCapturedValue | InvalidInputValue;
|
|
176
|
+
export type ProofEngineService = {
|
|
177
|
+
readonly setup: (prover: Prover) => Effect.Effect<DerivedKeys, ZKError>;
|
|
178
|
+
readonly prove: (prover: ProverWithDerivedKeys, publicInputs: readonly InputValue[], privateInputs: readonly InputValue[]) => Effect.Effect<Uint8Array, ZKError>;
|
|
179
|
+
readonly verify: (prover: ProverWithDerivedKeys, publicInputs: readonly InputValue[], proof: Uint8Array) => Effect.Effect<boolean, ZKError>;
|
|
180
|
+
};
|
|
181
|
+
declare const ProofEngine_base: Context.TagClass<ProofEngine, "Cardano.ZK.ProofEngine", ProofEngineService>;
|
|
182
|
+
export declare class ProofEngine extends ProofEngine_base {
|
|
183
|
+
}
|
|
184
|
+
export declare const setup: (prover: ProverWithMetadata) => Effect.Effect<ProverWithMetadata & ProverWithDerivedKeys, ZKError, ProofEngine>;
|
|
185
|
+
export declare const prove: (prover: ProverWithMetadata & ProverWithDerivedKeys, publicInputs: Record<string, InputValue>, privateInputs: Record<string, InputValue>) => Effect.Effect<Uint8Array, ZKError, ProofEngine>;
|
|
186
|
+
export declare const verify: (prover: ProverWithMetadata & ProverWithDerivedKeys, publicInputs: Record<string, InputValue>, proof: Uint8Array) => Effect.Effect<boolean, ZKError, ProofEngine>;
|
|
187
|
+
export {};
|
|
188
|
+
//# sourceMappingURL=ZK.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZK.d.ts","sourceRoot":"","sources":["../../src/Cardano/ZK.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAQ,MAAM,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAA;AAG9D,eAAO,MAAM,YAAY,iFACu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AAM,MAAM,GACjB,QAAQ,kBAAkB,GAAG,qBAAqB,EAClD,cAAc,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EACxC,OAAO,UAAU,KAChB,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,CAgB1C,CAAA"}
|
package/types/Cardano/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Cardano/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAC7C,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Cardano/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAC7C,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAA"}
|