@aztec/stdlib 0.86.0-nightly.20250505 → 0.86.0-nightly.20250507
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/dest/abi/abi.d.ts +288 -236
- package/dest/abi/abi.d.ts.map +1 -1
- package/dest/abi/abi.js +14 -14
- package/dest/interfaces/pxe.d.ts +4 -3
- package/dest/interfaces/pxe.d.ts.map +1 -1
- package/dest/interfaces/pxe.js +2 -2
- package/dest/kernel/private_kernel_prover_output.d.ts +26 -0
- package/dest/kernel/private_kernel_prover_output.d.ts.map +1 -1
- package/dest/kernel/private_kernel_prover_output.js +5 -1
- package/dest/tx/private_execution_result.d.ts +10 -1
- package/dest/tx/private_execution_result.d.ts.map +1 -1
- package/dest/tx/private_execution_result.js +9 -1
- package/dest/tx/profiled_tx.d.ts +3 -1
- package/dest/tx/profiled_tx.d.ts.map +1 -1
- package/dest/tx/profiled_tx.js +15 -5
- package/package.json +7 -7
- package/src/abi/abi.ts +27 -10
- package/src/interfaces/pxe.ts +9 -3
- package/src/kernel/private_kernel_prover_output.ts +10 -0
- package/src/tx/private_execution_result.ts +5 -0
- package/src/tx/profiled_tx.ts +22 -10
package/dest/abi/abi.d.ts
CHANGED
|
@@ -250,86 +250,108 @@ export interface FunctionDebugMetadata {
|
|
|
250
250
|
}
|
|
251
251
|
export declare const FunctionDebugMetadataSchema: z.ZodObject<{
|
|
252
252
|
debugSymbols: z.ZodObject<{
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
end: z.ZodNumber;
|
|
253
|
+
location_tree: z.ZodObject<{
|
|
254
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
255
|
+
parent: z.ZodNullable<z.ZodNumber>;
|
|
256
|
+
value: z.ZodObject<{
|
|
257
|
+
span: z.ZodObject<{
|
|
258
|
+
start: z.ZodNumber;
|
|
259
|
+
end: z.ZodNumber;
|
|
260
|
+
}, "strip", z.ZodTypeAny, {
|
|
261
|
+
start: number;
|
|
262
|
+
end: number;
|
|
263
|
+
}, {
|
|
264
|
+
start: number;
|
|
265
|
+
end: number;
|
|
266
|
+
}>;
|
|
267
|
+
file: z.ZodNumber;
|
|
268
|
+
}, "strip", z.ZodTypeAny, {
|
|
269
|
+
span: {
|
|
270
|
+
start: number;
|
|
271
|
+
end: number;
|
|
272
|
+
};
|
|
273
|
+
file: number;
|
|
274
|
+
}, {
|
|
275
|
+
span: {
|
|
276
|
+
start: number;
|
|
277
|
+
end: number;
|
|
278
|
+
};
|
|
279
|
+
file: number;
|
|
280
|
+
}>;
|
|
282
281
|
}, "strip", z.ZodTypeAny, {
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
value: {
|
|
283
|
+
span: {
|
|
284
|
+
start: number;
|
|
285
|
+
end: number;
|
|
286
|
+
};
|
|
287
|
+
file: number;
|
|
288
|
+
};
|
|
289
|
+
parent: number | null;
|
|
285
290
|
}, {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
291
|
+
value: {
|
|
292
|
+
span: {
|
|
293
|
+
start: number;
|
|
294
|
+
end: number;
|
|
295
|
+
};
|
|
296
|
+
file: number;
|
|
297
|
+
};
|
|
298
|
+
parent: number | null;
|
|
299
|
+
}>, "many">;
|
|
290
300
|
}, "strip", z.ZodTypeAny, {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
301
|
+
locations: {
|
|
302
|
+
value: {
|
|
303
|
+
span: {
|
|
304
|
+
start: number;
|
|
305
|
+
end: number;
|
|
306
|
+
};
|
|
307
|
+
file: number;
|
|
308
|
+
};
|
|
309
|
+
parent: number | null;
|
|
310
|
+
}[];
|
|
296
311
|
}, {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
312
|
+
locations: {
|
|
313
|
+
value: {
|
|
314
|
+
span: {
|
|
315
|
+
start: number;
|
|
316
|
+
end: number;
|
|
317
|
+
};
|
|
318
|
+
file: number;
|
|
319
|
+
};
|
|
320
|
+
parent: number | null;
|
|
321
|
+
}[];
|
|
322
|
+
}>;
|
|
323
|
+
acir_locations: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
324
|
+
brillig_locations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
303
325
|
}, "strip", z.ZodTypeAny, {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
326
|
+
location_tree: {
|
|
327
|
+
locations: {
|
|
328
|
+
value: {
|
|
329
|
+
span: {
|
|
330
|
+
start: number;
|
|
331
|
+
end: number;
|
|
332
|
+
};
|
|
333
|
+
file: number;
|
|
334
|
+
};
|
|
335
|
+
parent: number | null;
|
|
336
|
+
}[];
|
|
337
|
+
};
|
|
338
|
+
acir_locations: Record<string, number>;
|
|
339
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
318
340
|
}, {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
341
|
+
location_tree: {
|
|
342
|
+
locations: {
|
|
343
|
+
value: {
|
|
344
|
+
span: {
|
|
345
|
+
start: number;
|
|
346
|
+
end: number;
|
|
347
|
+
};
|
|
348
|
+
file: number;
|
|
349
|
+
};
|
|
350
|
+
parent: number | null;
|
|
351
|
+
}[];
|
|
352
|
+
};
|
|
353
|
+
acir_locations: Record<string, number>;
|
|
354
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
333
355
|
}>;
|
|
334
356
|
files: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
335
357
|
source: z.ZodString;
|
|
@@ -343,20 +365,20 @@ export declare const FunctionDebugMetadataSchema: z.ZodObject<{
|
|
|
343
365
|
}>>;
|
|
344
366
|
}, "strip", z.ZodTypeAny, {
|
|
345
367
|
debugSymbols: {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
368
|
+
location_tree: {
|
|
369
|
+
locations: {
|
|
370
|
+
value: {
|
|
371
|
+
span: {
|
|
372
|
+
start: number;
|
|
373
|
+
end: number;
|
|
374
|
+
};
|
|
375
|
+
file: number;
|
|
376
|
+
};
|
|
377
|
+
parent: number | null;
|
|
378
|
+
}[];
|
|
379
|
+
};
|
|
380
|
+
acir_locations: Record<string, number>;
|
|
381
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
360
382
|
};
|
|
361
383
|
files: Record<string, {
|
|
362
384
|
path: string;
|
|
@@ -364,20 +386,20 @@ export declare const FunctionDebugMetadataSchema: z.ZodObject<{
|
|
|
364
386
|
}>;
|
|
365
387
|
}, {
|
|
366
388
|
debugSymbols: {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
389
|
+
location_tree: {
|
|
390
|
+
locations: {
|
|
391
|
+
value: {
|
|
392
|
+
span: {
|
|
393
|
+
start: number;
|
|
394
|
+
end: number;
|
|
395
|
+
};
|
|
396
|
+
file: number;
|
|
397
|
+
};
|
|
398
|
+
parent: number | null;
|
|
399
|
+
}[];
|
|
400
|
+
};
|
|
401
|
+
acir_locations: Record<string, number>;
|
|
402
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
381
403
|
};
|
|
382
404
|
files: Record<string, {
|
|
383
405
|
path: string;
|
|
@@ -509,86 +531,108 @@ export declare const FunctionArtifactSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
509
531
|
debugSymbols: z.ZodString;
|
|
510
532
|
debug: z.ZodOptional<z.ZodObject<{
|
|
511
533
|
debugSymbols: z.ZodObject<{
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
end: z.ZodNumber;
|
|
534
|
+
location_tree: z.ZodObject<{
|
|
535
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
536
|
+
parent: z.ZodNullable<z.ZodNumber>;
|
|
537
|
+
value: z.ZodObject<{
|
|
538
|
+
span: z.ZodObject<{
|
|
539
|
+
start: z.ZodNumber;
|
|
540
|
+
end: z.ZodNumber;
|
|
541
|
+
}, "strip", z.ZodTypeAny, {
|
|
542
|
+
start: number;
|
|
543
|
+
end: number;
|
|
544
|
+
}, {
|
|
545
|
+
start: number;
|
|
546
|
+
end: number;
|
|
547
|
+
}>;
|
|
548
|
+
file: z.ZodNumber;
|
|
549
|
+
}, "strip", z.ZodTypeAny, {
|
|
550
|
+
span: {
|
|
551
|
+
start: number;
|
|
552
|
+
end: number;
|
|
553
|
+
};
|
|
554
|
+
file: number;
|
|
555
|
+
}, {
|
|
556
|
+
span: {
|
|
557
|
+
start: number;
|
|
558
|
+
end: number;
|
|
559
|
+
};
|
|
560
|
+
file: number;
|
|
561
|
+
}>;
|
|
541
562
|
}, "strip", z.ZodTypeAny, {
|
|
542
|
-
|
|
543
|
-
|
|
563
|
+
value: {
|
|
564
|
+
span: {
|
|
565
|
+
start: number;
|
|
566
|
+
end: number;
|
|
567
|
+
};
|
|
568
|
+
file: number;
|
|
569
|
+
};
|
|
570
|
+
parent: number | null;
|
|
544
571
|
}, {
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
572
|
+
value: {
|
|
573
|
+
span: {
|
|
574
|
+
start: number;
|
|
575
|
+
end: number;
|
|
576
|
+
};
|
|
577
|
+
file: number;
|
|
578
|
+
};
|
|
579
|
+
parent: number | null;
|
|
580
|
+
}>, "many">;
|
|
549
581
|
}, "strip", z.ZodTypeAny, {
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
582
|
+
locations: {
|
|
583
|
+
value: {
|
|
584
|
+
span: {
|
|
585
|
+
start: number;
|
|
586
|
+
end: number;
|
|
587
|
+
};
|
|
588
|
+
file: number;
|
|
589
|
+
};
|
|
590
|
+
parent: number | null;
|
|
591
|
+
}[];
|
|
555
592
|
}, {
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
593
|
+
locations: {
|
|
594
|
+
value: {
|
|
595
|
+
span: {
|
|
596
|
+
start: number;
|
|
597
|
+
end: number;
|
|
598
|
+
};
|
|
599
|
+
file: number;
|
|
600
|
+
};
|
|
601
|
+
parent: number | null;
|
|
602
|
+
}[];
|
|
603
|
+
}>;
|
|
604
|
+
acir_locations: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
605
|
+
brillig_locations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
562
606
|
}, "strip", z.ZodTypeAny, {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
607
|
+
location_tree: {
|
|
608
|
+
locations: {
|
|
609
|
+
value: {
|
|
610
|
+
span: {
|
|
611
|
+
start: number;
|
|
612
|
+
end: number;
|
|
613
|
+
};
|
|
614
|
+
file: number;
|
|
615
|
+
};
|
|
616
|
+
parent: number | null;
|
|
617
|
+
}[];
|
|
618
|
+
};
|
|
619
|
+
acir_locations: Record<string, number>;
|
|
620
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
577
621
|
}, {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
622
|
+
location_tree: {
|
|
623
|
+
locations: {
|
|
624
|
+
value: {
|
|
625
|
+
span: {
|
|
626
|
+
start: number;
|
|
627
|
+
end: number;
|
|
628
|
+
};
|
|
629
|
+
file: number;
|
|
630
|
+
};
|
|
631
|
+
parent: number | null;
|
|
632
|
+
}[];
|
|
633
|
+
};
|
|
634
|
+
acir_locations: Record<string, number>;
|
|
635
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
592
636
|
}>;
|
|
593
637
|
files: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
594
638
|
source: z.ZodString;
|
|
@@ -602,20 +646,20 @@ export declare const FunctionArtifactSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
602
646
|
}>>;
|
|
603
647
|
}, "strip", z.ZodTypeAny, {
|
|
604
648
|
debugSymbols: {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
649
|
+
location_tree: {
|
|
650
|
+
locations: {
|
|
651
|
+
value: {
|
|
652
|
+
span: {
|
|
653
|
+
start: number;
|
|
654
|
+
end: number;
|
|
655
|
+
};
|
|
656
|
+
file: number;
|
|
657
|
+
};
|
|
658
|
+
parent: number | null;
|
|
659
|
+
}[];
|
|
660
|
+
};
|
|
661
|
+
acir_locations: Record<string, number>;
|
|
662
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
619
663
|
};
|
|
620
664
|
files: Record<string, {
|
|
621
665
|
path: string;
|
|
@@ -623,20 +667,20 @@ export declare const FunctionArtifactSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
623
667
|
}>;
|
|
624
668
|
}, {
|
|
625
669
|
debugSymbols: {
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
670
|
+
location_tree: {
|
|
671
|
+
locations: {
|
|
672
|
+
value: {
|
|
673
|
+
span: {
|
|
674
|
+
start: number;
|
|
675
|
+
end: number;
|
|
676
|
+
};
|
|
677
|
+
file: number;
|
|
678
|
+
};
|
|
679
|
+
parent: number | null;
|
|
680
|
+
}[];
|
|
681
|
+
};
|
|
682
|
+
acir_locations: Record<string, number>;
|
|
683
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
640
684
|
};
|
|
641
685
|
files: Record<string, {
|
|
642
686
|
path: string;
|
|
@@ -648,20 +692,20 @@ export declare const FunctionArtifactSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
648
692
|
bytecode: Buffer;
|
|
649
693
|
debug?: {
|
|
650
694
|
debugSymbols: {
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
695
|
+
location_tree: {
|
|
696
|
+
locations: {
|
|
697
|
+
value: {
|
|
698
|
+
span: {
|
|
699
|
+
start: number;
|
|
700
|
+
end: number;
|
|
701
|
+
};
|
|
702
|
+
file: number;
|
|
703
|
+
};
|
|
704
|
+
parent: number | null;
|
|
705
|
+
}[];
|
|
706
|
+
};
|
|
707
|
+
acir_locations: Record<string, number>;
|
|
708
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
665
709
|
};
|
|
666
710
|
files: Record<string, {
|
|
667
711
|
path: string;
|
|
@@ -677,20 +721,20 @@ export declare const FunctionArtifactSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
677
721
|
};
|
|
678
722
|
debug?: {
|
|
679
723
|
debugSymbols: {
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
724
|
+
location_tree: {
|
|
725
|
+
locations: {
|
|
726
|
+
value: {
|
|
727
|
+
span: {
|
|
728
|
+
start: number;
|
|
729
|
+
end: number;
|
|
730
|
+
};
|
|
731
|
+
file: number;
|
|
732
|
+
};
|
|
733
|
+
parent: number | null;
|
|
734
|
+
}[];
|
|
735
|
+
};
|
|
736
|
+
acir_locations: Record<string, number>;
|
|
737
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
694
738
|
};
|
|
695
739
|
files: Record<string, {
|
|
696
740
|
path: string;
|
|
@@ -700,9 +744,9 @@ export declare const FunctionArtifactSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
700
744
|
verificationKey?: string | undefined;
|
|
701
745
|
}>>;
|
|
702
746
|
/** A file ID. It's assigned during compilation. */
|
|
703
|
-
|
|
747
|
+
type FileId = number;
|
|
704
748
|
/** A pointer to a specific section of the source code. */
|
|
705
|
-
|
|
749
|
+
interface SourceCodeLocation {
|
|
706
750
|
/** The section of the source code. */
|
|
707
751
|
span: {
|
|
708
752
|
/** The byte where the section starts. */
|
|
@@ -719,11 +763,19 @@ export interface SourceCodeLocation {
|
|
|
719
763
|
*/
|
|
720
764
|
export type OpcodeLocation = string;
|
|
721
765
|
export type BrilligFunctionId = number;
|
|
722
|
-
export type OpcodeToLocationsMap = Record<OpcodeLocation,
|
|
766
|
+
export type OpcodeToLocationsMap = Record<OpcodeLocation, number>;
|
|
767
|
+
export type LocationNodeDebugInfo = {
|
|
768
|
+
parent: number | null;
|
|
769
|
+
value: SourceCodeLocation;
|
|
770
|
+
};
|
|
771
|
+
export type LocationTree = {
|
|
772
|
+
locations: LocationNodeDebugInfo[];
|
|
773
|
+
};
|
|
723
774
|
/** The debug information for a given function. */
|
|
724
775
|
export interface DebugInfo {
|
|
725
776
|
/** A map of the opcode location to the source code location. */
|
|
726
|
-
|
|
777
|
+
location_tree: LocationTree;
|
|
778
|
+
acir_locations: OpcodeToLocationsMap;
|
|
727
779
|
/** For each Brillig function, we have a map of the opcode location to the source code location. */
|
|
728
780
|
brillig_locations: Record<BrilligFunctionId, OpcodeToLocationsMap>;
|
|
729
781
|
}
|
package/dest/abi/abi.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abi.d.ts","sourceRoot":"","sources":["../../src/abi/abi.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,2BAA2B,CAAC;AA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 -118,20 +118,20 @@ export const FunctionAbiSchema = z.object({
|
|
|
118
118
|
});
|
|
119
119
|
export const FunctionDebugMetadataSchema = z.object({
|
|
120
120
|
debugSymbols: z.object({
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
121
|
+
location_tree: z.object({
|
|
122
|
+
locations: z.array(z.object({
|
|
123
|
+
parent: z.number().nullable(),
|
|
124
|
+
value: z.object({
|
|
125
|
+
span: z.object({
|
|
126
|
+
start: z.number(),
|
|
127
|
+
end: z.number()
|
|
128
|
+
}),
|
|
129
|
+
file: z.number()
|
|
130
|
+
})
|
|
131
|
+
}))
|
|
132
|
+
}),
|
|
133
|
+
acir_locations: z.record(z.number()),
|
|
134
|
+
brillig_locations: z.record(z.record(z.number()))
|
|
135
135
|
}),
|
|
136
136
|
files: z.record(z.object({
|
|
137
137
|
source: z.string(),
|
package/dest/interfaces/pxe.d.ts
CHANGED
|
@@ -101,12 +101,13 @@ export interface PXE {
|
|
|
101
101
|
* (where validators prove the public portion).
|
|
102
102
|
*
|
|
103
103
|
* @param txRequest - An authenticated tx request ready for proving
|
|
104
|
-
* @param privateExecutionResult - The result of the private execution of the transaction
|
|
104
|
+
* @param privateExecutionResult - (optional) The result of the private execution of the transaction. The txRequest
|
|
105
|
+
* will be executed if not provided
|
|
105
106
|
* @returns A result containing the proof and public inputs of the tail circuit.
|
|
106
107
|
* @throws If contract code not found, or public simulation reverts.
|
|
107
108
|
* Also throws if simulatePublic is true and public simulation reverts.
|
|
108
109
|
*/
|
|
109
|
-
proveTx(txRequest: TxExecutionRequest, privateExecutionResult
|
|
110
|
+
proveTx(txRequest: TxExecutionRequest, privateExecutionResult?: PrivateExecutionResult): Promise<TxProvingResult>;
|
|
110
111
|
/**
|
|
111
112
|
* Simulates a transaction based on the provided preauthenticated execution request.
|
|
112
113
|
* This will run a local simulation of private execution (and optionally of public as well), run the
|
|
@@ -138,7 +139,7 @@ export interface PXE {
|
|
|
138
139
|
* @returns A trace of the program execution with gate counts.
|
|
139
140
|
* @throws If the code for the functions executed in this transaction have not been made available via `addContracts`.
|
|
140
141
|
*/
|
|
141
|
-
profileTx(txRequest: TxExecutionRequest, profileMode: 'gates' | 'execution-steps' | 'full', msgSender?: AztecAddress): Promise<TxProfileResult>;
|
|
142
|
+
profileTx(txRequest: TxExecutionRequest, profileMode: 'gates' | 'execution-steps' | 'full', skipProofGeneration?: boolean, msgSender?: AztecAddress): Promise<TxProfileResult>;
|
|
142
143
|
/**
|
|
143
144
|
* Sends a transaction to an Aztec node to be broadcasted to the network and mined.
|
|
144
145
|
* @param tx - The transaction as created via `proveTx`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pxe.d.ts","sourceRoot":"","sources":["../../src/interfaces/pxe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAU,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD,OAAO,EAAE,KAAK,OAAO,EAAiB,KAAK,gBAAgB,EAA0B,MAAM,eAAe,CAAC;AAC3G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EACL,eAAe,EACf,KAAK,mBAAmB,EA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AO,CAAC;IAC/B,0BAA0B,EAAE,OAAO,CAAC;CACrC;AAED,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAChD,iCAAiC,EAAE,OAAO,CAAC;IAC3C,QAAQ,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACzC;AAmBD,eAAO,MAAM,SAAS,EAAE,YAAY,CAAC,GAAG,CAoFvC,CAAC"}
|
package/dest/interfaces/pxe.js
CHANGED
|
@@ -61,12 +61,12 @@ export const PXESchema = {
|
|
|
61
61
|
})).returns(z.void()),
|
|
62
62
|
updateContract: z.function().args(schemas.AztecAddress, ContractArtifactSchema).returns(z.void()),
|
|
63
63
|
getContracts: z.function().returns(z.array(schemas.AztecAddress)),
|
|
64
|
-
proveTx: z.function().args(TxExecutionRequest.schema, PrivateExecutionResult.schema).returns(TxProvingResult.schema),
|
|
64
|
+
proveTx: z.function().args(TxExecutionRequest.schema, optional(PrivateExecutionResult.schema)).returns(TxProvingResult.schema),
|
|
65
65
|
profileTx: z.function().args(TxExecutionRequest.schema, z.union([
|
|
66
66
|
z.literal('gates'),
|
|
67
67
|
z.literal('full'),
|
|
68
68
|
z.literal('execution-steps')
|
|
69
|
-
]), optional(schemas.AztecAddress)).returns(TxProfileResult.schema),
|
|
69
|
+
]), optional(z.boolean()), optional(schemas.AztecAddress)).returns(TxProfileResult.schema),
|
|
70
70
|
simulateTx: z.function().args(TxExecutionRequest.schema, z.boolean(), optional(schemas.AztecAddress), optional(z.boolean()), optional(z.boolean()), optional(z.array(schemas.AztecAddress))).returns(TxSimulationResult.schema),
|
|
71
71
|
sendTx: z.function().args(Tx.schema).returns(TxHash.schema),
|
|
72
72
|
getTxReceipt: z.function().args(TxHash.schema).returns(TxReceipt.schema),
|
|
@@ -11,16 +11,34 @@ export declare const PrivateExecutionStepSchema: z.ZodObject<{
|
|
|
11
11
|
bytecode: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>;
|
|
12
12
|
witness: import("@aztec/foundation/schemas").ZodFor<Map<number, string>>;
|
|
13
13
|
vk: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>;
|
|
14
|
+
timings: z.ZodObject<{
|
|
15
|
+
witgen: z.ZodNumber;
|
|
16
|
+
gateCount: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
witgen: number;
|
|
19
|
+
gateCount?: number | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
witgen: number;
|
|
22
|
+
gateCount?: number | undefined;
|
|
23
|
+
}>;
|
|
14
24
|
}, "strip", z.ZodTypeAny, {
|
|
15
25
|
bytecode: Buffer;
|
|
16
26
|
vk: Buffer;
|
|
17
27
|
functionName: string;
|
|
18
28
|
witness: Map<number, string>;
|
|
29
|
+
timings: {
|
|
30
|
+
witgen: number;
|
|
31
|
+
gateCount?: number | undefined;
|
|
32
|
+
};
|
|
19
33
|
gateCount?: number | undefined;
|
|
20
34
|
}, {
|
|
21
35
|
bytecode: string;
|
|
22
36
|
vk: string;
|
|
23
37
|
functionName: string;
|
|
38
|
+
timings: {
|
|
39
|
+
witgen: number;
|
|
40
|
+
gateCount?: number | undefined;
|
|
41
|
+
};
|
|
24
42
|
gateCount?: number | undefined;
|
|
25
43
|
witness?: any;
|
|
26
44
|
}>;
|
|
@@ -33,6 +51,10 @@ export interface PrivateExecutionStep {
|
|
|
33
51
|
bytecode: Buffer;
|
|
34
52
|
witness: WitnessMap;
|
|
35
53
|
vk: Buffer;
|
|
54
|
+
timings: {
|
|
55
|
+
witgen: number;
|
|
56
|
+
gateCount?: number;
|
|
57
|
+
};
|
|
36
58
|
}
|
|
37
59
|
/** Represents the output of proven PrivateKernelSimulateOutput.*/
|
|
38
60
|
export interface PrivateKernelExecutionProofOutput<PublicInputsType extends PrivateKernelCircuitPublicInputs | PrivateKernelTailCircuitPublicInputs> {
|
|
@@ -48,6 +70,10 @@ export interface PrivateKernelExecutionProofOutput<PublicInputsType extends Priv
|
|
|
48
70
|
* If simulate is ran with profiling mode, also includes gate counts.
|
|
49
71
|
*/
|
|
50
72
|
executionSteps: PrivateExecutionStep[];
|
|
73
|
+
/** Performance metrics */
|
|
74
|
+
timings?: {
|
|
75
|
+
proving: number;
|
|
76
|
+
};
|
|
51
77
|
}
|
|
52
78
|
export declare function serializePrivateExecutionSteps(steps: PrivateExecutionStep[]): Buffer;
|
|
53
79
|
//# sourceMappingURL=private_kernel_prover_output.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private_kernel_prover_output.d.ts","sourceRoot":"","sources":["../../src/kernel/private_kernel_prover_output.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAItD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAClG,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AAE3G,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"private_kernel_prover_output.d.ts","sourceRoot":"","sources":["../../src/kernel/private_kernel_prover_output.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAItD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAClG,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AAE3G,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUrC,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,UAAU,CAAC;IAEpB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED,kEAAkE;AAClE,MAAM,WAAW,iCAAiC,CAChD,gBAAgB,SAAS,gCAAgC,GAAG,oCAAoC;IAEhG,8DAA8D;IAC9D,YAAY,EAAE,gBAAgB,CAAC;IAC/B;kEAC8D;IAC9D,cAAc,EAAE,cAAc,CAAC;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,cAAc,EAAE,oBAAoB,EAAE,CAAC;IACvC,0BAA0B;IAC1B,OAAO,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAC/B;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,oBAAoB,EAAE,UAU3E"}
|
|
@@ -7,7 +7,11 @@ export const PrivateExecutionStepSchema = z.object({
|
|
|
7
7
|
gateCount: z.number().optional(),
|
|
8
8
|
bytecode: bufferSchema,
|
|
9
9
|
witness: mapSchema(z.number(), z.string()),
|
|
10
|
-
vk: bufferSchema
|
|
10
|
+
vk: bufferSchema,
|
|
11
|
+
timings: z.object({
|
|
12
|
+
witgen: z.number(),
|
|
13
|
+
gateCount: z.number().optional()
|
|
14
|
+
})
|
|
11
15
|
});
|
|
12
16
|
export function serializePrivateExecutionSteps(steps) {
|
|
13
17
|
const stepToStruct = (step)=>{
|
|
@@ -125,6 +125,7 @@ export declare class PrivateCallExecutionResult {
|
|
|
125
125
|
* Note: These are preimages to `contractClassLogsHashes`.
|
|
126
126
|
*/
|
|
127
127
|
contractClassLogs: CountedContractClassLog[];
|
|
128
|
+
profileResult?: PrivateExecutionProfileResult | undefined;
|
|
128
129
|
constructor(
|
|
129
130
|
/** The ACIR bytecode. */
|
|
130
131
|
acir: Buffer,
|
|
@@ -148,7 +149,7 @@ export declare class PrivateCallExecutionResult {
|
|
|
148
149
|
* Contract class logs emitted during execution of this function call.
|
|
149
150
|
* Note: These are preimages to `contractClassLogsHashes`.
|
|
150
151
|
*/
|
|
151
|
-
contractClassLogs: CountedContractClassLog[]);
|
|
152
|
+
contractClassLogs: CountedContractClassLog[], profileResult?: PrivateExecutionProfileResult | undefined);
|
|
152
153
|
static get schema(): ZodFor<PrivateCallExecutionResult>;
|
|
153
154
|
static from(fields: FieldsOf<PrivateCallExecutionResult>): PrivateCallExecutionResult;
|
|
154
155
|
static random(nested?: number): Promise<PrivateCallExecutionResult>;
|
|
@@ -163,4 +164,12 @@ export declare function collectNoteHashNullifierCounterMap(execResult: PrivateEx
|
|
|
163
164
|
export declare function collectSortedContractClassLogs(execResult: PrivateExecutionResult): ContractClassLog[];
|
|
164
165
|
export declare function getFinalMinRevertibleSideEffectCounter(execResult: PrivateExecutionResult): number;
|
|
165
166
|
export declare function collectNested<T>(executionStack: PrivateCallExecutionResult[], extractExecutionItems: (execution: PrivateCallExecutionResult) => T[]): T[];
|
|
167
|
+
export declare class PrivateExecutionProfileResult {
|
|
168
|
+
timings: {
|
|
169
|
+
witgen: number;
|
|
170
|
+
};
|
|
171
|
+
constructor(timings: {
|
|
172
|
+
witgen: number;
|
|
173
|
+
});
|
|
174
|
+
}
|
|
166
175
|
//# sourceMappingURL=private_execution_result.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private_execution_result.d.ts","sourceRoot":"","sources":["../../src/tx/private_execution_result.ts"],"names":[],"mappings":";;AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE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MAAM,CAAC;IAChD,kDAAkD;IAC3C,QAAQ,EAAE,WAAW,EAAE;IAC9B,oEAAoE;IAC7D,2BAA2B,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;IACvD,sDAAsD;IAC/C,YAAY,EAAE,EAAE,EAAE;IACzB,6BAA6B;IACtB,gBAAgB,EAAE,0BAA0B,EAAE;IACrD;;;OAGG;IACI,iBAAiB,EAAE,uBAAuB,EAAE,EAC5C,aAAa,CAAC,2CAA+B;IAGtD,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC,0BAA0B,CAAC,CAetD;IAED,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,0BAA0B,CAAC;WAe3C,MAAM,CAAC,MAAM,SAAI,GAAG,OAAO,CAAC,0BAA0B,CAAC;CAcrE;AAED,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,sBAAsB,uBAQ7E;AAED,wBAAgB,kCAAkC,CAAC,UAAU,EAAE,sBAAsB,uBAWpF;AAWD;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,UAAU,EAAE,sBAAsB,GAAG,gBAAgB,EAAE,CAIrG;AAED,wBAAgB,sCAAsC,CAAC,UAAU,EAAE,sBAAsB,GAAG,MAAM,CAQjG;AAED,wBAAgB,aAAa,CAAC,CAAC,EAC7B,cAAc,EAAE,0BAA0B,EAAE,EAC5C,qBAAqB,EAAE,CAAC,SAAS,EAAE,0BAA0B,KAAK,CAAC,EAAE,GACpE,CAAC,EAAE,CAML;AAED,qBAAa,6BAA6B;IACrB,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE;gBAA3B,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE;CAC/C"}
|
|
@@ -98,12 +98,13 @@ export class PrivateExecutionResult {
|
|
|
98
98
|
returnValues;
|
|
99
99
|
nestedExecutions;
|
|
100
100
|
contractClassLogs;
|
|
101
|
+
profileResult;
|
|
101
102
|
constructor(// Needed for prover
|
|
102
103
|
/** The ACIR bytecode. */ acir, /** The verification key. */ vk, /** The partial witness. */ partialWitness, // Needed for the verifier (kernel)
|
|
103
104
|
/** The call stack item. */ publicInputs, /** Mapping of note hash to its index in the note hash tree. Used for building hints for note hash read requests. */ noteHashLeafIndexMap, /** The notes created in the executed function. */ newNotes, /** Mapping of note hash counter to the counter of its nullifier. */ noteHashNullifierCounterMap, /** The raw return values of the executed function. */ returnValues, /** The nested executions. */ nestedExecutions, /**
|
|
104
105
|
* Contract class logs emitted during execution of this function call.
|
|
105
106
|
* Note: These are preimages to `contractClassLogsHashes`.
|
|
106
|
-
*/ contractClassLogs){
|
|
107
|
+
*/ contractClassLogs, profileResult){
|
|
107
108
|
this.acir = acir;
|
|
108
109
|
this.vk = vk;
|
|
109
110
|
this.partialWitness = partialWitness;
|
|
@@ -114,6 +115,7 @@ export class PrivateExecutionResult {
|
|
|
114
115
|
this.returnValues = returnValues;
|
|
115
116
|
this.nestedExecutions = nestedExecutions;
|
|
116
117
|
this.contractClassLogs = contractClassLogs;
|
|
118
|
+
this.profileResult = profileResult;
|
|
117
119
|
}
|
|
118
120
|
static get schema() {
|
|
119
121
|
return z.object({
|
|
@@ -207,3 +209,9 @@ export function collectNested(executionStack, extractExecutionItems) {
|
|
|
207
209
|
const thisExecutionReads = executionStack.flatMap(extractExecutionItems);
|
|
208
210
|
return thisExecutionReads.concat(executionStack.flatMap(({ nestedExecutions })=>collectNested(nestedExecutions, extractExecutionItems)));
|
|
209
211
|
}
|
|
212
|
+
export class PrivateExecutionProfileResult {
|
|
213
|
+
timings;
|
|
214
|
+
constructor(timings){
|
|
215
|
+
this.timings = timings;
|
|
216
|
+
}
|
|
217
|
+
}
|
package/dest/tx/profiled_tx.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import type { ZodFor } from '@aztec/foundation/schemas';
|
|
|
2
2
|
import { type PrivateExecutionStep } from '../kernel/private_kernel_prover_output.js';
|
|
3
3
|
export declare class TxProfileResult {
|
|
4
4
|
executionSteps: PrivateExecutionStep[];
|
|
5
|
-
|
|
5
|
+
syncTime: number;
|
|
6
|
+
provingTime?: number | undefined;
|
|
7
|
+
constructor(executionSteps: PrivateExecutionStep[], syncTime: number, provingTime?: number | undefined);
|
|
6
8
|
static get schema(): ZodFor<TxProfileResult>;
|
|
7
9
|
static random(): TxProfileResult;
|
|
8
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiled_tx.d.ts","sourceRoot":"","sources":["../../src/tx/profiled_tx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAIxD,OAAO,EAAE,KAAK,oBAAoB,EAA8B,MAAM,2CAA2C,CAAC;AAElH,qBAAa,eAAe;IACP,cAAc,EAAE,oBAAoB,EAAE;
|
|
1
|
+
{"version":3,"file":"profiled_tx.d.ts","sourceRoot":"","sources":["../../src/tx/profiled_tx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAIxD,OAAO,EAAE,KAAK,oBAAoB,EAA8B,MAAM,2CAA2C,CAAC;AAElH,qBAAa,eAAe;IACP,cAAc,EAAE,oBAAoB,EAAE;IAAS,QAAQ,EAAE,MAAM;IAAS,WAAW,CAAC;gBAApF,cAAc,EAAE,oBAAoB,EAAE,EAAS,QAAQ,EAAE,MAAM,EAAS,WAAW,CAAC,oBAAQ;IAE/G,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC,eAAe,CAAC,CAU3C;IAED,MAAM,CAAC,MAAM,IAAI,eAAe;CAkBjC"}
|
package/dest/tx/profiled_tx.js
CHANGED
|
@@ -2,13 +2,19 @@ import { z } from 'zod';
|
|
|
2
2
|
import { PrivateExecutionStepSchema } from '../kernel/private_kernel_prover_output.js';
|
|
3
3
|
export class TxProfileResult {
|
|
4
4
|
executionSteps;
|
|
5
|
-
|
|
5
|
+
syncTime;
|
|
6
|
+
provingTime;
|
|
7
|
+
constructor(executionSteps, syncTime, provingTime){
|
|
6
8
|
this.executionSteps = executionSteps;
|
|
9
|
+
this.syncTime = syncTime;
|
|
10
|
+
this.provingTime = provingTime;
|
|
7
11
|
}
|
|
8
12
|
static get schema() {
|
|
9
13
|
return z.object({
|
|
10
|
-
executionSteps: z.array(PrivateExecutionStepSchema)
|
|
11
|
-
|
|
14
|
+
executionSteps: z.array(PrivateExecutionStepSchema),
|
|
15
|
+
provingTime: z.number().optional(),
|
|
16
|
+
syncTime: z.number()
|
|
17
|
+
}).transform(({ executionSteps, syncTime, provingTime })=>new TxProfileResult(executionSteps, syncTime, provingTime));
|
|
12
18
|
}
|
|
13
19
|
static random() {
|
|
14
20
|
return new TxProfileResult([
|
|
@@ -21,8 +27,12 @@ export class TxProfileResult {
|
|
|
21
27
|
'random'
|
|
22
28
|
]
|
|
23
29
|
]),
|
|
24
|
-
vk: Buffer.from('random')
|
|
30
|
+
vk: Buffer.from('random'),
|
|
31
|
+
timings: {
|
|
32
|
+
witgen: 1,
|
|
33
|
+
gateCount: 1
|
|
34
|
+
}
|
|
25
35
|
}
|
|
26
|
-
]);
|
|
36
|
+
], 1, 1);
|
|
27
37
|
}
|
|
28
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/stdlib",
|
|
3
|
-
"version": "0.86.0-nightly.
|
|
3
|
+
"version": "0.86.0-nightly.20250507",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"inherits": [
|
|
6
6
|
"../package.common.json",
|
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@aztec/bb.js": "0.86.0-nightly.
|
|
70
|
-
"@aztec/blob-lib": "0.86.0-nightly.
|
|
71
|
-
"@aztec/constants": "0.86.0-nightly.
|
|
72
|
-
"@aztec/ethereum": "0.86.0-nightly.
|
|
73
|
-
"@aztec/foundation": "0.86.0-nightly.
|
|
74
|
-
"@aztec/noir-noirc_abi": "0.86.0-nightly.
|
|
69
|
+
"@aztec/bb.js": "0.86.0-nightly.20250507",
|
|
70
|
+
"@aztec/blob-lib": "0.86.0-nightly.20250507",
|
|
71
|
+
"@aztec/constants": "0.86.0-nightly.20250507",
|
|
72
|
+
"@aztec/ethereum": "0.86.0-nightly.20250507",
|
|
73
|
+
"@aztec/foundation": "0.86.0-nightly.20250507",
|
|
74
|
+
"@aztec/noir-noirc_abi": "0.86.0-nightly.20250507",
|
|
75
75
|
"@google-cloud/storage": "^7.15.0",
|
|
76
76
|
"lodash.chunk": "^4.2.0",
|
|
77
77
|
"lodash.isequal": "^4.5.0",
|
package/src/abi/abi.ts
CHANGED
|
@@ -209,12 +209,19 @@ export interface FunctionDebugMetadata {
|
|
|
209
209
|
|
|
210
210
|
export const FunctionDebugMetadataSchema = z.object({
|
|
211
211
|
debugSymbols: z.object({
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
212
|
+
location_tree: z.object({
|
|
213
|
+
locations: z.array(
|
|
214
|
+
z.object({
|
|
215
|
+
parent: z.number().nullable(),
|
|
216
|
+
value: z.object({
|
|
217
|
+
span: z.object({ start: z.number(), end: z.number() }),
|
|
218
|
+
file: z.number(),
|
|
219
|
+
}),
|
|
220
|
+
}),
|
|
221
|
+
),
|
|
222
|
+
}),
|
|
223
|
+
acir_locations: z.record(z.number()),
|
|
224
|
+
brillig_locations: z.record(z.record(z.number())),
|
|
218
225
|
}),
|
|
219
226
|
files: z.record(z.object({ source: z.string(), path: z.string() })),
|
|
220
227
|
}) satisfies z.ZodType<FunctionDebugMetadata>;
|
|
@@ -246,10 +253,10 @@ export const FunctionArtifactSchema = FunctionAbiSchema.and(
|
|
|
246
253
|
) satisfies ZodFor<FunctionArtifact>;
|
|
247
254
|
|
|
248
255
|
/** A file ID. It's assigned during compilation. */
|
|
249
|
-
|
|
256
|
+
type FileId = number;
|
|
250
257
|
|
|
251
258
|
/** A pointer to a specific section of the source code. */
|
|
252
|
-
|
|
259
|
+
interface SourceCodeLocation {
|
|
253
260
|
/** The section of the source code. */
|
|
254
261
|
span: {
|
|
255
262
|
/** The byte where the section starts. */
|
|
@@ -269,12 +276,22 @@ export type OpcodeLocation = string;
|
|
|
269
276
|
|
|
270
277
|
export type BrilligFunctionId = number;
|
|
271
278
|
|
|
272
|
-
export type OpcodeToLocationsMap = Record<OpcodeLocation,
|
|
279
|
+
export type OpcodeToLocationsMap = Record<OpcodeLocation, number>;
|
|
280
|
+
|
|
281
|
+
export type LocationNodeDebugInfo = {
|
|
282
|
+
parent: number | null;
|
|
283
|
+
value: SourceCodeLocation;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
export type LocationTree = {
|
|
287
|
+
locations: LocationNodeDebugInfo[];
|
|
288
|
+
};
|
|
273
289
|
|
|
274
290
|
/** The debug information for a given function. */
|
|
275
291
|
export interface DebugInfo {
|
|
276
292
|
/** A map of the opcode location to the source code location. */
|
|
277
|
-
|
|
293
|
+
location_tree: LocationTree;
|
|
294
|
+
acir_locations: OpcodeToLocationsMap;
|
|
278
295
|
/** For each Brillig function, we have a map of the opcode location to the source code location. */
|
|
279
296
|
brillig_locations: Record<BrilligFunctionId, OpcodeToLocationsMap>;
|
|
280
297
|
}
|
package/src/interfaces/pxe.ts
CHANGED
|
@@ -139,12 +139,13 @@ export interface PXE {
|
|
|
139
139
|
* (where validators prove the public portion).
|
|
140
140
|
*
|
|
141
141
|
* @param txRequest - An authenticated tx request ready for proving
|
|
142
|
-
* @param privateExecutionResult - The result of the private execution of the transaction
|
|
142
|
+
* @param privateExecutionResult - (optional) The result of the private execution of the transaction. The txRequest
|
|
143
|
+
* will be executed if not provided
|
|
143
144
|
* @returns A result containing the proof and public inputs of the tail circuit.
|
|
144
145
|
* @throws If contract code not found, or public simulation reverts.
|
|
145
146
|
* Also throws if simulatePublic is true and public simulation reverts.
|
|
146
147
|
*/
|
|
147
|
-
proveTx(txRequest: TxExecutionRequest, privateExecutionResult
|
|
148
|
+
proveTx(txRequest: TxExecutionRequest, privateExecutionResult?: PrivateExecutionResult): Promise<TxProvingResult>;
|
|
148
149
|
|
|
149
150
|
/**
|
|
150
151
|
* Simulates a transaction based on the provided preauthenticated execution request.
|
|
@@ -188,6 +189,7 @@ export interface PXE {
|
|
|
188
189
|
profileTx(
|
|
189
190
|
txRequest: TxExecutionRequest,
|
|
190
191
|
profileMode: 'gates' | 'execution-steps' | 'full',
|
|
192
|
+
skipProofGeneration?: boolean,
|
|
191
193
|
msgSender?: AztecAddress,
|
|
192
194
|
): Promise<TxProfileResult>;
|
|
193
195
|
|
|
@@ -455,12 +457,16 @@ export const PXESchema: ApiSchemaFor<PXE> = {
|
|
|
455
457
|
.returns(z.void()),
|
|
456
458
|
updateContract: z.function().args(schemas.AztecAddress, ContractArtifactSchema).returns(z.void()),
|
|
457
459
|
getContracts: z.function().returns(z.array(schemas.AztecAddress)),
|
|
458
|
-
proveTx: z
|
|
460
|
+
proveTx: z
|
|
461
|
+
.function()
|
|
462
|
+
.args(TxExecutionRequest.schema, optional(PrivateExecutionResult.schema))
|
|
463
|
+
.returns(TxProvingResult.schema),
|
|
459
464
|
profileTx: z
|
|
460
465
|
.function()
|
|
461
466
|
.args(
|
|
462
467
|
TxExecutionRequest.schema,
|
|
463
468
|
z.union([z.literal('gates'), z.literal('full'), z.literal('execution-steps')]),
|
|
469
|
+
optional(z.boolean()),
|
|
464
470
|
optional(schemas.AztecAddress),
|
|
465
471
|
)
|
|
466
472
|
.returns(TxProfileResult.schema),
|
|
@@ -15,6 +15,10 @@ export const PrivateExecutionStepSchema = z.object({
|
|
|
15
15
|
bytecode: bufferSchema,
|
|
16
16
|
witness: mapSchema(z.number(), z.string()),
|
|
17
17
|
vk: bufferSchema,
|
|
18
|
+
timings: z.object({
|
|
19
|
+
witgen: z.number(),
|
|
20
|
+
gateCount: z.number().optional(),
|
|
21
|
+
}),
|
|
18
22
|
});
|
|
19
23
|
|
|
20
24
|
/**
|
|
@@ -27,6 +31,10 @@ export interface PrivateExecutionStep {
|
|
|
27
31
|
witness: WitnessMap;
|
|
28
32
|
/* TODO(https://github.com/AztecProtocol/barretenberg/issues/1328) this should get its own proper class. */
|
|
29
33
|
vk: Buffer;
|
|
34
|
+
timings: {
|
|
35
|
+
witgen: number;
|
|
36
|
+
gateCount?: number;
|
|
37
|
+
};
|
|
30
38
|
}
|
|
31
39
|
|
|
32
40
|
/** Represents the output of proven PrivateKernelSimulateOutput.*/
|
|
@@ -45,6 +53,8 @@ export interface PrivateKernelExecutionProofOutput<
|
|
|
45
53
|
* If simulate is ran with profiling mode, also includes gate counts.
|
|
46
54
|
*/
|
|
47
55
|
executionSteps: PrivateExecutionStep[];
|
|
56
|
+
/** Performance metrics */
|
|
57
|
+
timings?: { proving: number };
|
|
48
58
|
}
|
|
49
59
|
|
|
50
60
|
export function serializePrivateExecutionSteps(steps: PrivateExecutionStep[]) {
|
|
@@ -135,6 +135,7 @@ export class PrivateCallExecutionResult {
|
|
|
135
135
|
* Note: These are preimages to `contractClassLogsHashes`.
|
|
136
136
|
*/
|
|
137
137
|
public contractClassLogs: CountedContractClassLog[],
|
|
138
|
+
public profileResult?: PrivateExecutionProfileResult,
|
|
138
139
|
) {}
|
|
139
140
|
|
|
140
141
|
static get schema(): ZodFor<PrivateCallExecutionResult> {
|
|
@@ -248,3 +249,7 @@ export function collectNested<T>(
|
|
|
248
249
|
executionStack.flatMap(({ nestedExecutions }) => collectNested(nestedExecutions, extractExecutionItems)),
|
|
249
250
|
);
|
|
250
251
|
}
|
|
252
|
+
|
|
253
|
+
export class PrivateExecutionProfileResult {
|
|
254
|
+
constructor(public timings: { witgen: number }) {}
|
|
255
|
+
}
|
package/src/tx/profiled_tx.ts
CHANGED
|
@@ -5,24 +5,36 @@ import { z } from 'zod';
|
|
|
5
5
|
import { type PrivateExecutionStep, PrivateExecutionStepSchema } from '../kernel/private_kernel_prover_output.js';
|
|
6
6
|
|
|
7
7
|
export class TxProfileResult {
|
|
8
|
-
constructor(public executionSteps: PrivateExecutionStep[]) {}
|
|
8
|
+
constructor(public executionSteps: PrivateExecutionStep[], public syncTime: number, public provingTime?: number) {}
|
|
9
9
|
|
|
10
10
|
static get schema(): ZodFor<TxProfileResult> {
|
|
11
11
|
return z
|
|
12
12
|
.object({
|
|
13
13
|
executionSteps: z.array(PrivateExecutionStepSchema),
|
|
14
|
+
provingTime: z.number().optional(),
|
|
15
|
+
syncTime: z.number(),
|
|
14
16
|
})
|
|
15
|
-
.transform(
|
|
17
|
+
.transform(
|
|
18
|
+
({ executionSteps, syncTime, provingTime }) => new TxProfileResult(executionSteps, syncTime, provingTime),
|
|
19
|
+
);
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
static random(): TxProfileResult {
|
|
19
|
-
return new TxProfileResult(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
return new TxProfileResult(
|
|
24
|
+
[
|
|
25
|
+
{
|
|
26
|
+
functionName: 'random',
|
|
27
|
+
bytecode: Buffer.from('random'),
|
|
28
|
+
witness: new Map([[1, 'random']]),
|
|
29
|
+
vk: Buffer.from('random'),
|
|
30
|
+
timings: {
|
|
31
|
+
witgen: 1,
|
|
32
|
+
gateCount: 1,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
1,
|
|
37
|
+
1,
|
|
38
|
+
);
|
|
27
39
|
}
|
|
28
40
|
}
|