@aztec/stdlib 3.0.0-nightly.20251013 → 3.0.0-nightly.20251015

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 (60) hide show
  1. package/dest/abi/abi.d.ts +8 -8
  2. package/dest/abi/abi.js +1 -1
  3. package/dest/abi/contract_artifact.js +3 -0
  4. package/dest/abi/function_call.d.ts +7 -2
  5. package/dest/abi/function_call.d.ts.map +1 -1
  6. package/dest/abi/function_call.js +6 -2
  7. package/dest/avm/avm.d.ts +54 -54
  8. package/dest/avm/avm_proving_request.d.ts +30 -30
  9. package/dest/contract/interfaces/contract_instance.d.ts +2 -2
  10. package/dest/interfaces/proving-job.d.ts +30 -30
  11. package/dest/kernel/private_call_data.d.ts +1 -1
  12. package/dest/kernel/private_circuit_public_inputs.d.ts +1 -1
  13. package/dest/kernel/private_to_public_accumulated_data.d.ts +1 -1
  14. package/dest/kernel/private_to_rollup_accumulated_data.d.ts +1 -1
  15. package/dest/keys/derivation.d.ts +0 -2
  16. package/dest/keys/derivation.d.ts.map +1 -1
  17. package/dest/keys/derivation.js +1 -21
  18. package/dest/logs/directional_app_tagging_secret.d.ts +40 -0
  19. package/dest/logs/directional_app_tagging_secret.d.ts.map +1 -0
  20. package/dest/logs/directional_app_tagging_secret.js +64 -0
  21. package/dest/logs/index.d.ts +1 -0
  22. package/dest/logs/index.d.ts.map +1 -1
  23. package/dest/logs/index.js +1 -0
  24. package/dest/logs/indexed_tagging_secret.d.ts +32 -26
  25. package/dest/logs/indexed_tagging_secret.d.ts.map +1 -1
  26. package/dest/logs/indexed_tagging_secret.js +7 -50
  27. package/dest/noir/index.d.ts +2 -0
  28. package/dest/noir/index.d.ts.map +1 -1
  29. package/dest/rollup/base_rollup_hints.d.ts +2 -2
  30. package/dest/rollup/block_root_rollup_private_inputs.d.ts +5 -5
  31. package/dest/rollup/checkpoint_rollup_public_inputs.d.ts +1 -0
  32. package/dest/rollup/checkpoint_rollup_public_inputs.d.ts.map +1 -1
  33. package/dest/rollup/checkpoint_rollup_public_inputs.js +3 -0
  34. package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts +1 -1
  35. package/dest/rollup/tree_snapshot_diff_hints.d.ts +1 -1
  36. package/dest/tests/factories.d.ts +2 -1
  37. package/dest/tests/factories.d.ts.map +1 -1
  38. package/dest/tests/factories.js +15 -9
  39. package/dest/tests/mocks.d.ts +3 -1
  40. package/dest/tests/mocks.d.ts.map +1 -1
  41. package/dest/tests/mocks.js +4 -2
  42. package/dest/trees/merkle_tree_id.d.ts +4 -4
  43. package/dest/trees/nullifier_membership_witness.d.ts +3 -3
  44. package/dest/tx/private_execution_result.d.ts +5 -0
  45. package/dest/tx/private_execution_result.d.ts.map +1 -1
  46. package/dest/tx/private_execution_result.js +7 -3
  47. package/dest/tx/simulated_tx.d.ts +3 -3
  48. package/package.json +8 -8
  49. package/src/abi/abi.ts +1 -1
  50. package/src/abi/contract_artifact.ts +3 -0
  51. package/src/abi/function_call.ts +5 -1
  52. package/src/keys/derivation.ts +1 -26
  53. package/src/logs/directional_app_tagging_secret.ts +78 -0
  54. package/src/logs/index.ts +1 -0
  55. package/src/logs/indexed_tagging_secret.ts +21 -44
  56. package/src/noir/index.ts +2 -0
  57. package/src/rollup/checkpoint_rollup_public_inputs.ts +4 -0
  58. package/src/tests/factories.ts +11 -4
  59. package/src/tests/mocks.ts +5 -0
  60. package/src/tx/private_execution_result.ts +6 -0
@@ -482,38 +482,38 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
482
482
  }>;
483
483
  }, "strip", z.ZodTypeAny, {
484
484
  salt: import("@aztec/foundation/schemas").Fr;
485
- publicKeys: import("../keys/public_keys.js").PublicKeys;
486
- address: import("../aztec-address/index.js").AztecAddress;
487
485
  deployer: import("../aztec-address/index.js").AztecAddress;
488
486
  currentContractClassId: import("@aztec/foundation/schemas").Fr;
489
487
  originalContractClassId: import("@aztec/foundation/schemas").Fr;
490
488
  initializationHash: import("@aztec/foundation/schemas").Fr;
489
+ publicKeys: import("../keys/public_keys.js").PublicKeys;
490
+ address: import("../aztec-address/index.js").AztecAddress;
491
491
  }, {
492
492
  salt: string;
493
+ currentContractClassId: string;
494
+ originalContractClassId: string;
495
+ initializationHash: string;
493
496
  publicKeys: {
494
497
  masterNullifierPublicKey: string;
495
498
  masterIncomingViewingPublicKey: string;
496
499
  masterOutgoingViewingPublicKey: string;
497
500
  masterTaggingPublicKey: string;
498
501
  };
499
- currentContractClassId: string;
500
- originalContractClassId: string;
501
- initializationHash: string;
502
- address?: any;
503
502
  deployer?: any;
503
+ address?: any;
504
504
  }>, import("../avm/avm.js").AvmContractInstanceHint, {
505
505
  salt: string;
506
+ currentContractClassId: string;
507
+ originalContractClassId: string;
508
+ initializationHash: string;
506
509
  publicKeys: {
507
510
  masterNullifierPublicKey: string;
508
511
  masterIncomingViewingPublicKey: string;
509
512
  masterOutgoingViewingPublicKey: string;
510
513
  masterTaggingPublicKey: string;
511
514
  };
512
- currentContractClassId: string;
513
- originalContractClassId: string;
514
- initializationHash: string;
515
- address?: any;
516
515
  deployer?: any;
516
+ address?: any;
517
517
  }>, "many">;
518
518
  contractClasses: z.ZodArray<z.ZodEffects<z.ZodObject<{
519
519
  classId: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
@@ -2270,17 +2270,17 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
2270
2270
  };
2271
2271
  contractInstances: {
2272
2272
  salt: string;
2273
+ currentContractClassId: string;
2274
+ originalContractClassId: string;
2275
+ initializationHash: string;
2273
2276
  publicKeys: {
2274
2277
  masterNullifierPublicKey: string;
2275
2278
  masterIncomingViewingPublicKey: string;
2276
2279
  masterOutgoingViewingPublicKey: string;
2277
2280
  masterTaggingPublicKey: string;
2278
2281
  };
2279
- currentContractClassId: string;
2280
- originalContractClassId: string;
2281
- initializationHash: string;
2282
- address?: any;
2283
2282
  deployer?: any;
2283
+ address?: any;
2284
2284
  }[];
2285
2285
  contractClasses: {
2286
2286
  classId: string;
@@ -2626,17 +2626,17 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
2626
2626
  };
2627
2627
  contractInstances: {
2628
2628
  salt: string;
2629
+ currentContractClassId: string;
2630
+ originalContractClassId: string;
2631
+ initializationHash: string;
2629
2632
  publicKeys: {
2630
2633
  masterNullifierPublicKey: string;
2631
2634
  masterIncomingViewingPublicKey: string;
2632
2635
  masterOutgoingViewingPublicKey: string;
2633
2636
  masterTaggingPublicKey: string;
2634
2637
  };
2635
- currentContractClassId: string;
2636
- originalContractClassId: string;
2637
- initializationHash: string;
2638
- address?: any;
2639
2638
  deployer?: any;
2639
+ address?: any;
2640
2640
  }[];
2641
2641
  contractClasses: {
2642
2642
  classId: string;
@@ -4229,17 +4229,17 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4229
4229
  };
4230
4230
  contractInstances: {
4231
4231
  salt: string;
4232
+ currentContractClassId: string;
4233
+ originalContractClassId: string;
4234
+ initializationHash: string;
4232
4235
  publicKeys: {
4233
4236
  masterNullifierPublicKey: string;
4234
4237
  masterIncomingViewingPublicKey: string;
4235
4238
  masterOutgoingViewingPublicKey: string;
4236
4239
  masterTaggingPublicKey: string;
4237
4240
  };
4238
- currentContractClassId: string;
4239
- originalContractClassId: string;
4240
- initializationHash: string;
4241
- address?: any;
4242
4241
  deployer?: any;
4242
+ address?: any;
4243
4243
  }[];
4244
4244
  contractClasses: {
4245
4245
  classId: string;
@@ -4752,17 +4752,17 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4752
4752
  };
4753
4753
  contractInstances: {
4754
4754
  salt: string;
4755
+ currentContractClassId: string;
4756
+ originalContractClassId: string;
4757
+ initializationHash: string;
4755
4758
  publicKeys: {
4756
4759
  masterNullifierPublicKey: string;
4757
4760
  masterIncomingViewingPublicKey: string;
4758
4761
  masterOutgoingViewingPublicKey: string;
4759
4762
  masterTaggingPublicKey: string;
4760
4763
  };
4761
- currentContractClassId: string;
4762
- originalContractClassId: string;
4763
- initializationHash: string;
4764
- address?: any;
4765
4764
  deployer?: any;
4765
+ address?: any;
4766
4766
  }[];
4767
4767
  contractClasses: {
4768
4768
  classId: string;
@@ -5281,17 +5281,17 @@ export declare const ProvingJobInputs: z.ZodDiscriminatedUnion<"type", [z.ZodObj
5281
5281
  };
5282
5282
  contractInstances: {
5283
5283
  salt: string;
5284
+ currentContractClassId: string;
5285
+ originalContractClassId: string;
5286
+ initializationHash: string;
5284
5287
  publicKeys: {
5285
5288
  masterNullifierPublicKey: string;
5286
5289
  masterIncomingViewingPublicKey: string;
5287
5290
  masterOutgoingViewingPublicKey: string;
5288
5291
  masterTaggingPublicKey: string;
5289
5292
  };
5290
- currentContractClassId: string;
5291
- originalContractClassId: string;
5292
- initializationHash: string;
5293
- address?: any;
5294
5293
  deployer?: any;
5294
+ address?: any;
5295
5295
  }[];
5296
5296
  contractClasses: {
5297
5297
  classId: string;
@@ -104,7 +104,7 @@ export declare class PrivateVerificationKeyHints {
104
104
  * @param fields - Object with fields.
105
105
  * @returns The array.
106
106
  */
107
- static getFields(fields: FieldsOf<PrivateVerificationKeyHints>): readonly [Fr, Fr, PublicKeys, Fr, MembershipWitness<5>, UpdatedClassIdHints];
107
+ static getFields(fields: FieldsOf<PrivateVerificationKeyHints>): readonly [Fr, Fr, PublicKeys, Fr, MembershipWitness<7>, UpdatedClassIdHints];
108
108
  static from(fields: FieldsOf<PrivateVerificationKeyHints>): PrivateVerificationKeyHints;
109
109
  /**
110
110
  * Serialize this as a buffer.
@@ -221,7 +221,7 @@ export declare class PrivateCircuitPublicInputs {
221
221
  * @param fields - Object with fields.
222
222
  * @returns The array.
223
223
  */
224
- static getFields(fields: FieldsOf<PrivateCircuitPublicInputs>): readonly [CallContext, Fr, Fr, Fr, boolean, bigint, ClaimedLengthArray<ReadRequest, 16>, ClaimedLengthArray<ReadRequest, 16>, ClaimedLengthArray<KeyValidationRequestAndGenerator, 16>, ClaimedLengthArray<NoteHash, 16>, ClaimedLengthArray<Nullifier, 16>, ClaimedLengthArray<PrivateCallRequest, 5>, ClaimedLengthArray<CountedPublicCallRequest, 16>, PublicCallRequest, ClaimedLengthArray<CountedL2ToL1Message, 2>, ClaimedLengthArray<PrivateLogData, 16>, ClaimedLengthArray<CountedLogHash, 1>, Fr, Fr, BlockHeader, TxContext];
224
+ static getFields(fields: FieldsOf<PrivateCircuitPublicInputs>): readonly [CallContext, Fr, Fr, Fr, boolean, bigint, ClaimedLengthArray<ReadRequest, 16>, ClaimedLengthArray<ReadRequest, 16>, ClaimedLengthArray<KeyValidationRequestAndGenerator, 16>, ClaimedLengthArray<NoteHash, 16>, ClaimedLengthArray<Nullifier, 16>, ClaimedLengthArray<PrivateCallRequest, 8>, ClaimedLengthArray<CountedPublicCallRequest, 32>, PublicCallRequest, ClaimedLengthArray<CountedL2ToL1Message, 8>, ClaimedLengthArray<PrivateLogData, 16>, ClaimedLengthArray<CountedLogHash, 1>, Fr, Fr, BlockHeader, TxContext];
225
225
  /**
226
226
  * Serialize this as a buffer.
227
227
  * @returns The buffer.
@@ -16,7 +16,7 @@ export declare class PrivateToPublicAccumulatedData {
16
16
  readonly publicCallRequests: Tuple<PublicCallRequest, typeof MAX_ENQUEUED_CALLS_PER_TX>;
17
17
  constructor(noteHashes: Tuple<Fr, typeof MAX_NOTE_HASHES_PER_TX>, nullifiers: Tuple<Fr, typeof MAX_NULLIFIERS_PER_TX>, l2ToL1Msgs: Tuple<ScopedL2ToL1Message, typeof MAX_L2_TO_L1_MSGS_PER_TX>, privateLogs: Tuple<PrivateLog, typeof MAX_PRIVATE_LOGS_PER_TX>, contractClassLogsHashes: Tuple<ScopedLogHash, typeof MAX_CONTRACT_CLASS_LOGS_PER_TX>, publicCallRequests: Tuple<PublicCallRequest, typeof MAX_ENQUEUED_CALLS_PER_TX>);
18
18
  getSize(): number;
19
- static getFields(fields: FieldsOf<PrivateToPublicAccumulatedData>): readonly [[Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message], [PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog], [ScopedLogHash], [PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest]];
19
+ static getFields(fields: FieldsOf<PrivateToPublicAccumulatedData>): readonly [[Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message], [PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog], [ScopedLogHash], [PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest, PublicCallRequest]];
20
20
  static fromFields(fields: Fr[] | FieldReader): PrivateToPublicAccumulatedData;
21
21
  static from(fields: FieldsOf<PrivateToPublicAccumulatedData>): PrivateToPublicAccumulatedData;
22
22
  static fromBuffer(buffer: Buffer | BufferReader): PrivateToPublicAccumulatedData;
@@ -54,7 +54,7 @@ export declare class PrivateToRollupAccumulatedData {
54
54
  */
55
55
  contractClassLogsHashes: Tuple<ScopedLogHash, typeof MAX_CONTRACT_CLASS_LOGS_PER_TX>);
56
56
  getSize(): number;
57
- static getFields(fields: FieldsOf<PrivateToRollupAccumulatedData>): readonly [[Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message], [PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog], [ScopedLogHash]];
57
+ static getFields(fields: FieldsOf<PrivateToRollupAccumulatedData>): readonly [[Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message, ScopedL2ToL1Message], [PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog, PrivateLog], [ScopedLogHash]];
58
58
  static from(fields: FieldsOf<PrivateToRollupAccumulatedData>): PrivateToRollupAccumulatedData;
59
59
  static get schema(): import("zod").ZodType<PrivateToRollupAccumulatedData, any, string>;
60
60
  toJSON(): Buffer<ArrayBufferLike>;
@@ -1,6 +1,5 @@
1
1
  import { Fq, Fr, GrumpkinScalar } from '@aztec/foundation/fields';
2
2
  import { AztecAddress } from '../aztec-address/index.js';
3
- import type { CompleteAddress } from '../contract/complete_address.js';
4
3
  import type { KeyPrefix } from './key_types.js';
5
4
  import { PublicKeys } from './public_keys.js';
6
5
  export declare function computeAppNullifierSecretKey(masterNullifierSecretKey: GrumpkinScalar, app: AztecAddress): Promise<Fr>;
@@ -26,5 +25,4 @@ export declare function deriveKeys(secretKey: Fr): Promise<{
26
25
  masterTaggingSecretKey: Fq;
27
26
  publicKeys: PublicKeys;
28
27
  }>;
29
- export declare function computeAppTaggingSecret(knownAddress: CompleteAddress, ivsk: Fq, externalAddress: AztecAddress, app: AztecAddress): Promise<Fr>;
30
28
  //# sourceMappingURL=derivation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"derivation.d.ts","sourceRoot":"","sources":["../../src/keys/derivation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C,wBAAgB,4BAA4B,CAAC,wBAAwB,EAAE,cAAc,EAAE,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,EAAE,CAAC,CAErH;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,EAAE,CAAC,CAG7G;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,cAAc,EAAE,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,EAAE,CAAC,CAKzF;AAED,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,EAAE,GAAG,cAAc,CAE5E;AAED,wBAAgB,oCAAoC,CAAC,SAAS,EAAE,EAAE,GAAG,cAAc,CAElF;AAED,wBAAgB,oCAAoC,CAAC,SAAS,EAAE,EAAE,GAAG,c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E,CAAC,CAKzF;AAED,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,EAAE,GAAG,cAAc,CAE5E;AAED,wBAAgB,oCAAoC,CAAC,SAAS,EAAE,EAAE,GAAG,cAAc,CAElF;AAED,wBAAgB,oCAAoC,CAAC,SAAS,EAAE,EAAE,GAAG,cAAc,CAElF;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,EAAE,GAAG,cAAc,CAG9D;AAED,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,eAEvE;AAED,wBAAsB,cAAc,CAAC,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAYtG;AAED,wBAAsB,oBAAoB,CAAC,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,eAoBlE;AAED,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,EAAE,qDAGzD;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,SAAS,EAAE,EAAE;;;;;;GA6B7C"}
@@ -1,5 +1,5 @@
1
1
  import { GeneratorIndex } from '@aztec/constants';
2
- import { Grumpkin, poseidon2Hash, poseidon2HashWithSeparator, sha512ToGrumpkinScalar } from '@aztec/foundation/crypto';
2
+ import { Grumpkin, poseidon2HashWithSeparator, sha512ToGrumpkinScalar } from '@aztec/foundation/crypto';
3
3
  import { Fq, Fr, GrumpkinScalar } from '@aztec/foundation/fields';
4
4
  import { AztecAddress } from '../aztec-address/index.js';
5
5
  import { PublicKeys } from './public_keys.js';
@@ -113,23 +113,3 @@ export function derivePublicKeyFromSecretKey(secretKey) {
113
113
  publicKeys
114
114
  };
115
115
  }
116
- // Returns shared tagging secret computed with Diffie-Hellman key exchange.
117
- async function computeTaggingSecretPoint(knownAddress, ivsk, externalAddress) {
118
- const knownPreaddress = await computePreaddress(await knownAddress.publicKeys.hash(), knownAddress.partialAddress);
119
- // TODO: #8970 - Computation of address point from x coordinate might fail
120
- const externalAddressPoint = await externalAddress.toAddressPoint();
121
- const curve = new Grumpkin();
122
- // Given A (known complete address) -> B (external address) and h == preaddress
123
- // Compute shared secret as S = (h_A + ivsk_A) * Addr_Point_B
124
- // Beware! h_a + ivsk_a (also known as the address secret) can lead to an address point with a negative y-coordinate, since there's two possible candidates
125
- // computeAddressSecret takes care of selecting the one that leads to a positive y-coordinate, which is the only valid address point
126
- return curve.mul(externalAddressPoint, await computeAddressSecret(knownPreaddress, ivsk));
127
- }
128
- export async function computeAppTaggingSecret(knownAddress, ivsk, externalAddress, app) {
129
- const taggingSecretPoint = await computeTaggingSecretPoint(knownAddress, ivsk, externalAddress);
130
- return poseidon2Hash([
131
- taggingSecretPoint.x,
132
- taggingSecretPoint.y,
133
- app
134
- ]);
135
- }
@@ -0,0 +1,40 @@
1
+ import { type Fq, Fr } from '@aztec/foundation/fields';
2
+ import { z } from 'zod';
3
+ import type { AztecAddress } from '../aztec-address/index.js';
4
+ import type { CompleteAddress } from '../contract/complete_address.js';
5
+ /**
6
+ * Directional application tagging secret used for log tagging.
7
+ *
8
+ * "Directional" because the derived secret is bound to the recipient
9
+ * address: A→B differs from B→A even with the same participants and app.
10
+ *
11
+ * Note: It's a bit unfortunate that this type resides in `stdlib` as the rest of the tagging functionality resides
12
+ * in `pxe/src/tagging`. We need to use this type in `IndexedTaggingSecret` that in turn is used by other types
13
+ * in stdlib hence there doesn't seem to be a good way around this.
14
+ */
15
+ export declare class DirectionalAppTaggingSecret {
16
+ readonly value: Fr;
17
+ private constructor();
18
+ /**
19
+ * Derives shared tagging secret and from that, the app address and recipient derives the directional app tagging
20
+ * secret.
21
+ *
22
+ * @param localAddress - The complete address of entity A in the shared tagging secret derivation scheme
23
+ * @param localIvsk - The incoming viewing secret key of entity A
24
+ * @param externalAddress - The address of entity B in the shared tagging secret derivation scheme
25
+ * @param app - Contract address to silo the secret to
26
+ * @param recipient - Recipient of the log. Defines the "direction of the secret".
27
+ * @returns The secret that can be used along with an index to compute a tag to be included in a log.
28
+ */
29
+ static compute(localAddress: CompleteAddress, localIvsk: Fq, externalAddress: AztecAddress, app: AztecAddress, recipient: AztecAddress): Promise<DirectionalAppTaggingSecret>;
30
+ toString(): string;
31
+ static fromString(str: string): DirectionalAppTaggingSecret;
32
+ }
33
+ export declare const DirectionalAppTaggingSecretSchema: z.ZodObject<{
34
+ value: z.ZodType<Fr, any, string>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ value: Fr;
37
+ }, {
38
+ value: string;
39
+ }>;
40
+ //# sourceMappingURL=directional_app_tagging_secret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"directional_app_tagging_secret.d.ts","sourceRoot":"","sources":["../../src/logs/directional_app_tagging_secret.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,EAAc,MAAM,0BAA0B,CAAC;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAGvE;;;;;;;;;GASG;AACH,qBAAa,2BAA2B;aACF,KAAK,EAAE,EAAE;IAA7C,OAAO;IAEP;;;;;;;;;;OAUG;WACU,OAAO,CAClB,YAAY,EAAE,eAAe,EAC7B,SAAS,EAAE,EAAE,EACb,eAAe,EAAE,YAAY,EAC7B,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,YAAY,GACtB,OAAO,CAAC,2BAA2B,CAAC;IAQvC,QAAQ,IAAI,MAAM;IAIlB,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,2BAA2B;CAG5D;AAqBD,eAAO,MAAM,iCAAiC;;;;;;EAE5C,CAAC"}
@@ -0,0 +1,64 @@
1
+ import { Grumpkin, poseidon2Hash } from '@aztec/foundation/crypto';
2
+ import { Fr } from '@aztec/foundation/fields';
3
+ import { z } from 'zod';
4
+ import { computeAddressSecret, computePreaddress } from '../keys/derivation.js';
5
+ /**
6
+ * Directional application tagging secret used for log tagging.
7
+ *
8
+ * "Directional" because the derived secret is bound to the recipient
9
+ * address: A→B differs from B→A even with the same participants and app.
10
+ *
11
+ * Note: It's a bit unfortunate that this type resides in `stdlib` as the rest of the tagging functionality resides
12
+ * in `pxe/src/tagging`. We need to use this type in `IndexedTaggingSecret` that in turn is used by other types
13
+ * in stdlib hence there doesn't seem to be a good way around this.
14
+ */ export class DirectionalAppTaggingSecret {
15
+ value;
16
+ constructor(value){
17
+ this.value = value;
18
+ }
19
+ /**
20
+ * Derives shared tagging secret and from that, the app address and recipient derives the directional app tagging
21
+ * secret.
22
+ *
23
+ * @param localAddress - The complete address of entity A in the shared tagging secret derivation scheme
24
+ * @param localIvsk - The incoming viewing secret key of entity A
25
+ * @param externalAddress - The address of entity B in the shared tagging secret derivation scheme
26
+ * @param app - Contract address to silo the secret to
27
+ * @param recipient - Recipient of the log. Defines the "direction of the secret".
28
+ * @returns The secret that can be used along with an index to compute a tag to be included in a log.
29
+ */ static async compute(localAddress, localIvsk, externalAddress, app, recipient) {
30
+ const taggingSecretPoint = await computeSharedTaggingSecret(localAddress, localIvsk, externalAddress);
31
+ const appTaggingSecret = await poseidon2Hash([
32
+ taggingSecretPoint.x,
33
+ taggingSecretPoint.y,
34
+ app
35
+ ]);
36
+ const directionalAppTaggingSecret = await poseidon2Hash([
37
+ appTaggingSecret,
38
+ recipient
39
+ ]);
40
+ return new DirectionalAppTaggingSecret(directionalAppTaggingSecret);
41
+ }
42
+ toString() {
43
+ return this.value.toString();
44
+ }
45
+ static fromString(str) {
46
+ return new DirectionalAppTaggingSecret(Fr.fromString(str));
47
+ }
48
+ }
49
+ // Returns shared tagging secret computed with Diffie-Hellman key exchange.
50
+ async function computeSharedTaggingSecret(localAddress, localIvsk, externalAddress) {
51
+ const knownPreaddress = await computePreaddress(await localAddress.publicKeys.hash(), localAddress.partialAddress);
52
+ // TODO: #8970 - Computation of address point from x coordinate might fail
53
+ const externalAddressPoint = await externalAddress.toAddressPoint();
54
+ const curve = new Grumpkin();
55
+ // Given A (local complete address) -> B (external address) and h == preaddress
56
+ // Compute shared secret as S = (h_A + local_ivsk_A) * Addr_Point_B
57
+ // Beware! h_a + local_ivsk_a (also known as the address secret) can lead to an address point with a negative
58
+ // y-coordinate, since there's two possible candidates computeAddressSecret takes care of selecting the one that
59
+ // leads to a positive y-coordinate, which is the only valid address point
60
+ return curve.mul(externalAddressPoint, await computeAddressSecret(knownPreaddress, localIvsk));
61
+ }
62
+ export const DirectionalAppTaggingSecretSchema = z.object({
63
+ value: Fr.schema
64
+ });
@@ -1,4 +1,5 @@
1
1
  export * from './log_with_tx_data.js';
2
+ export * from './directional_app_tagging_secret.js';
2
3
  export * from './indexed_tagging_secret.js';
3
4
  export * from './contract_class_log.js';
4
5
  export * from './public_log.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/logs/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/logs/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './log_with_tx_data.js';
2
+ export * from './directional_app_tagging_secret.js';
2
3
  export * from './indexed_tagging_secret.js';
3
4
  export * from './contract_class_log.js';
4
5
  export * from './public_log.js';
@@ -1,28 +1,34 @@
1
- import { Fr } from '@aztec/foundation/fields';
2
- import type { AztecAddress } from '../aztec-address/index.js';
3
- export declare class IndexedTaggingSecret {
4
- appTaggingSecret: Fr;
1
+ import { z } from 'zod';
2
+ import { type DirectionalAppTaggingSecret } from './directional_app_tagging_secret.js';
3
+ /**
4
+ * Represents a preimage of a private log tag (see `Tag` in `pxe/src/tagging`).
5
+ *
6
+ * Note: It's a bit unfortunate that this type resides in `stdlib` as the rest of the tagging functionality resides
7
+ * in `pxe/src/tagging`. But this type is used by other types in stdlib hence there doesn't seem to be a good way
8
+ * around this.
9
+ */
10
+ export type IndexedTaggingSecret = {
11
+ secret: DirectionalAppTaggingSecret;
5
12
  index: number;
6
- constructor(appTaggingSecret: Fr, index: number);
7
- toFields(): Fr[];
8
- static fromFields(serialized: Fr[]): IndexedTaggingSecret;
9
- /**
10
- * Computes the tag based on the app tagging secret, recipient and index.
11
- * @dev By including the recipient we achieve "directionality" of the tag (when sending a note in the other
12
- * direction, the tag will be different).
13
- * @param recipient The recipient of the note
14
- * @returns The tag.
15
- */
16
- computeTag(recipient: AztecAddress): Promise<Fr>;
17
- /**
18
- * Computes the siloed tag.
19
- * @dev We do this second layer of siloing (one was already done as the tagging secret is app-siloed) because kernels
20
- * do that to protect against contract impersonation attacks. This extra layer of siloing in kernels ensures that
21
- * a malicious contract cannot emit a note with a tag corresponding to another contract.
22
- * @param recipient The recipient of the note
23
- * @param app The app address
24
- * @returns The siloed tag.
25
- */
26
- computeSiloedTag(recipient: AztecAddress, app: AztecAddress): Promise<Fr>;
27
- }
13
+ };
14
+ export declare const IndexedTaggingSecretSchema: z.ZodObject<{
15
+ secret: z.ZodObject<{
16
+ value: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ value: import("@aztec/foundation/schemas").Fr;
19
+ }, {
20
+ value: string;
21
+ }>;
22
+ index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ secret: {
25
+ value: import("@aztec/foundation/schemas").Fr;
26
+ };
27
+ index: number;
28
+ }, {
29
+ secret: {
30
+ value: string;
31
+ };
32
+ index: string | number | bigint;
33
+ }>;
28
34
  //# sourceMappingURL=indexed_tagging_secret.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"indexed_tagging_secret.d.ts","sourceRoot":"","sources":["../../src/logs/indexed_tagging_secret.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,qBAAa,oBAAoB;IAEtB,gBAAgB,EAAE,EAAE;IACpB,KAAK,EAAE,MAAM;gBADb,gBAAgB,EAAE,EAAE,EACpB,KAAK,EAAE,MAAM;IAOtB,QAAQ,IAAI,EAAE,EAAE;IAIhB,MAAM,CAAC,UAAU,CAAC,UAAU,EAAE,EAAE,EAAE;IAIlC;;;;;;OAMG;IACH,UAAU,CAAC,SAAS,EAAE,YAAY;IAIlC;;;;;;;;OAQG;IACG,gBAAgB,CAAC,SAAS,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY;CAIlE"}
1
+ {"version":3,"file":"indexed_tagging_secret.d.ts","sourceRoot":"","sources":["../../src/logs/indexed_tagging_secret.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,qCAAqC,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,2BAA2B,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;EAGrC,CAAC"}
@@ -1,50 +1,7 @@
1
- import { poseidon2Hash } from '@aztec/foundation/crypto';
2
- import { Fr } from '@aztec/foundation/fields';
3
- export class IndexedTaggingSecret {
4
- appTaggingSecret;
5
- index;
6
- constructor(appTaggingSecret, index){
7
- this.appTaggingSecret = appTaggingSecret;
8
- this.index = index;
9
- if (index < 0) {
10
- throw new Error('IndexedTaggingSecret index out of bounds');
11
- }
12
- }
13
- toFields() {
14
- return [
15
- this.appTaggingSecret,
16
- new Fr(this.index)
17
- ];
18
- }
19
- static fromFields(serialized) {
20
- return new this(serialized[0], serialized[1].toNumber());
21
- }
22
- /**
23
- * Computes the tag based on the app tagging secret, recipient and index.
24
- * @dev By including the recipient we achieve "directionality" of the tag (when sending a note in the other
25
- * direction, the tag will be different).
26
- * @param recipient The recipient of the note
27
- * @returns The tag.
28
- */ computeTag(recipient) {
29
- return poseidon2Hash([
30
- this.appTaggingSecret,
31
- recipient,
32
- this.index
33
- ]);
34
- }
35
- /**
36
- * Computes the siloed tag.
37
- * @dev We do this second layer of siloing (one was already done as the tagging secret is app-siloed) because kernels
38
- * do that to protect against contract impersonation attacks. This extra layer of siloing in kernels ensures that
39
- * a malicious contract cannot emit a note with a tag corresponding to another contract.
40
- * @param recipient The recipient of the note
41
- * @param app The app address
42
- * @returns The siloed tag.
43
- */ async computeSiloedTag(recipient, app) {
44
- const tag = await this.computeTag(recipient);
45
- return poseidon2Hash([
46
- app,
47
- tag
48
- ]);
49
- }
50
- }
1
+ import { schemas } from '@aztec/foundation/schemas';
2
+ import { z } from 'zod';
3
+ import { DirectionalAppTaggingSecretSchema } from './directional_app_tagging_secret.js';
4
+ export const IndexedTaggingSecretSchema = z.object({
5
+ secret: DirectionalAppTaggingSecretSchema,
6
+ index: schemas.Integer
7
+ });
@@ -52,6 +52,8 @@ interface NoirFunctionEntry {
52
52
  export interface NoirCompiledContract {
53
53
  /** The name of the contract. */
54
54
  name: string;
55
+ /** Is the contract's public bytecode transpiled? */
56
+ transpiled?: boolean;
55
57
  /** The functions of the contract. */
56
58
  functions: NoirFunctionEntry[];
57
59
  /** The events of the contract */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/noir/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,sBAAsB,EACtB,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,SAAS,EACV,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAC/C,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,wBAAwB,aAAa,CAAC;AACnD,eAAO,MAAM,2BAA2B,gBAAgB,CAAC;AACzD,eAAO,MAAM,oBAAoB,SAAS,CAAC;AAE3C,uCAAuC;AACvC,MAAM,WAAW,eAAe;IAC9B,sCAAsC;IACtC,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,uCAAuC;IACvC,WAAW,EAAE;QACX;;WAEG;QACH,QAAQ,EAAE,OAAO,CAAC;QAClB;;WAEG;QACH,UAAU,EAAE,sBAAsB,CAAC;KACpC,CAAC;IACF,8CAA8C;IAC9C,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;CACpD;AAED;;GAEG;AACH,UAAU,iBAAiB;IACzB,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;I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,+BAA+B;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,EAAE,eAAe,CAAC;IACrB,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,eAAe,EAAE;QACf,yBAAyB;QACzB,KAAK,EAAE,MAAM,CAAC;QACd,iCAAiC;QACjC,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,4BAA4B;QAC5B,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,4DAA4D;IAC5D,aAAa,EAAE,MAAM,CAAC;IACtB,kEAAkE;IAClE,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;IACtE,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,aAAa,EAAE,SAAS,EAAE,CAAC;IAC3B;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,QAAQ,EAAE,oBAAoB,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,gCAAgC,GAAG,+BAA+B,CAAC;AAEvG;;GAEG;AACH,wBAAgB,kCAAkC,CAChD,QAAQ,EAAE,qBAAqB,GAC9B,QAAQ,IAAI,gCAAgC,CAE9C;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,QAAQ,EAAE,qBAAqB,GAC9B,QAAQ,IAAI,+BAA+B,CAE7C"}
@@ -69,7 +69,7 @@ export declare class PrivateBaseRollupHints {
69
69
  */
70
70
  constants: BlockConstantData);
71
71
  static from(fields: FieldsOf<PrivateBaseRollupHints>): PrivateBaseRollupHints;
72
- static getFields(fields: FieldsOf<PrivateBaseRollupHints>): readonly [PartialStateReference, SpongeBlob, TreeSnapshotDiffHints, PublicDataTreeLeafPreimage, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [ContractClassLogFields], BlockConstantData];
72
+ static getFields(fields: FieldsOf<PrivateBaseRollupHints>): readonly [PartialStateReference, SpongeBlob, TreeSnapshotDiffHints, PublicDataTreeLeafPreimage, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [ContractClassLogFields], BlockConstantData];
73
73
  /**
74
74
  * Serializes the inputs to a buffer.
75
75
  * @returns The inputs serialized to a buffer.
@@ -119,7 +119,7 @@ export declare class PublicBaseRollupHints {
119
119
  */
120
120
  contractClassLogsFields: Tuple<ContractClassLogFields, typeof MAX_CONTRACT_CLASS_LOGS_PER_TX>);
121
121
  static from(fields: FieldsOf<PublicBaseRollupHints>): PublicBaseRollupHints;
122
- static getFields(fields: FieldsOf<PublicBaseRollupHints>): readonly [SpongeBlob, AppendOnlyTreeSnapshot, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [ContractClassLogFields]];
122
+ static getFields(fields: FieldsOf<PublicBaseRollupHints>): readonly [SpongeBlob, AppendOnlyTreeSnapshot, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [ContractClassLogFields]];
123
123
  /**
124
124
  * Serializes the inputs to a buffer.
125
125
  * @returns The inputs serialized to a buffer.
@@ -53,7 +53,7 @@ export declare class BlockRootFirstRollupPrivateInputs {
53
53
  */
54
54
  newArchiveSiblingPath: Tuple<Fr, typeof ARCHIVE_HEIGHT>);
55
55
  static from(fields: FieldsOf<BlockRootFirstRollupPrivateInputs>): BlockRootFirstRollupPrivateInputs;
56
- static getFields(fields: FieldsOf<BlockRootFirstRollupPrivateInputs>): readonly [UltraHonkProofData<ParityPublicInputs>, [RollupHonkProofData<TxRollupPublicInputs>, RollupHonkProofData<TxRollupPublicInputs>], AppendOnlyTreeSnapshot, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
56
+ static getFields(fields: FieldsOf<BlockRootFirstRollupPrivateInputs>): readonly [UltraHonkProofData<ParityPublicInputs>, [RollupHonkProofData<TxRollupPublicInputs>, RollupHonkProofData<TxRollupPublicInputs>], AppendOnlyTreeSnapshot, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
57
57
  toBuffer(): Buffer<ArrayBufferLike>;
58
58
  static fromBuffer(buffer: Buffer | BufferReader): BlockRootFirstRollupPrivateInputs;
59
59
  toJSON(): Buffer<ArrayBufferLike>;
@@ -102,7 +102,7 @@ export declare class BlockRootSingleTxFirstRollupPrivateInputs {
102
102
  */
103
103
  newArchiveSiblingPath: Tuple<Fr, typeof ARCHIVE_HEIGHT>);
104
104
  static from(fields: FieldsOf<BlockRootSingleTxFirstRollupPrivateInputs>): BlockRootSingleTxFirstRollupPrivateInputs;
105
- static getFields(fields: FieldsOf<BlockRootSingleTxFirstRollupPrivateInputs>): readonly [UltraHonkProofData<ParityPublicInputs>, RollupHonkProofData<TxRollupPublicInputs>, AppendOnlyTreeSnapshot, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
105
+ static getFields(fields: FieldsOf<BlockRootSingleTxFirstRollupPrivateInputs>): readonly [UltraHonkProofData<ParityPublicInputs>, RollupHonkProofData<TxRollupPublicInputs>, AppendOnlyTreeSnapshot, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
106
106
  toBuffer(): Buffer<ArrayBufferLike>;
107
107
  static fromBuffer(buffer: Buffer | BufferReader): BlockRootSingleTxFirstRollupPrivateInputs;
108
108
  toJSON(): Buffer<ArrayBufferLike>;
@@ -177,7 +177,7 @@ export declare class BlockRootEmptyTxFirstRollupPrivateInputs {
177
177
  */
178
178
  newArchiveSiblingPath: Tuple<Fr, typeof ARCHIVE_HEIGHT>);
179
179
  static from(fields: FieldsOf<BlockRootEmptyTxFirstRollupPrivateInputs>): BlockRootEmptyTxFirstRollupPrivateInputs;
180
- static getFields(fields: FieldsOf<BlockRootEmptyTxFirstRollupPrivateInputs>): readonly [UltraHonkProofData<ParityPublicInputs>, AppendOnlyTreeSnapshot, StateReference, CheckpointConstantData, SpongeBlob, bigint, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
180
+ static getFields(fields: FieldsOf<BlockRootEmptyTxFirstRollupPrivateInputs>): readonly [UltraHonkProofData<ParityPublicInputs>, AppendOnlyTreeSnapshot, StateReference, CheckpointConstantData, SpongeBlob, bigint, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
181
181
  toBuffer(): Buffer<ArrayBufferLike>;
182
182
  static fromBuffer(buffer: Buffer | BufferReader): BlockRootEmptyTxFirstRollupPrivateInputs;
183
183
  toJSON(): Buffer<ArrayBufferLike>;
@@ -202,7 +202,7 @@ export declare class BlockRootRollupPrivateInputs {
202
202
  */
203
203
  newArchiveSiblingPath: Tuple<Fr, typeof ARCHIVE_HEIGHT>);
204
204
  static from(fields: FieldsOf<BlockRootRollupPrivateInputs>): BlockRootRollupPrivateInputs;
205
- static getFields(fields: FieldsOf<BlockRootRollupPrivateInputs>): readonly [[RollupHonkProofData<TxRollupPublicInputs>, RollupHonkProofData<TxRollupPublicInputs>], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
205
+ static getFields(fields: FieldsOf<BlockRootRollupPrivateInputs>): readonly [[RollupHonkProofData<TxRollupPublicInputs>, RollupHonkProofData<TxRollupPublicInputs>], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
206
206
  toBuffer(): Buffer<ArrayBufferLike>;
207
207
  static fromBuffer(buffer: Buffer | BufferReader): BlockRootRollupPrivateInputs;
208
208
  toJSON(): Buffer<ArrayBufferLike>;
@@ -227,7 +227,7 @@ export declare class BlockRootSingleTxRollupPrivateInputs {
227
227
  */
228
228
  newArchiveSiblingPath: Tuple<Fr, typeof ARCHIVE_HEIGHT>);
229
229
  static from(fields: FieldsOf<BlockRootSingleTxRollupPrivateInputs>): BlockRootSingleTxRollupPrivateInputs;
230
- static getFields(fields: FieldsOf<BlockRootSingleTxRollupPrivateInputs>): readonly [RollupHonkProofData<TxRollupPublicInputs>, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
230
+ static getFields(fields: FieldsOf<BlockRootSingleTxRollupPrivateInputs>): readonly [RollupHonkProofData<TxRollupPublicInputs>, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
231
231
  toBuffer(): Buffer<ArrayBufferLike>;
232
232
  static fromBuffer(buffer: Buffer | BufferReader): BlockRootSingleTxRollupPrivateInputs;
233
233
  toJSON(): Buffer<ArrayBufferLike>;
@@ -92,6 +92,7 @@ export declare class FeeRecipient {
92
92
  toBuffer(): Buffer<ArrayBufferLike>;
93
93
  static getFields(fields: FieldsOf<FeeRecipient>): readonly [EthAddress, Fr];
94
94
  toFields(): Fr[];
95
+ static empty(): FeeRecipient;
95
96
  isEmpty(): boolean;
96
97
  toFriendlyJSON(): {
97
98
  recipient?: undefined;