@aztec/stdlib 0.82.0 → 0.82.1-alpha-testnet.1

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.
Files changed (76) hide show
  1. package/dest/avm/avm.d.ts +24 -48
  2. package/dest/avm/avm.d.ts.map +1 -1
  3. package/dest/avm/avm_circuit_public_inputs.d.ts +18 -36
  4. package/dest/avm/avm_circuit_public_inputs.d.ts.map +1 -1
  5. package/dest/avm/avm_proving_request.d.ts +27 -54
  6. package/dest/avm/avm_proving_request.d.ts.map +1 -1
  7. package/dest/contract/contract_class.d.ts.map +1 -1
  8. package/dest/contract/contract_class.js +3 -21
  9. package/dest/contract/interfaces/contract_class.d.ts +1 -143
  10. package/dest/contract/interfaces/contract_class.d.ts.map +1 -1
  11. package/dest/contract/interfaces/contract_class.js +0 -5
  12. package/dest/contract/interfaces/contract_data_source.d.ts +3 -3
  13. package/dest/contract/interfaces/contract_data_source.d.ts.map +1 -1
  14. package/dest/hash/hash.d.ts +8 -1
  15. package/dest/hash/hash.d.ts.map +1 -1
  16. package/dest/hash/hash.js +12 -1
  17. package/dest/interfaces/archiver.d.ts.map +1 -1
  18. package/dest/interfaces/archiver.js +1 -1
  19. package/dest/interfaces/prover-client.js +1 -1
  20. package/dest/interfaces/proving-job.d.ts +27 -54
  21. package/dest/interfaces/proving-job.d.ts.map +1 -1
  22. package/dest/kernel/public_call_request.d.ts +14 -19
  23. package/dest/kernel/public_call_request.d.ts.map +1 -1
  24. package/dest/kernel/public_call_request.js +19 -20
  25. package/dest/stats/stats.d.ts +1 -1
  26. package/dest/stats/stats.d.ts.map +1 -1
  27. package/dest/tests/factories.d.ts +2 -2
  28. package/dest/tests/factories.d.ts.map +1 -1
  29. package/dest/tests/factories.js +3 -13
  30. package/dest/tests/mocks.d.ts +3 -4
  31. package/dest/tests/mocks.d.ts.map +1 -1
  32. package/dest/tests/mocks.js +13 -48
  33. package/dest/tx/call_context.d.ts +1 -1
  34. package/dest/tx/hashed_values.d.ts +16 -4
  35. package/dest/tx/hashed_values.d.ts.map +1 -1
  36. package/dest/tx/hashed_values.js +26 -9
  37. package/dest/tx/index.d.ts +1 -1
  38. package/dest/tx/index.d.ts.map +1 -1
  39. package/dest/tx/index.js +1 -1
  40. package/dest/tx/private_execution_result.d.ts +6 -26
  41. package/dest/tx/private_execution_result.d.ts.map +1 -1
  42. package/dest/tx/private_execution_result.js +13 -70
  43. package/dest/tx/proven_tx.d.ts.map +1 -1
  44. package/dest/tx/proven_tx.js +2 -4
  45. package/dest/tx/public_call_request_with_calldata.d.ts +41 -0
  46. package/dest/tx/public_call_request_with_calldata.d.ts.map +1 -0
  47. package/dest/tx/public_call_request_with_calldata.js +57 -0
  48. package/dest/tx/simulated_tx.d.ts.map +1 -1
  49. package/dest/tx/simulated_tx.js +2 -4
  50. package/dest/tx/tx.d.ts +16 -20
  51. package/dest/tx/tx.d.ts.map +1 -1
  52. package/dest/tx/tx.js +56 -42
  53. package/dest/tx/tx_execution_request.js +1 -1
  54. package/package.json +6 -6
  55. package/src/contract/contract_class.ts +7 -26
  56. package/src/contract/interfaces/contract_class.ts +2 -18
  57. package/src/contract/interfaces/contract_data_source.ts +3 -3
  58. package/src/hash/hash.ts +15 -1
  59. package/src/interfaces/archiver.ts +1 -4
  60. package/src/interfaces/prover-client.ts +1 -1
  61. package/src/kernel/public_call_request.ts +22 -27
  62. package/src/stats/stats.ts +1 -1
  63. package/src/tests/factories.ts +3 -24
  64. package/src/tests/mocks.ts +28 -80
  65. package/src/tx/hashed_values.ts +29 -9
  66. package/src/tx/index.ts +1 -1
  67. package/src/tx/private_execution_result.ts +9 -81
  68. package/src/tx/proven_tx.ts +2 -10
  69. package/src/tx/public_call_request_with_calldata.ts +72 -0
  70. package/src/tx/simulated_tx.ts +1 -6
  71. package/src/tx/tx.ts +57 -70
  72. package/src/tx/tx_execution_request.ts +1 -1
  73. package/dest/tx/public_execution_request.d.ts +0 -45
  74. package/dest/tx/public_execution_request.d.ts.map +0 -1
  75. package/dest/tx/public_execution_request.js +0 -72
  76. package/src/tx/public_execution_request.ts +0 -97
@@ -1,6 +1,4 @@
1
- import { PUBLIC_DISPATCH_SELECTOR } from '@aztec/constants';
2
1
  import { vkAsFieldsMegaHonk } from '@aztec/foundation/crypto';
3
- import { Fr } from '@aztec/foundation/fields';
4
2
  import { FunctionSelector, FunctionType } from '../abi/index.js';
5
3
  import { hashVK } from '../hash/hash.js';
6
4
  import { computeArtifactHash } from './artifact_hash.js';
@@ -9,32 +7,16 @@ const cmpFunctionArtifacts = (a, b)=>a.selector.toField().cmp(b.selector.toField
9
7
  /** Creates a ContractClass from a contract compilation artifact. */ export async function getContractClassFromArtifact(artifact) {
10
8
  const artifactHash = 'artifactHash' in artifact ? artifact.artifactHash : await computeArtifactHash(artifact);
11
9
  const publicFunctions = artifact.functions.filter((f)=>f.functionType === FunctionType.PUBLIC);
12
- // TODO(#8985): ContractArtifact.functions should ensure that the below only contains the public dispatch function
13
- // So we can likely remove this and just use the below to assign the dispatch.
14
- const artifactPublicFunctions = await Promise.all(publicFunctions.map(async (f)=>({
15
- selector: await FunctionSelector.fromNameAndParameters(f.name, f.parameters),
16
- bytecode: f.bytecode
17
- })));
18
- artifactPublicFunctions.sort(cmpFunctionArtifacts);
19
- let packedBytecode = Buffer.alloc(0);
20
- let dispatchFunction = undefined;
21
- if (artifactPublicFunctions.length > 0) {
22
- dispatchFunction = artifactPublicFunctions.find((f)=>f.selector.equals(FunctionSelector.fromField(new Fr(PUBLIC_DISPATCH_SELECTOR))));
23
- if (!dispatchFunction) {
24
- throw new Error(`A contract with public functions should define a public_dispatch(Field) function as its public entrypoint. Contract: ${artifact.name}`);
25
- }
26
- packedBytecode = dispatchFunction.bytecode;
10
+ if (publicFunctions.length > 1) {
11
+ throw new Error(`Contract should contain at most one public function artifact. Received ${publicFunctions.length}.`);
27
12
  }
13
+ const packedBytecode = publicFunctions[0]?.bytecode ?? Buffer.alloc(0);
28
14
  const privateFunctions = artifact.functions.filter((f)=>f.functionType === FunctionType.PRIVATE);
29
15
  const privateArtifactFunctions = await Promise.all(privateFunctions.map(getContractClassPrivateFunctionFromArtifact));
30
16
  privateArtifactFunctions.sort(cmpFunctionArtifacts);
31
17
  const contractClass = {
32
18
  version: 1,
33
19
  artifactHash,
34
- // TODO(https://github.com/AztecProtocol/aztec-packages/issues/8985): Remove public functions.
35
- publicFunctions: dispatchFunction ? [
36
- dispatchFunction
37
- ] : [],
38
20
  packedBytecode,
39
21
  privateFunctions: privateArtifactFunctions
40
22
  };
@@ -17,8 +17,6 @@ export interface ContractClass {
17
17
  artifactHash: Fr;
18
18
  /** List of individual private functions, constructors included. */
19
19
  privateFunctions: PrivateFunction[];
20
- /** Contains the public_dispatch function (and only that) if there's any public code in the contract. */
21
- publicFunctions: PublicFunction[];
22
20
  /** Bytecode for the public_dispatch function, or empty. */
23
21
  packedBytecode: Buffer;
24
22
  }
@@ -34,38 +32,6 @@ export interface ExecutablePrivateFunction extends PrivateFunction {
34
32
  /** ACIR and Brillig bytecode */
35
33
  bytecode: Buffer;
36
34
  }
37
- /** Public function definition within a contract class. */
38
- export interface PublicFunction {
39
- /** Selector of the function. Calculated as the hash of the method name and parameters. The specification of this is not enforced by the protocol. */
40
- selector: FunctionSelector;
41
- /** Public bytecode. */
42
- bytecode: Buffer;
43
- }
44
- export declare const PublicFunctionSchema: z.ZodObject<{
45
- selector: ZodFor<FunctionSelector>;
46
- bytecode: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>, z.ZodEffects<z.ZodObject<{
47
- type: z.ZodLiteral<"Buffer">;
48
- data: z.ZodArray<z.ZodNumber, "many">;
49
- }, "strip", z.ZodTypeAny, {
50
- type: "Buffer";
51
- data: number[];
52
- }, {
53
- type: "Buffer";
54
- data: number[];
55
- }>, Buffer, {
56
- type: "Buffer";
57
- data: number[];
58
- }>]>;
59
- }, "strip", z.ZodTypeAny, {
60
- bytecode: Buffer;
61
- selector: FunctionSelector;
62
- }, {
63
- bytecode: string | {
64
- type: "Buffer";
65
- data: number[];
66
- };
67
- selector?: any;
68
- }>;
69
35
  /** Unconstrained function definition. */
70
36
  export interface UnconstrainedFunction {
71
37
  /** Selector of the function. Calculated as the hash of the method name and parameters. The specification of this is not enforced by the protocol. */
@@ -108,31 +74,6 @@ export declare const ContractClassSchema: z.ZodObject<{
108
74
  vkHash: string;
109
75
  selector?: any;
110
76
  }>, "many">;
111
- publicFunctions: z.ZodArray<z.ZodObject<{
112
- selector: ZodFor<FunctionSelector>;
113
- bytecode: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>, z.ZodEffects<z.ZodObject<{
114
- type: z.ZodLiteral<"Buffer">;
115
- data: z.ZodArray<z.ZodNumber, "many">;
116
- }, "strip", z.ZodTypeAny, {
117
- type: "Buffer";
118
- data: number[];
119
- }, {
120
- type: "Buffer";
121
- data: number[];
122
- }>, Buffer, {
123
- type: "Buffer";
124
- data: number[];
125
- }>]>;
126
- }, "strip", z.ZodTypeAny, {
127
- bytecode: Buffer;
128
- selector: FunctionSelector;
129
- }, {
130
- bytecode: string | {
131
- type: "Buffer";
132
- data: number[];
133
- };
134
- selector?: any;
135
- }>, "many">;
136
77
  packedBytecode: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>, z.ZodEffects<z.ZodObject<{
137
78
  type: z.ZodLiteral<"Buffer">;
138
79
  data: z.ZodArray<z.ZodNumber, "many">;
@@ -154,10 +95,6 @@ export declare const ContractClassSchema: z.ZodObject<{
154
95
  selector: FunctionSelector;
155
96
  vkHash: Fr;
156
97
  }[];
157
- publicFunctions: {
158
- bytecode: Buffer;
159
- selector: FunctionSelector;
160
- }[];
161
98
  }, {
162
99
  version: 1;
163
100
  artifactHash: string;
@@ -169,13 +106,6 @@ export declare const ContractClassSchema: z.ZodObject<{
169
106
  vkHash: string;
170
107
  selector?: any;
171
108
  }[];
172
- publicFunctions: {
173
- bytecode: string | {
174
- type: "Buffer";
175
- data: number[];
176
- };
177
- selector?: any;
178
- }[];
179
109
  }>;
180
110
  /** Commitments to fields of a contract class. */
181
111
  interface ContractClassCommitments {
@@ -201,31 +131,6 @@ export declare const ContractClassWithIdSchema: z.ZodObject<z.objectUtil.extendS
201
131
  vkHash: string;
202
132
  selector?: any;
203
133
  }>, "many">;
204
- publicFunctions: z.ZodArray<z.ZodObject<{
205
- selector: ZodFor<FunctionSelector>;
206
- bytecode: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>, z.ZodEffects<z.ZodObject<{
207
- type: z.ZodLiteral<"Buffer">;
208
- data: z.ZodArray<z.ZodNumber, "many">;
209
- }, "strip", z.ZodTypeAny, {
210
- type: "Buffer";
211
- data: number[];
212
- }, {
213
- type: "Buffer";
214
- data: number[];
215
- }>, Buffer, {
216
- type: "Buffer";
217
- data: number[];
218
- }>]>;
219
- }, "strip", z.ZodTypeAny, {
220
- bytecode: Buffer;
221
- selector: FunctionSelector;
222
- }, {
223
- bytecode: string | {
224
- type: "Buffer";
225
- data: number[];
226
- };
227
- selector?: any;
228
- }>, "many">;
229
134
  packedBytecode: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>, z.ZodEffects<z.ZodObject<{
230
135
  type: z.ZodLiteral<"Buffer">;
231
136
  data: z.ZodArray<z.ZodNumber, "many">;
@@ -250,10 +155,6 @@ export declare const ContractClassWithIdSchema: z.ZodObject<z.objectUtil.extendS
250
155
  selector: FunctionSelector;
251
156
  vkHash: Fr;
252
157
  }[];
253
- publicFunctions: {
254
- bytecode: Buffer;
255
- selector: FunctionSelector;
256
- }[];
257
158
  }, {
258
159
  id: string;
259
160
  version: 1;
@@ -266,20 +167,13 @@ export declare const ContractClassWithIdSchema: z.ZodObject<z.objectUtil.extendS
266
167
  vkHash: string;
267
168
  selector?: any;
268
169
  }[];
269
- publicFunctions: {
270
- bytecode: string | {
271
- type: "Buffer";
272
- data: number[];
273
- };
274
- selector?: any;
275
- }[];
276
170
  }>;
277
171
  /** A contract class with public bytecode information, and optional private and unconstrained. */
278
172
  export type ContractClassPublic = {
279
173
  privateFunctions: ExecutablePrivateFunctionWithMembershipProof[];
280
174
  unconstrainedFunctions: UnconstrainedFunctionWithMembershipProof[];
281
175
  } & Pick<ContractClassCommitments, 'id' | 'privateFunctionsRoot'> & Omit<ContractClass, 'privateFunctions'>;
282
- export type ContractClassWithCommitment = ContractClassPublic & Pick<ContractClassCommitments, 'publicBytecodeCommitment'>;
176
+ export type ContractClassPublicWithCommitment = ContractClassPublic & Pick<ContractClassCommitments, 'publicBytecodeCommitment'>;
283
177
  export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
284
178
  id: z.ZodType<Fr, any, string>;
285
179
  privateFunctionsRoot: z.ZodType<Fr, any, string>;
@@ -455,31 +349,6 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
455
349
  vkHash: string;
456
350
  selector?: any;
457
351
  }>, "many">;
458
- publicFunctions: z.ZodArray<z.ZodObject<{
459
- selector: ZodFor<FunctionSelector>;
460
- bytecode: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>, z.ZodEffects<z.ZodObject<{
461
- type: z.ZodLiteral<"Buffer">;
462
- data: z.ZodArray<z.ZodNumber, "many">;
463
- }, "strip", z.ZodTypeAny, {
464
- type: "Buffer";
465
- data: number[];
466
- }, {
467
- type: "Buffer";
468
- data: number[];
469
- }>, Buffer, {
470
- type: "Buffer";
471
- data: number[];
472
- }>]>;
473
- }, "strip", z.ZodTypeAny, {
474
- bytecode: Buffer;
475
- selector: FunctionSelector;
476
- }, {
477
- bytecode: string | {
478
- type: "Buffer";
479
- data: number[];
480
- };
481
- selector?: any;
482
- }>, "many">;
483
352
  packedBytecode: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>, z.ZodEffects<z.ZodObject<{
484
353
  type: z.ZodLiteral<"Buffer">;
485
354
  data: z.ZodArray<z.ZodNumber, "many">;
@@ -497,10 +366,6 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
497
366
  version: 1;
498
367
  artifactHash: Fr;
499
368
  packedBytecode: Buffer;
500
- publicFunctions: {
501
- bytecode: Buffer;
502
- selector: FunctionSelector;
503
- }[];
504
369
  }, {
505
370
  version: 1;
506
371
  artifactHash: string;
@@ -508,13 +373,6 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
508
373
  type: "Buffer";
509
374
  data: number[];
510
375
  };
511
- publicFunctions: {
512
- bytecode: string | {
513
- type: "Buffer";
514
- data: number[];
515
- };
516
- selector?: any;
517
- }[];
518
376
  }>>;
519
377
  /** The contract class with the block it was initially deployed at */
520
378
  export type ContractClassPublicWithBlockNumber = {
@@ -1 +1 @@
1
- {"version":3,"file":"contract_class.d.ts","sourceRoot":"","sources":["../../../src/contract/interfaces/contract_class.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,QAAA,MAAM,OAAO,GAAa,CAAC;AAE3B;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,qCAAqC;IACrC,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,wRAAwR;IACxR,YAAY,EAAE,EAAE,CAAC;IACjB,mEAAmE;IACnE,gBAAgB,EAAE,eAAe,EAAE,CAAC;IAEpC,wGAAwG;IACxG,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,2DAA2D;IAC3D,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,2DAA2D;AAC3D,MAAM,WAAW,eAAe;IAC9B,qJAAqJ;IACrJ,QAA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kB,CAAC,CAAC;AAE1C,MAAM,MAAM,iCAAiC,GAAG,mBAAmB,GACjE,IAAI,CAAC,wBAAwB,EAAE,0BAA0B,CAAC,CAAC;AAE7D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAnFpC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FqF,CAAC;AAEnG,qEAAqE;AACrE,MAAM,MAAM,kCAAkC,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,GAAG,mBAAmB,CAAC"}
@@ -9,10 +9,6 @@ const PrivateFunctionSchema = z.object({
9
9
  const ExecutablePrivateFunctionSchema = PrivateFunctionSchema.and(z.object({
10
10
  bytecode: schemas.Buffer
11
11
  }));
12
- export const PublicFunctionSchema = z.object({
13
- selector: FunctionSelector.schema,
14
- bytecode: schemas.Buffer
15
- });
16
12
  const UnconstrainedFunctionSchema = z.object({
17
13
  /** lala */ selector: FunctionSelector.schema,
18
14
  bytecode: schemas.Buffer
@@ -37,7 +33,6 @@ export const ContractClassSchema = z.object({
37
33
  version: z.literal(VERSION),
38
34
  artifactHash: schemas.Fr,
39
35
  privateFunctions: z.array(PrivateFunctionSchema),
40
- publicFunctions: z.array(PublicFunctionSchema),
41
36
  packedBytecode: schemas.Buffer
42
37
  });
43
38
  export const ContractClassWithIdSchema = ContractClassSchema.extend({
@@ -1,5 +1,5 @@
1
1
  import type { Fr } from '@aztec/foundation/fields';
2
- import { FunctionSelector } from '../../abi/index.js';
2
+ import type { FunctionSelector } from '../../abi/index.js';
3
3
  import type { AztecAddress } from '../../aztec-address/index.js';
4
4
  import type { ContractClassPublic } from './contract_class.js';
5
5
  import type { ContractInstanceWithAddress } from './contract_instance.js';
@@ -25,8 +25,8 @@ export interface ContractDataSource {
25
25
  * Returns the list of all class ids known.
26
26
  */
27
27
  getContractClassIds(): Promise<Fr[]>;
28
- /** Returns a function's name */
29
- getContractFunctionName(address: AztecAddress, selector: FunctionSelector): Promise<string | undefined>;
28
+ /** Returns a function's name. It's only available if provided by calling `registerContractFunctionSignatures`. */
29
+ getDebugFunctionName(address: AztecAddress, selector: FunctionSelector): Promise<string | undefined>;
30
30
  /** Registers a function names. Useful for debugging. */
31
31
  registerContractFunctionSignatures(address: AztecAddress, signatures: string[]): Promise<void>;
32
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"contract_data_source.d.ts","sourceRoot":"","sources":["../../../src/contract/interfaces/contract_data_source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAE1E,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAElC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC;IAEnE,qBAAqB,CAAC,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAEvD;;;;OAIG;IACH,WAAW,CAAC,OAAO,EAAE,YAAY,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,GAAG,SAAS,CAAC,CAAC;IAE3G;;OAEG;IACH,mBAAmB,IAAI,OAAO,CAAC,EAAE,EAAE,CAAC,C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AG,SAAS,CAAC,CAAC;IACrG,wDAAwD;IACxD,kCAAkC,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChG"}
@@ -55,10 +55,17 @@ export declare function computePublicDataTreeValue(value: Fr): Fr;
55
55
  export declare function computePublicDataTreeLeafSlot(contractAddress: AztecAddress, storageSlot: Fr): Promise<Fr>;
56
56
  /**
57
57
  * Computes the hash of a list of arguments.
58
+ * Used for input arguments or return values for private functions, or for authwit creation.
58
59
  * @param args - Arguments to hash.
59
- * @returns Pedersen hash of the arguments.
60
+ * @returns Hash of the arguments.
60
61
  */
61
62
  export declare function computeVarArgsHash(args: Fr[]): Promise<Fr>;
63
+ /**
64
+ * Computes the hash of a public function's calldata.
65
+ * @param calldata - Calldata to hash.
66
+ * @returns Hash of the calldata.
67
+ */
68
+ export declare function computeCalldataHash(calldata: Fr[]): Promise<Fr>;
62
69
  /**
63
70
  * Computes a hash of a secret.
64
71
  * @dev This function is used to generate secrets for the L1 to L2 message flow and for the TransparentNote.
@@ -1 +1 @@
1
- {"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../src/hash/hash.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAE5E;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,WAAW,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC,CAErD;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC,CAE1F;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,YAAY,EAAE,QAAQ,EA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E,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,CAiBlG"}
package/dest/hash/hash.js CHANGED
@@ -77,14 +77,25 @@ import { Fr } from '@aztec/foundation/fields';
77
77
  }
78
78
  /**
79
79
  * Computes the hash of a list of arguments.
80
+ * Used for input arguments or return values for private functions, or for authwit creation.
80
81
  * @param args - Arguments to hash.
81
- * @returns Pedersen hash of the arguments.
82
+ * @returns Hash of the arguments.
82
83
  */ export function computeVarArgsHash(args) {
83
84
  if (args.length === 0) {
84
85
  return Promise.resolve(Fr.ZERO);
85
86
  }
86
87
  return poseidon2HashWithSeparator(args, GeneratorIndex.FUNCTION_ARGS);
87
88
  }
89
+ /**
90
+ * Computes the hash of a public function's calldata.
91
+ * @param calldata - Calldata to hash.
92
+ * @returns Hash of the calldata.
93
+ */ export function computeCalldataHash(calldata) {
94
+ if (calldata.length === 0) {
95
+ return Promise.resolve(Fr.ZERO);
96
+ }
97
+ return poseidon2HashWithSeparator(calldata, GeneratorIndex.PUBLIC_CALLDATA);
98
+ }
88
99
  /**
89
100
  * Computes a hash of a secret.
90
101
  * @dev This function is used to generate secrets for the L1 to L2 message flow and for the TransparentNote.
@@ -1 +1 @@
1
- {"version":3,"file":"archiver.d.ts","sourceRoot":"","sources":["../../src/interfaces/archiver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAM9D,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,6BAA6B,CAAC;AAE/E,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,sBAAsB,CAAC;AAK9B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAOnF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,aAAa,GAAG,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,EACvE,OAAO,GAAG,MAAM,CACjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,WAAW,CAgDvD,CAAC"}
1
+ {"version":3,"file":"archiver.d.ts","sourceRoot":"","sources":["../../src/interfaces/archiver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAM9D,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,6BAA6B,CAAC;AAE/E,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,sBAAsB,CAAC;AAK9B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAOnF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,aAAa,GAAG,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,EACvE,OAAO,GAAG,MAAM,CACjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,WAAW,CA6CvD,CAAC"}
@@ -45,6 +45,6 @@ export const ArchiverApiSchema = {
45
45
  registerContractFunctionSignatures: z.function().args(schemas.AztecAddress, z.array(z.string())).returns(z.void()),
46
46
  getL1ToL2Messages: z.function().args(schemas.BigInt).returns(z.array(schemas.Fr)),
47
47
  getL1ToL2MessageIndex: z.function().args(schemas.Fr).returns(schemas.BigInt.optional()),
48
- getContractFunctionName: z.function().args(schemas.AztecAddress, schemas.FunctionSelector).returns(optional(z.string())),
48
+ getDebugFunctionName: z.function().args(schemas.AztecAddress, schemas.FunctionSelector).returns(optional(z.string())),
49
49
  getL1Constants: z.function().args().returns(L1RollupConstantsSchema)
50
50
  };
@@ -22,7 +22,7 @@ export const proverConfigMappings = {
22
22
  realProofs: {
23
23
  env: 'PROVER_REAL_PROOFS',
24
24
  description: 'Whether to construct real proofs',
25
- ...booleanConfigHelper()
25
+ ...booleanConfigHelper(true)
26
26
  },
27
27
  proverId: {
28
28
  env: 'PROVER_ID',
@@ -964,77 +964,65 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
964
964
  publicSetupCallRequests: z.ZodArray<z.ZodEffects<z.ZodObject<{
965
965
  msgSender: ZodFor<import("../aztec-address/index.js").AztecAddress>;
966
966
  contractAddress: ZodFor<import("../aztec-address/index.js").AztecAddress>;
967
- functionSelector: ZodFor<import("../abi/function_selector.js").FunctionSelector>;
968
967
  isStaticCall: z.ZodBoolean;
969
- argsHash: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
968
+ calldataHash: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
970
969
  }, "strip", z.ZodTypeAny, {
971
970
  contractAddress: import("../aztec-address/index.js").AztecAddress;
972
971
  msgSender: import("../aztec-address/index.js").AztecAddress;
973
- functionSelector: import("../abi/function_selector.js").FunctionSelector;
974
972
  isStaticCall: boolean;
975
- argsHash: import("@aztec/foundation/schemas").Fr;
973
+ calldataHash: import("@aztec/foundation/schemas").Fr;
976
974
  }, {
977
975
  isStaticCall: boolean;
978
- argsHash: string;
976
+ calldataHash: string;
979
977
  contractAddress?: any;
980
978
  msgSender?: any;
981
- functionSelector?: any;
982
979
  }>, import("../kernel/public_call_request.js").PublicCallRequest, {
983
980
  isStaticCall: boolean;
984
- argsHash: string;
981
+ calldataHash: string;
985
982
  contractAddress?: any;
986
983
  msgSender?: any;
987
- functionSelector?: any;
988
984
  }>, "many">;
989
985
  publicAppLogicCallRequests: z.ZodArray<z.ZodEffects<z.ZodObject<{
990
986
  msgSender: ZodFor<import("../aztec-address/index.js").AztecAddress>;
991
987
  contractAddress: ZodFor<import("../aztec-address/index.js").AztecAddress>;
992
- functionSelector: ZodFor<import("../abi/function_selector.js").FunctionSelector>;
993
988
  isStaticCall: z.ZodBoolean;
994
- argsHash: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
989
+ calldataHash: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
995
990
  }, "strip", z.ZodTypeAny, {
996
991
  contractAddress: import("../aztec-address/index.js").AztecAddress;
997
992
  msgSender: import("../aztec-address/index.js").AztecAddress;
998
- functionSelector: import("../abi/function_selector.js").FunctionSelector;
999
993
  isStaticCall: boolean;
1000
- argsHash: import("@aztec/foundation/schemas").Fr;
994
+ calldataHash: import("@aztec/foundation/schemas").Fr;
1001
995
  }, {
1002
996
  isStaticCall: boolean;
1003
- argsHash: string;
997
+ calldataHash: string;
1004
998
  contractAddress?: any;
1005
999
  msgSender?: any;
1006
- functionSelector?: any;
1007
1000
  }>, import("../kernel/public_call_request.js").PublicCallRequest, {
1008
1001
  isStaticCall: boolean;
1009
- argsHash: string;
1002
+ calldataHash: string;
1010
1003
  contractAddress?: any;
1011
1004
  msgSender?: any;
1012
- functionSelector?: any;
1013
1005
  }>, "many">;
1014
1006
  publicTeardownCallRequest: z.ZodEffects<z.ZodObject<{
1015
1007
  msgSender: ZodFor<import("../aztec-address/index.js").AztecAddress>;
1016
1008
  contractAddress: ZodFor<import("../aztec-address/index.js").AztecAddress>;
1017
- functionSelector: ZodFor<import("../abi/function_selector.js").FunctionSelector>;
1018
1009
  isStaticCall: z.ZodBoolean;
1019
- argsHash: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
1010
+ calldataHash: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
1020
1011
  }, "strip", z.ZodTypeAny, {
1021
1012
  contractAddress: import("../aztec-address/index.js").AztecAddress;
1022
1013
  msgSender: import("../aztec-address/index.js").AztecAddress;
1023
- functionSelector: import("../abi/function_selector.js").FunctionSelector;
1024
1014
  isStaticCall: boolean;
1025
- argsHash: import("@aztec/foundation/schemas").Fr;
1015
+ calldataHash: import("@aztec/foundation/schemas").Fr;
1026
1016
  }, {
1027
1017
  isStaticCall: boolean;
1028
- argsHash: string;
1018
+ calldataHash: string;
1029
1019
  contractAddress?: any;
1030
1020
  msgSender?: any;
1031
- functionSelector?: any;
1032
1021
  }>, import("../kernel/public_call_request.js").PublicCallRequest, {
1033
1022
  isStaticCall: boolean;
1034
- argsHash: string;
1023
+ calldataHash: string;
1035
1024
  contractAddress?: any;
1036
1025
  msgSender?: any;
1037
- functionSelector?: any;
1038
1026
  }>;
1039
1027
  previousNonRevertibleAccumulatedDataArrayLengths: z.ZodEffects<z.ZodObject<{
1040
1028
  noteHashes: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
@@ -1479,24 +1467,21 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
1479
1467
  };
1480
1468
  publicSetupCallRequests: {
1481
1469
  isStaticCall: boolean;
1482
- argsHash: string;
1470
+ calldataHash: string;
1483
1471
  contractAddress?: any;
1484
1472
  msgSender?: any;
1485
- functionSelector?: any;
1486
1473
  }[];
1487
1474
  publicAppLogicCallRequests: {
1488
1475
  isStaticCall: boolean;
1489
- argsHash: string;
1476
+ calldataHash: string;
1490
1477
  contractAddress?: any;
1491
1478
  msgSender?: any;
1492
- functionSelector?: any;
1493
1479
  }[];
1494
1480
  publicTeardownCallRequest: {
1495
1481
  isStaticCall: boolean;
1496
- argsHash: string;
1482
+ calldataHash: string;
1497
1483
  contractAddress?: any;
1498
1484
  msgSender?: any;
1499
- functionSelector?: any;
1500
1485
  };
1501
1486
  previousNonRevertibleAccumulatedDataArrayLengths: {
1502
1487
  noteHashes: string | number | bigint;
@@ -1630,24 +1615,21 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
1630
1615
  };
1631
1616
  publicSetupCallRequests: {
1632
1617
  isStaticCall: boolean;
1633
- argsHash: string;
1618
+ calldataHash: string;
1634
1619
  contractAddress?: any;
1635
1620
  msgSender?: any;
1636
- functionSelector?: any;
1637
1621
  }[];
1638
1622
  publicAppLogicCallRequests: {
1639
1623
  isStaticCall: boolean;
1640
- argsHash: string;
1624
+ calldataHash: string;
1641
1625
  contractAddress?: any;
1642
1626
  msgSender?: any;
1643
- functionSelector?: any;
1644
1627
  }[];
1645
1628
  publicTeardownCallRequest: {
1646
1629
  isStaticCall: boolean;
1647
- argsHash: string;
1630
+ calldataHash: string;
1648
1631
  contractAddress?: any;
1649
1632
  msgSender?: any;
1650
- functionSelector?: any;
1651
1633
  };
1652
1634
  previousNonRevertibleAccumulatedDataArrayLengths: {
1653
1635
  noteHashes: string | number | bigint;
@@ -1890,24 +1872,21 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
1890
1872
  };
1891
1873
  publicSetupCallRequests: {
1892
1874
  isStaticCall: boolean;
1893
- argsHash: string;
1875
+ calldataHash: string;
1894
1876
  contractAddress?: any;
1895
1877
  msgSender?: any;
1896
- functionSelector?: any;
1897
1878
  }[];
1898
1879
  publicAppLogicCallRequests: {
1899
1880
  isStaticCall: boolean;
1900
- argsHash: string;
1881
+ calldataHash: string;
1901
1882
  contractAddress?: any;
1902
1883
  msgSender?: any;
1903
- functionSelector?: any;
1904
1884
  }[];
1905
1885
  publicTeardownCallRequest: {
1906
1886
  isStaticCall: boolean;
1907
- argsHash: string;
1887
+ calldataHash: string;
1908
1888
  contractAddress?: any;
1909
1889
  msgSender?: any;
1910
- functionSelector?: any;
1911
1890
  };
1912
1891
  previousNonRevertibleAccumulatedDataArrayLengths: {
1913
1892
  noteHashes: string | number | bigint;
@@ -2145,24 +2124,21 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
2145
2124
  };
2146
2125
  publicSetupCallRequests: {
2147
2126
  isStaticCall: boolean;
2148
- argsHash: string;
2127
+ calldataHash: string;
2149
2128
  contractAddress?: any;
2150
2129
  msgSender?: any;
2151
- functionSelector?: any;
2152
2130
  }[];
2153
2131
  publicAppLogicCallRequests: {
2154
2132
  isStaticCall: boolean;
2155
- argsHash: string;
2133
+ calldataHash: string;
2156
2134
  contractAddress?: any;
2157
2135
  msgSender?: any;
2158
- functionSelector?: any;
2159
2136
  }[];
2160
2137
  publicTeardownCallRequest: {
2161
2138
  isStaticCall: boolean;
2162
- argsHash: string;
2139
+ calldataHash: string;
2163
2140
  contractAddress?: any;
2164
2141
  msgSender?: any;
2165
- functionSelector?: any;
2166
2142
  };
2167
2143
  previousNonRevertibleAccumulatedDataArrayLengths: {
2168
2144
  noteHashes: string | number | bigint;
@@ -2406,24 +2382,21 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
2406
2382
  };
2407
2383
  publicSetupCallRequests: {
2408
2384
  isStaticCall: boolean;
2409
- argsHash: string;
2385
+ calldataHash: string;
2410
2386
  contractAddress?: any;
2411
2387
  msgSender?: any;
2412
- functionSelector?: any;
2413
2388
  }[];
2414
2389
  publicAppLogicCallRequests: {
2415
2390
  isStaticCall: boolean;
2416
- argsHash: string;
2391
+ calldataHash: string;
2417
2392
  contractAddress?: any;
2418
2393
  msgSender?: any;
2419
- functionSelector?: any;
2420
2394
  }[];
2421
2395
  publicTeardownCallRequest: {
2422
2396
  isStaticCall: boolean;
2423
- argsHash: string;
2397
+ calldataHash: string;
2424
2398
  contractAddress?: any;
2425
2399
  msgSender?: any;
2426
- functionSelector?: any;
2427
2400
  };
2428
2401
  previousNonRevertibleAccumulatedDataArrayLengths: {
2429
2402
  noteHashes: string | number | bigint;