@aztec/stdlib 4.0.0-spartan.20260217 → 4.0.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 (149) hide show
  1. package/dest/abi/decoder.d.ts +1 -1
  2. package/dest/abi/decoder.d.ts.map +1 -1
  3. package/dest/abi/decoder.js +1 -4
  4. package/dest/abi/encoder.d.ts +1 -1
  5. package/dest/abi/encoder.d.ts.map +1 -1
  6. package/dest/abi/encoder.js +9 -5
  7. package/dest/auth_witness/auth_witness.js +3 -3
  8. package/dest/avm/revert_code.d.ts +16 -1
  9. package/dest/avm/revert_code.d.ts.map +1 -1
  10. package/dest/avm/revert_code.js +15 -5
  11. package/dest/block/l2_block_stream/l2_block_stream.d.ts +1 -1
  12. package/dest/block/l2_block_stream/l2_block_stream.d.ts.map +1 -1
  13. package/dest/block/l2_block_stream/l2_block_stream.js +10 -0
  14. package/dest/config/sequencer-config.d.ts +5 -3
  15. package/dest/config/sequencer-config.d.ts.map +1 -1
  16. package/dest/config/sequencer-config.js +13 -0
  17. package/dest/contract/contract_address.js +4 -4
  18. package/dest/contract/contract_class.d.ts +2 -3
  19. package/dest/contract/contract_class.d.ts.map +1 -1
  20. package/dest/contract/contract_class_id.js +3 -3
  21. package/dest/contract/private_function.js +2 -2
  22. package/dest/file-store/local.d.ts +3 -3
  23. package/dest/file-store/local.d.ts.map +1 -1
  24. package/dest/file-store/local.js +13 -4
  25. package/dest/file-store/s3.d.ts +1 -1
  26. package/dest/file-store/s3.d.ts.map +1 -1
  27. package/dest/file-store/s3.js +11 -3
  28. package/dest/hash/hash.js +11 -11
  29. package/dest/hash/map_slot.js +2 -2
  30. package/dest/interfaces/aztec-node-admin.d.ts +27 -5
  31. package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
  32. package/dest/interfaces/aztec-node-admin.js +9 -3
  33. package/dest/interfaces/configs.d.ts +7 -2
  34. package/dest/interfaces/configs.d.ts.map +1 -1
  35. package/dest/interfaces/configs.js +1 -0
  36. package/dest/interfaces/merkle_tree_operations.d.ts +2 -2
  37. package/dest/interfaces/merkle_tree_operations.d.ts.map +1 -1
  38. package/dest/interfaces/validator.d.ts +5 -2
  39. package/dest/interfaces/validator.d.ts.map +1 -1
  40. package/dest/interfaces/validator.js +1 -0
  41. package/dest/kernel/hints/index.d.ts +2 -2
  42. package/dest/kernel/hints/index.js +2 -2
  43. package/dest/kernel/hints/key_validation_request_and_separator.d.ts +24 -0
  44. package/dest/kernel/hints/key_validation_request_and_separator.d.ts.map +1 -0
  45. package/dest/kernel/hints/{key_validation_request_and_generator.js → key_validation_request_and_separator.js} +12 -15
  46. package/dest/kernel/hints/{scoped_key_validation_request_and_generator.d.ts → scoped_key_validation_request_and_separator.d.ts} +8 -8
  47. package/dest/kernel/hints/{scoped_key_validation_request_and_generator.d.ts.map → scoped_key_validation_request_and_separator.d.ts.map} +1 -1
  48. package/dest/kernel/hints/{scoped_key_validation_request_and_generator.js → scoped_key_validation_request_and_separator.js} +6 -6
  49. package/dest/kernel/private_circuit_public_inputs.d.ts +6 -6
  50. package/dest/kernel/private_circuit_public_inputs.js +11 -11
  51. package/dest/kernel/private_to_public_kernel_circuit_public_inputs.js +2 -2
  52. package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.js +2 -2
  53. package/dest/kernel/private_validation_requests.d.ts +3 -3
  54. package/dest/kernel/private_validation_requests.js +9 -9
  55. package/dest/keys/derivation.js +8 -8
  56. package/dest/keys/key_types.d.ts +3 -3
  57. package/dest/keys/key_types.d.ts.map +1 -1
  58. package/dest/keys/public_keys.js +2 -2
  59. package/dest/keys/utils.js +5 -5
  60. package/dest/logs/debug_log_store.d.ts +30 -0
  61. package/dest/logs/debug_log_store.d.ts.map +1 -0
  62. package/dest/logs/debug_log_store.js +30 -0
  63. package/dest/logs/extended_directional_app_tagging_secret.d.ts +47 -0
  64. package/dest/logs/extended_directional_app_tagging_secret.d.ts.map +1 -0
  65. package/dest/logs/{directional_app_tagging_secret.js → extended_directional_app_tagging_secret.js} +23 -15
  66. package/dest/logs/index.d.ts +3 -2
  67. package/dest/logs/index.d.ts.map +1 -1
  68. package/dest/logs/index.js +2 -1
  69. package/dest/logs/pre_tag.d.ts +16 -11
  70. package/dest/logs/pre_tag.d.ts.map +1 -1
  71. package/dest/logs/pre_tag.js +2 -2
  72. package/dest/logs/private_log.d.ts +2 -2
  73. package/dest/logs/private_log.d.ts.map +1 -1
  74. package/dest/logs/siloed_tag.d.ts +5 -3
  75. package/dest/logs/siloed_tag.d.ts.map +1 -1
  76. package/dest/logs/siloed_tag.js +6 -1
  77. package/dest/logs/tag.js +1 -1
  78. package/dest/p2p/attestation_utils.d.ts +11 -1
  79. package/dest/p2p/attestation_utils.d.ts.map +1 -1
  80. package/dest/p2p/attestation_utils.js +45 -0
  81. package/dest/tests/factories.d.ts +3 -1
  82. package/dest/tests/factories.d.ts.map +1 -1
  83. package/dest/tests/factories.js +18 -10
  84. package/dest/tests/mocks.d.ts +2 -2
  85. package/dest/tests/mocks.d.ts.map +1 -1
  86. package/dest/tests/mocks.js +5 -5
  87. package/dest/tx/block_header.js +2 -2
  88. package/dest/tx/profiling.d.ts +4 -4
  89. package/dest/tx/profiling.d.ts.map +1 -1
  90. package/dest/tx/profiling.js +3 -3
  91. package/dest/tx/protocol_contracts.d.ts +1 -1
  92. package/dest/tx/protocol_contracts.d.ts.map +1 -1
  93. package/dest/tx/protocol_contracts.js +2 -2
  94. package/dest/tx/public_simulation_output.d.ts +4 -2
  95. package/dest/tx/public_simulation_output.d.ts.map +1 -1
  96. package/dest/tx/public_simulation_output.js +7 -3
  97. package/dest/tx/tx_receipt.d.ts +16 -2
  98. package/dest/tx/tx_receipt.d.ts.map +1 -1
  99. package/dest/tx/tx_receipt.js +11 -3
  100. package/dest/tx/tx_request.js +2 -2
  101. package/package.json +9 -9
  102. package/src/abi/decoder.ts +1 -4
  103. package/src/abi/encoder.ts +8 -5
  104. package/src/auth_witness/auth_witness.ts +3 -3
  105. package/src/avm/revert_code.ts +15 -0
  106. package/src/block/l2_block_stream/l2_block_stream.ts +21 -0
  107. package/src/config/sequencer-config.ts +20 -2
  108. package/src/contract/contract_address.ts +4 -4
  109. package/src/contract/contract_class.ts +3 -3
  110. package/src/contract/contract_class_id.ts +3 -3
  111. package/src/contract/private_function.ts +2 -2
  112. package/src/file-store/local.ts +15 -5
  113. package/src/file-store/s3.ts +12 -3
  114. package/src/hash/hash.ts +11 -11
  115. package/src/hash/map_slot.ts +2 -2
  116. package/src/interfaces/aztec-node-admin.ts +23 -0
  117. package/src/interfaces/configs.ts +4 -0
  118. package/src/interfaces/merkle_tree_operations.ts +1 -1
  119. package/src/interfaces/validator.ts +2 -1
  120. package/src/kernel/hints/index.ts +2 -2
  121. package/src/kernel/hints/{key_validation_request_and_generator.ts → key_validation_request_and_separator.ts} +12 -15
  122. package/src/kernel/hints/{scoped_key_validation_request_and_generator.ts → scoped_key_validation_request_and_separator.ts} +10 -10
  123. package/src/kernel/private_circuit_public_inputs.ts +10 -10
  124. package/src/kernel/private_to_public_kernel_circuit_public_inputs.ts +2 -2
  125. package/src/kernel/private_to_rollup_kernel_circuit_public_inputs.ts +2 -2
  126. package/src/kernel/private_validation_requests.ts +8 -8
  127. package/src/keys/derivation.ts +8 -8
  128. package/src/keys/key_types.ts +6 -2
  129. package/src/keys/public_keys.ts +2 -2
  130. package/src/keys/utils.ts +5 -5
  131. package/src/logs/debug_log_store.ts +54 -0
  132. package/src/logs/{directional_app_tagging_secret.ts → extended_directional_app_tagging_secret.ts} +24 -16
  133. package/src/logs/index.ts +2 -1
  134. package/src/logs/pre_tag.ts +5 -5
  135. package/src/logs/siloed_tag.ts +8 -2
  136. package/src/logs/tag.ts +1 -1
  137. package/src/p2p/attestation_utils.ts +56 -0
  138. package/src/tests/factories.ts +20 -11
  139. package/src/tests/mocks.ts +7 -3
  140. package/src/tx/block_header.ts +2 -2
  141. package/src/tx/profiling.ts +5 -5
  142. package/src/tx/protocol_contracts.ts +2 -2
  143. package/src/tx/public_simulation_output.ts +4 -0
  144. package/src/tx/tx_receipt.ts +10 -0
  145. package/src/tx/tx_request.ts +2 -2
  146. package/dest/kernel/hints/key_validation_request_and_generator.d.ts +0 -30
  147. package/dest/kernel/hints/key_validation_request_and_generator.d.ts.map +0 -1
  148. package/dest/logs/directional_app_tagging_secret.d.ts +0 -40
  149. package/dest/logs/directional_app_tagging_secret.d.ts.map +0 -1
@@ -2,7 +2,7 @@ import { MAX_CONTRACT_CLASS_LOGS_PER_CALL, MAX_ENQUEUED_CALLS_PER_CALL, MAX_KEY_
2
2
  import { Fr } from '@aztec/foundation/curves/bn254';
3
3
  import { BufferReader, FieldReader } from '@aztec/foundation/serialize';
4
4
  import type { FieldsOf } from '@aztec/foundation/types';
5
- import { KeyValidationRequestAndGenerator } from '../kernel/hints/key_validation_request_and_generator.js';
5
+ import { KeyValidationRequestAndSeparator } from '../kernel/hints/key_validation_request_and_separator.js';
6
6
  import { CountedLogHash } from '../kernel/log_hash.js';
7
7
  import { PrivateCallRequest } from '../kernel/private_call_request.js';
8
8
  import { PrivateLogData } from '../kernel/private_log_data.js';
@@ -81,9 +81,9 @@ export declare class PrivateCircuitPublicInputs {
81
81
  */
82
82
  nullifierReadRequests: ClaimedLengthArray<ScopedReadRequest, typeof MAX_NULLIFIER_READ_REQUESTS_PER_CALL>;
83
83
  /**
84
- * Key validation requests and generators created by the corresponding function call.
84
+ * Key validation requests and separators created by the corresponding function call.
85
85
  */
86
- keyValidationRequestsAndGenerators: ClaimedLengthArray<KeyValidationRequestAndGenerator, typeof MAX_KEY_VALIDATION_REQUESTS_PER_CALL>;
86
+ keyValidationRequestsAndSeparators: ClaimedLengthArray<KeyValidationRequestAndSeparator, typeof MAX_KEY_VALIDATION_REQUESTS_PER_CALL>;
87
87
  /**
88
88
  * Private call requests made within the current kernel iteration.
89
89
  */
@@ -178,9 +178,9 @@ export declare class PrivateCircuitPublicInputs {
178
178
  */
179
179
  nullifierReadRequests: ClaimedLengthArray<ScopedReadRequest, typeof MAX_NULLIFIER_READ_REQUESTS_PER_CALL>,
180
180
  /**
181
- * Key validation requests and generators created by the corresponding function call.
181
+ * Key validation requests and separators created by the corresponding function call.
182
182
  */
183
- keyValidationRequestsAndGenerators: ClaimedLengthArray<KeyValidationRequestAndGenerator, typeof MAX_KEY_VALIDATION_REQUESTS_PER_CALL>,
183
+ keyValidationRequestsAndSeparators: ClaimedLengthArray<KeyValidationRequestAndSeparator, typeof MAX_KEY_VALIDATION_REQUESTS_PER_CALL>,
184
184
  /**
185
185
  * Private call requests made within the current kernel iteration.
186
186
  */
@@ -237,7 +237,7 @@ export declare class PrivateCircuitPublicInputs {
237
237
  * @param fields - Object with fields.
238
238
  * @returns The array.
239
239
  */
240
- static getFields(fields: FieldsOf<PrivateCircuitPublicInputs>): readonly [CallContext, Fr, Fr, BlockHeader, TxContext, Fr, boolean, bigint, Fr, Fr, Fr, Fr, ClaimedLengthArray<ScopedReadRequest, 16>, ClaimedLengthArray<ScopedReadRequest, 16>, ClaimedLengthArray<KeyValidationRequestAndGenerator, 16>, ClaimedLengthArray<PrivateCallRequest, 8>, ClaimedLengthArray<CountedPublicCallRequest, 32>, PublicCallRequest, ClaimedLengthArray<NoteHash, 16>, ClaimedLengthArray<Nullifier, 16>, ClaimedLengthArray<CountedL2ToL1Message, 8>, ClaimedLengthArray<PrivateLogData, 16>, ClaimedLengthArray<CountedLogHash, 1>];
240
+ static getFields(fields: FieldsOf<PrivateCircuitPublicInputs>): readonly [CallContext, Fr, Fr, BlockHeader, TxContext, Fr, boolean, bigint, Fr, Fr, Fr, Fr, ClaimedLengthArray<ScopedReadRequest, 16>, ClaimedLengthArray<ScopedReadRequest, 16>, ClaimedLengthArray<KeyValidationRequestAndSeparator, 16>, ClaimedLengthArray<PrivateCallRequest, 8>, ClaimedLengthArray<CountedPublicCallRequest, 32>, PublicCallRequest, ClaimedLengthArray<NoteHash, 16>, ClaimedLengthArray<Nullifier, 16>, ClaimedLengthArray<CountedL2ToL1Message, 8>, ClaimedLengthArray<PrivateLogData, 16>, ClaimedLengthArray<CountedLogHash, 1>];
241
241
  /**
242
242
  * Serialize this as a buffer.
243
243
  * @returns The buffer.
@@ -2,7 +2,7 @@ import { MAX_CONTRACT_CLASS_LOGS_PER_CALL, MAX_ENQUEUED_CALLS_PER_CALL, MAX_KEY_
2
2
  import { Fr } from '@aztec/foundation/curves/bn254';
3
3
  import { bufferSchemaFor } from '@aztec/foundation/schemas';
4
4
  import { BufferReader, FieldReader, bigintToUInt64BE, serializeToBuffer, serializeToFields } from '@aztec/foundation/serialize';
5
- import { KeyValidationRequestAndGenerator } from '../kernel/hints/key_validation_request_and_generator.js';
5
+ import { KeyValidationRequestAndSeparator } from '../kernel/hints/key_validation_request_and_separator.js';
6
6
  import { CountedLogHash } from '../kernel/log_hash.js';
7
7
  import { PrivateCallRequest } from '../kernel/private_call_request.js';
8
8
  import { PrivateLogData } from '../kernel/private_log_data.js';
@@ -32,7 +32,7 @@ import { CountedPublicCallRequest, PublicCallRequest } from './public_call_reque
32
32
  expectedRevertibleSideEffectCounter;
33
33
  noteHashReadRequests;
34
34
  nullifierReadRequests;
35
- keyValidationRequestsAndGenerators;
35
+ keyValidationRequestsAndSeparators;
36
36
  privateCallRequests;
37
37
  publicCallRequests;
38
38
  publicTeardownCallRequest;
@@ -74,8 +74,8 @@ import { CountedPublicCallRequest, PublicCallRequest } from './public_call_reque
74
74
  */ noteHashReadRequests, /**
75
75
  * Nullifier read requests created by the corresponding function call.
76
76
  */ nullifierReadRequests, /**
77
- * Key validation requests and generators created by the corresponding function call.
78
- */ keyValidationRequestsAndGenerators, /**
77
+ * Key validation requests and separators created by the corresponding function call.
78
+ */ keyValidationRequestsAndSeparators, /**
79
79
  * Private call requests made within the current kernel iteration.
80
80
  */ privateCallRequests, /**
81
81
  * Public call stack at the current kernel iteration.
@@ -106,7 +106,7 @@ import { CountedPublicCallRequest, PublicCallRequest } from './public_call_reque
106
106
  this.expectedRevertibleSideEffectCounter = expectedRevertibleSideEffectCounter;
107
107
  this.noteHashReadRequests = noteHashReadRequests;
108
108
  this.nullifierReadRequests = nullifierReadRequests;
109
- this.keyValidationRequestsAndGenerators = keyValidationRequestsAndGenerators;
109
+ this.keyValidationRequestsAndSeparators = keyValidationRequestsAndSeparators;
110
110
  this.privateCallRequests = privateCallRequests;
111
111
  this.publicCallRequests = publicCallRequests;
112
112
  this.publicTeardownCallRequest = publicTeardownCallRequest;
@@ -129,20 +129,20 @@ import { CountedPublicCallRequest, PublicCallRequest } from './public_call_reque
129
129
  * @returns The deserialized instance.
130
130
  */ static fromBuffer(buffer) {
131
131
  const reader = BufferReader.asReader(buffer);
132
- return new PrivateCircuitPublicInputs(reader.readObject(CallContext), reader.readObject(Fr), reader.readObject(Fr), reader.readObject(BlockHeader), reader.readObject(TxContext), reader.readObject(Fr), reader.readBoolean(), reader.readUInt64(), reader.readObject(Fr), reader.readObject(Fr), reader.readObject(Fr), reader.readObject(Fr), reader.readObject(ClaimedLengthArrayFromBuffer(ScopedReadRequest, MAX_NOTE_HASH_READ_REQUESTS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromBuffer(ScopedReadRequest, MAX_NULLIFIER_READ_REQUESTS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromBuffer(KeyValidationRequestAndGenerator, MAX_KEY_VALIDATION_REQUESTS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromBuffer(PrivateCallRequest, MAX_PRIVATE_CALL_STACK_LENGTH_PER_CALL)), reader.readObject(ClaimedLengthArrayFromBuffer(CountedPublicCallRequest, MAX_ENQUEUED_CALLS_PER_CALL)), reader.readObject(PublicCallRequest), reader.readObject(ClaimedLengthArrayFromBuffer(NoteHash, MAX_NOTE_HASHES_PER_CALL)), reader.readObject(ClaimedLengthArrayFromBuffer(Nullifier, MAX_NULLIFIERS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromBuffer(CountedL2ToL1Message, MAX_L2_TO_L1_MSGS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromBuffer(PrivateLogData, MAX_PRIVATE_LOGS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromBuffer(CountedLogHash, MAX_CONTRACT_CLASS_LOGS_PER_CALL)));
132
+ return new PrivateCircuitPublicInputs(reader.readObject(CallContext), reader.readObject(Fr), reader.readObject(Fr), reader.readObject(BlockHeader), reader.readObject(TxContext), reader.readObject(Fr), reader.readBoolean(), reader.readUInt64(), reader.readObject(Fr), reader.readObject(Fr), reader.readObject(Fr), reader.readObject(Fr), reader.readObject(ClaimedLengthArrayFromBuffer(ScopedReadRequest, MAX_NOTE_HASH_READ_REQUESTS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromBuffer(ScopedReadRequest, MAX_NULLIFIER_READ_REQUESTS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromBuffer(KeyValidationRequestAndSeparator, MAX_KEY_VALIDATION_REQUESTS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromBuffer(PrivateCallRequest, MAX_PRIVATE_CALL_STACK_LENGTH_PER_CALL)), reader.readObject(ClaimedLengthArrayFromBuffer(CountedPublicCallRequest, MAX_ENQUEUED_CALLS_PER_CALL)), reader.readObject(PublicCallRequest), reader.readObject(ClaimedLengthArrayFromBuffer(NoteHash, MAX_NOTE_HASHES_PER_CALL)), reader.readObject(ClaimedLengthArrayFromBuffer(Nullifier, MAX_NULLIFIERS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromBuffer(CountedL2ToL1Message, MAX_L2_TO_L1_MSGS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromBuffer(PrivateLogData, MAX_PRIVATE_LOGS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromBuffer(CountedLogHash, MAX_CONTRACT_CLASS_LOGS_PER_CALL)));
133
133
  }
134
134
  static fromFields(fields) {
135
135
  const reader = FieldReader.asReader(fields);
136
- return new PrivateCircuitPublicInputs(reader.readObject(CallContext), reader.readField(), reader.readField(), reader.readObject(BlockHeader), reader.readObject(TxContext), reader.readField(), reader.readBoolean(), reader.readU64(), reader.readField(), reader.readField(), reader.readField(), reader.readField(), reader.readObject(ClaimedLengthArrayFromFields(ScopedReadRequest, MAX_NOTE_HASH_READ_REQUESTS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromFields(ScopedReadRequest, MAX_NULLIFIER_READ_REQUESTS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromFields(KeyValidationRequestAndGenerator, MAX_KEY_VALIDATION_REQUESTS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromFields(PrivateCallRequest, MAX_PRIVATE_CALL_STACK_LENGTH_PER_CALL)), reader.readObject(ClaimedLengthArrayFromFields(CountedPublicCallRequest, MAX_ENQUEUED_CALLS_PER_CALL)), reader.readObject(PublicCallRequest), reader.readObject(ClaimedLengthArrayFromFields(NoteHash, MAX_NOTE_HASHES_PER_CALL)), reader.readObject(ClaimedLengthArrayFromFields(Nullifier, MAX_NULLIFIERS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromFields(CountedL2ToL1Message, MAX_L2_TO_L1_MSGS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromFields(PrivateLogData, MAX_PRIVATE_LOGS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromFields(CountedLogHash, MAX_CONTRACT_CLASS_LOGS_PER_CALL)));
136
+ return new PrivateCircuitPublicInputs(reader.readObject(CallContext), reader.readField(), reader.readField(), reader.readObject(BlockHeader), reader.readObject(TxContext), reader.readField(), reader.readBoolean(), reader.readU64(), reader.readField(), reader.readField(), reader.readField(), reader.readField(), reader.readObject(ClaimedLengthArrayFromFields(ScopedReadRequest, MAX_NOTE_HASH_READ_REQUESTS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromFields(ScopedReadRequest, MAX_NULLIFIER_READ_REQUESTS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromFields(KeyValidationRequestAndSeparator, MAX_KEY_VALIDATION_REQUESTS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromFields(PrivateCallRequest, MAX_PRIVATE_CALL_STACK_LENGTH_PER_CALL)), reader.readObject(ClaimedLengthArrayFromFields(CountedPublicCallRequest, MAX_ENQUEUED_CALLS_PER_CALL)), reader.readObject(PublicCallRequest), reader.readObject(ClaimedLengthArrayFromFields(NoteHash, MAX_NOTE_HASHES_PER_CALL)), reader.readObject(ClaimedLengthArrayFromFields(Nullifier, MAX_NULLIFIERS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromFields(CountedL2ToL1Message, MAX_L2_TO_L1_MSGS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromFields(PrivateLogData, MAX_PRIVATE_LOGS_PER_CALL)), reader.readObject(ClaimedLengthArrayFromFields(CountedLogHash, MAX_CONTRACT_CLASS_LOGS_PER_CALL)));
137
137
  }
138
138
  /**
139
139
  * Create an empty PrivateCircuitPublicInputs.
140
140
  * @returns An empty PrivateCircuitPublicInputs object.
141
141
  */ static empty() {
142
- return new PrivateCircuitPublicInputs(CallContext.empty(), Fr.ZERO, Fr.ZERO, BlockHeader.empty(), TxContext.empty(), Fr.ZERO, false, 0n, Fr.ZERO, Fr.ZERO, Fr.ZERO, Fr.ZERO, ClaimedLengthArray.empty(ScopedReadRequest, MAX_NOTE_HASH_READ_REQUESTS_PER_CALL), ClaimedLengthArray.empty(ScopedReadRequest, MAX_NULLIFIER_READ_REQUESTS_PER_CALL), ClaimedLengthArray.empty(KeyValidationRequestAndGenerator, MAX_KEY_VALIDATION_REQUESTS_PER_CALL), ClaimedLengthArray.empty(PrivateCallRequest, MAX_PRIVATE_CALL_STACK_LENGTH_PER_CALL), ClaimedLengthArray.empty(CountedPublicCallRequest, MAX_ENQUEUED_CALLS_PER_CALL), PublicCallRequest.empty(), ClaimedLengthArray.empty(NoteHash, MAX_NOTE_HASHES_PER_CALL), ClaimedLengthArray.empty(Nullifier, MAX_NULLIFIERS_PER_CALL), ClaimedLengthArray.empty(CountedL2ToL1Message, MAX_L2_TO_L1_MSGS_PER_CALL), ClaimedLengthArray.empty(PrivateLogData, MAX_PRIVATE_LOGS_PER_CALL), ClaimedLengthArray.empty(CountedLogHash, MAX_CONTRACT_CLASS_LOGS_PER_CALL));
142
+ return new PrivateCircuitPublicInputs(CallContext.empty(), Fr.ZERO, Fr.ZERO, BlockHeader.empty(), TxContext.empty(), Fr.ZERO, false, 0n, Fr.ZERO, Fr.ZERO, Fr.ZERO, Fr.ZERO, ClaimedLengthArray.empty(ScopedReadRequest, MAX_NOTE_HASH_READ_REQUESTS_PER_CALL), ClaimedLengthArray.empty(ScopedReadRequest, MAX_NULLIFIER_READ_REQUESTS_PER_CALL), ClaimedLengthArray.empty(KeyValidationRequestAndSeparator, MAX_KEY_VALIDATION_REQUESTS_PER_CALL), ClaimedLengthArray.empty(PrivateCallRequest, MAX_PRIVATE_CALL_STACK_LENGTH_PER_CALL), ClaimedLengthArray.empty(CountedPublicCallRequest, MAX_ENQUEUED_CALLS_PER_CALL), PublicCallRequest.empty(), ClaimedLengthArray.empty(NoteHash, MAX_NOTE_HASHES_PER_CALL), ClaimedLengthArray.empty(Nullifier, MAX_NULLIFIERS_PER_CALL), ClaimedLengthArray.empty(CountedL2ToL1Message, MAX_L2_TO_L1_MSGS_PER_CALL), ClaimedLengthArray.empty(PrivateLogData, MAX_PRIVATE_LOGS_PER_CALL), ClaimedLengthArray.empty(CountedLogHash, MAX_CONTRACT_CLASS_LOGS_PER_CALL));
143
143
  }
144
144
  isEmpty() {
145
- return this.callContext.isEmpty() && this.argsHash.isZero() && this.returnsHash.isZero() && this.anchorBlockHeader.isEmpty() && this.txContext.isEmpty() && this.minRevertibleSideEffectCounter.isZero() && !this.isFeePayer && !this.expirationTimestamp && this.startSideEffectCounter.isZero() && this.endSideEffectCounter.isZero() && this.expectedNonRevertibleSideEffectCounter.isZero() && this.expectedRevertibleSideEffectCounter.isZero() && this.noteHashReadRequests.isEmpty() && this.nullifierReadRequests.isEmpty() && this.keyValidationRequestsAndGenerators.isEmpty() && this.privateCallRequests.isEmpty() && this.publicCallRequests.isEmpty() && this.publicTeardownCallRequest.isEmpty() && this.noteHashes.isEmpty() && this.nullifiers.isEmpty() && this.l2ToL1Msgs.isEmpty() && this.privateLogs.isEmpty() && this.contractClassLogsHashes.isEmpty();
145
+ return this.callContext.isEmpty() && this.argsHash.isZero() && this.returnsHash.isZero() && this.anchorBlockHeader.isEmpty() && this.txContext.isEmpty() && this.minRevertibleSideEffectCounter.isZero() && !this.isFeePayer && !this.expirationTimestamp && this.startSideEffectCounter.isZero() && this.endSideEffectCounter.isZero() && this.expectedNonRevertibleSideEffectCounter.isZero() && this.expectedRevertibleSideEffectCounter.isZero() && this.noteHashReadRequests.isEmpty() && this.nullifierReadRequests.isEmpty() && this.keyValidationRequestsAndSeparators.isEmpty() && this.privateCallRequests.isEmpty() && this.publicCallRequests.isEmpty() && this.publicTeardownCallRequest.isEmpty() && this.noteHashes.isEmpty() && this.nullifiers.isEmpty() && this.l2ToL1Msgs.isEmpty() && this.privateLogs.isEmpty() && this.contractClassLogsHashes.isEmpty();
146
146
  }
147
147
  /**
148
148
  * Serialize into a field array. Low-level utility.
@@ -164,7 +164,7 @@ import { CountedPublicCallRequest, PublicCallRequest } from './public_call_reque
164
164
  fields.expectedRevertibleSideEffectCounter,
165
165
  fields.noteHashReadRequests,
166
166
  fields.nullifierReadRequests,
167
- fields.keyValidationRequestsAndGenerators,
167
+ fields.keyValidationRequestsAndSeparators,
168
168
  fields.privateCallRequests,
169
169
  fields.publicCallRequests,
170
170
  fields.publicTeardownCallRequest,
@@ -196,7 +196,7 @@ import { CountedPublicCallRequest, PublicCallRequest } from './public_call_reque
196
196
  this.expectedRevertibleSideEffectCounter,
197
197
  this.noteHashReadRequests,
198
198
  this.nullifierReadRequests,
199
- this.keyValidationRequestsAndGenerators,
199
+ this.keyValidationRequestsAndSeparators,
200
200
  this.privateCallRequests,
201
201
  this.publicCallRequests,
202
202
  this.publicTeardownCallRequest,
@@ -1,4 +1,4 @@
1
- import { GeneratorIndex, PRIVATE_TO_PUBLIC_KERNEL_CIRCUIT_PUBLIC_INPUTS_LENGTH } from '@aztec/constants';
1
+ import { DomainSeparator, PRIVATE_TO_PUBLIC_KERNEL_CIRCUIT_PUBLIC_INPUTS_LENGTH } from '@aztec/constants';
2
2
  import { poseidon2HashWithSeparator } from '@aztec/foundation/crypto/poseidon';
3
3
  import { bufferSchemaFor } from '@aztec/foundation/schemas';
4
4
  import { BufferReader, bigintToUInt64BE, serializeToBuffer, serializeToFields } from '@aztec/foundation/serialize';
@@ -60,7 +60,7 @@ export class PrivateToPublicKernelCircuitPublicInputs {
60
60
  return fields;
61
61
  }
62
62
  hash() {
63
- return poseidon2HashWithSeparator(this.toFields(), GeneratorIndex.PUBLIC_TX_HASH);
63
+ return poseidon2HashWithSeparator(this.toFields(), DomainSeparator.PUBLIC_TX_HASH);
64
64
  }
65
65
  toJSON() {
66
66
  return this.toBuffer();
@@ -1,4 +1,4 @@
1
- import { GeneratorIndex, PRIVATE_TO_ROLLUP_KERNEL_CIRCUIT_PUBLIC_INPUTS_LENGTH } from '@aztec/constants';
1
+ import { DomainSeparator, PRIVATE_TO_ROLLUP_KERNEL_CIRCUIT_PUBLIC_INPUTS_LENGTH } from '@aztec/constants';
2
2
  import { poseidon2HashWithSeparator } from '@aztec/foundation/crypto/poseidon';
3
3
  import { bufferSchemaFor } from '@aztec/foundation/schemas';
4
4
  import { BufferReader, bigintToUInt64BE, serializeToBuffer, serializeToFields } from '@aztec/foundation/serialize';
@@ -79,6 +79,6 @@ import { PrivateToRollupAccumulatedData } from './private_to_rollup_accumulated_
79
79
  return fields;
80
80
  }
81
81
  hash() {
82
- return poseidon2HashWithSeparator(this.toFields(), GeneratorIndex.PRIVATE_TX_HASH);
82
+ return poseidon2HashWithSeparator(this.toFields(), DomainSeparator.PRIVATE_TX_HASH);
83
83
  }
84
84
  }
@@ -1,7 +1,7 @@
1
1
  import { MAX_KEY_VALIDATION_REQUESTS_PER_TX, MAX_NOTE_HASH_READ_REQUESTS_PER_TX, MAX_NULLIFIER_READ_REQUESTS_PER_TX } from '@aztec/constants';
2
2
  import { BufferReader } from '@aztec/foundation/serialize';
3
3
  import { inspect } from 'util';
4
- import { ScopedKeyValidationRequestAndGenerator } from '../kernel/hints/scoped_key_validation_request_and_generator.js';
4
+ import { ScopedKeyValidationRequestAndSeparator } from '../kernel/hints/scoped_key_validation_request_and_separator.js';
5
5
  import { ClaimedLengthArray } from './claimed_length_array.js';
6
6
  import { ScopedReadRequest } from './hints/read_request.js';
7
7
  /**
@@ -19,7 +19,7 @@ export declare class PrivateValidationRequests {
19
19
  /**
20
20
  * All the key validation requests made in this transaction.
21
21
  */
22
- scopedKeyValidationRequestsAndGenerators: ClaimedLengthArray<ScopedKeyValidationRequestAndGenerator, typeof MAX_KEY_VALIDATION_REQUESTS_PER_TX>;
22
+ scopedKeyValidationRequestsAndSeparators: ClaimedLengthArray<ScopedKeyValidationRequestAndSeparator, typeof MAX_KEY_VALIDATION_REQUESTS_PER_TX>;
23
23
  constructor(
24
24
  /**
25
25
  * All the read requests made in this transaction.
@@ -32,7 +32,7 @@ export declare class PrivateValidationRequests {
32
32
  /**
33
33
  * All the key validation requests made in this transaction.
34
34
  */
35
- scopedKeyValidationRequestsAndGenerators: ClaimedLengthArray<ScopedKeyValidationRequestAndGenerator, typeof MAX_KEY_VALIDATION_REQUESTS_PER_TX>);
35
+ scopedKeyValidationRequestsAndSeparators: ClaimedLengthArray<ScopedKeyValidationRequestAndSeparator, typeof MAX_KEY_VALIDATION_REQUESTS_PER_TX>);
36
36
  getSize(): number;
37
37
  toBuffer(): Buffer<ArrayBufferLike>;
38
38
  toString(): `0x${string}`;
@@ -3,7 +3,7 @@ import { MAX_KEY_VALIDATION_REQUESTS_PER_TX, MAX_NOTE_HASH_READ_REQUESTS_PER_TX,
3
3
  import { BufferReader, serializeToBuffer } from '@aztec/foundation/serialize';
4
4
  import { bufferToHex, hexToBuffer } from '@aztec/foundation/string';
5
5
  import { inspect } from 'util';
6
- import { ScopedKeyValidationRequestAndGenerator } from '../kernel/hints/scoped_key_validation_request_and_generator.js';
6
+ import { ScopedKeyValidationRequestAndSeparator } from '../kernel/hints/scoped_key_validation_request_and_separator.js';
7
7
  import { ClaimedLengthArray, ClaimedLengthArrayFromBuffer } from './claimed_length_array.js';
8
8
  import { ScopedReadRequest } from './hints/read_request.js';
9
9
  _computedKey = inspect.custom;
@@ -12,23 +12,23 @@ _computedKey = inspect.custom;
12
12
  */ export class PrivateValidationRequests {
13
13
  noteHashReadRequests;
14
14
  nullifierReadRequests;
15
- scopedKeyValidationRequestsAndGenerators;
15
+ scopedKeyValidationRequestsAndSeparators;
16
16
  constructor(/**
17
17
  * All the read requests made in this transaction.
18
18
  */ noteHashReadRequests, /**
19
19
  * All the nullifier read requests made in this transaction.
20
20
  */ nullifierReadRequests, /**
21
21
  * All the key validation requests made in this transaction.
22
- */ scopedKeyValidationRequestsAndGenerators){
22
+ */ scopedKeyValidationRequestsAndSeparators){
23
23
  this.noteHashReadRequests = noteHashReadRequests;
24
24
  this.nullifierReadRequests = nullifierReadRequests;
25
- this.scopedKeyValidationRequestsAndGenerators = scopedKeyValidationRequestsAndGenerators;
25
+ this.scopedKeyValidationRequestsAndSeparators = scopedKeyValidationRequestsAndSeparators;
26
26
  }
27
27
  getSize() {
28
- return this.noteHashReadRequests.getSize() + this.nullifierReadRequests.getSize() + this.scopedKeyValidationRequestsAndGenerators.getSize();
28
+ return this.noteHashReadRequests.getSize() + this.nullifierReadRequests.getSize() + this.scopedKeyValidationRequestsAndSeparators.getSize();
29
29
  }
30
30
  toBuffer() {
31
- return serializeToBuffer(this.noteHashReadRequests, this.nullifierReadRequests, this.scopedKeyValidationRequestsAndGenerators);
31
+ return serializeToBuffer(this.noteHashReadRequests, this.nullifierReadRequests, this.scopedKeyValidationRequestsAndSeparators);
32
32
  }
33
33
  toString() {
34
34
  return bufferToHex(this.toBuffer());
@@ -39,7 +39,7 @@ _computedKey = inspect.custom;
39
39
  * @returns Deserialized object.
40
40
  */ static fromBuffer(buffer) {
41
41
  const reader = BufferReader.asReader(buffer);
42
- return new PrivateValidationRequests(reader.readObject(ClaimedLengthArrayFromBuffer(ScopedReadRequest, MAX_NOTE_HASH_READ_REQUESTS_PER_TX)), reader.readObject(ClaimedLengthArrayFromBuffer(ScopedReadRequest, MAX_NULLIFIER_READ_REQUESTS_PER_TX)), reader.readObject(ClaimedLengthArrayFromBuffer(ScopedKeyValidationRequestAndGenerator, MAX_KEY_VALIDATION_REQUESTS_PER_TX)));
42
+ return new PrivateValidationRequests(reader.readObject(ClaimedLengthArrayFromBuffer(ScopedReadRequest, MAX_NOTE_HASH_READ_REQUESTS_PER_TX)), reader.readObject(ClaimedLengthArrayFromBuffer(ScopedReadRequest, MAX_NULLIFIER_READ_REQUESTS_PER_TX)), reader.readObject(ClaimedLengthArrayFromBuffer(ScopedKeyValidationRequestAndSeparator, MAX_KEY_VALIDATION_REQUESTS_PER_TX)));
43
43
  }
44
44
  /**
45
45
  * Deserializes from a string, corresponding to a write in cpp.
@@ -49,13 +49,13 @@ _computedKey = inspect.custom;
49
49
  return PrivateValidationRequests.fromBuffer(hexToBuffer(str));
50
50
  }
51
51
  static empty() {
52
- return new PrivateValidationRequests(ClaimedLengthArray.empty(ScopedReadRequest, MAX_NOTE_HASH_READ_REQUESTS_PER_TX), ClaimedLengthArray.empty(ScopedReadRequest, MAX_NULLIFIER_READ_REQUESTS_PER_TX), ClaimedLengthArray.empty(ScopedKeyValidationRequestAndGenerator, MAX_KEY_VALIDATION_REQUESTS_PER_TX));
52
+ return new PrivateValidationRequests(ClaimedLengthArray.empty(ScopedReadRequest, MAX_NOTE_HASH_READ_REQUESTS_PER_TX), ClaimedLengthArray.empty(ScopedReadRequest, MAX_NULLIFIER_READ_REQUESTS_PER_TX), ClaimedLengthArray.empty(ScopedKeyValidationRequestAndSeparator, MAX_KEY_VALIDATION_REQUESTS_PER_TX));
53
53
  }
54
54
  [_computedKey]() {
55
55
  return `PrivateValidationRequests {
56
56
  noteHashReadRequests: ${inspect(this.noteHashReadRequests)},
57
57
  nullifierReadRequests: ${inspect(this.nullifierReadRequests)},
58
- scopedKeyValidationRequestsAndGenerators: ${inspect(this.scopedKeyValidationRequestsAndGenerators)},
58
+ scopedKeyValidationRequestsAndSeparators: ${inspect(this.scopedKeyValidationRequestsAndSeparators)},
59
59
  `;
60
60
  }
61
61
  }
@@ -1,4 +1,4 @@
1
- import { GeneratorIndex } from '@aztec/constants';
1
+ import { DomainSeparator } from '@aztec/constants';
2
2
  import { Grumpkin } from '@aztec/foundation/crypto/grumpkin';
3
3
  import { poseidon2HashWithSeparator } from '@aztec/foundation/crypto/poseidon';
4
4
  import { sha512ToGrumpkinScalar } from '@aztec/foundation/crypto/sha512';
@@ -27,37 +27,37 @@ export async function computeOvskApp(ovsk, app) {
27
27
  export function deriveMasterNullifierHidingKey(secretKey) {
28
28
  return sha512ToGrumpkinScalar([
29
29
  secretKey,
30
- GeneratorIndex.NHK_M
30
+ DomainSeparator.NHK_M
31
31
  ]);
32
32
  }
33
33
  export function deriveMasterIncomingViewingSecretKey(secretKey) {
34
34
  return sha512ToGrumpkinScalar([
35
35
  secretKey,
36
- GeneratorIndex.IVSK_M
36
+ DomainSeparator.IVSK_M
37
37
  ]);
38
38
  }
39
39
  export function deriveMasterOutgoingViewingSecretKey(secretKey) {
40
40
  return sha512ToGrumpkinScalar([
41
41
  secretKey,
42
- GeneratorIndex.OVSK_M
42
+ DomainSeparator.OVSK_M
43
43
  ]);
44
44
  }
45
45
  export function deriveSigningKey(secretKey) {
46
46
  // TODO(#5837): come up with a standard signing key derivation scheme instead of using ivsk_m as signing keys here
47
47
  return sha512ToGrumpkinScalar([
48
48
  secretKey,
49
- GeneratorIndex.IVSK_M
49
+ DomainSeparator.IVSK_M
50
50
  ]);
51
51
  }
52
52
  export function computePreaddress(publicKeysHash, partialAddress) {
53
53
  return poseidon2HashWithSeparator([
54
54
  publicKeysHash,
55
55
  partialAddress
56
- ], GeneratorIndex.CONTRACT_ADDRESS_V1);
56
+ ], DomainSeparator.CONTRACT_ADDRESS_V1);
57
57
  }
58
58
  export async function computeAddress(publicKeys, partialAddress) {
59
59
  // Given public keys and a partial address, we can compute our address in the following steps.
60
- // 1. preaddress = poseidon2([publicKeysHash, partialAddress], GeneratorIndex.CONTRACT_ADDRESS_V1);
60
+ // 1. preaddress = poseidon2([publicKeysHash, partialAddress], DomainSeparator.CONTRACT_ADDRESS_V1);
61
61
  // 2. addressPoint = (preaddress * G) + ivpk_m
62
62
  // 3. address = addressPoint.x
63
63
  const preaddress = await computePreaddress(await publicKeys.hash(), partialAddress);
@@ -98,7 +98,7 @@ export function derivePublicKeyFromSecretKey(secretKey) {
98
98
  const masterOutgoingViewingSecretKey = deriveMasterOutgoingViewingSecretKey(secretKey);
99
99
  const masterTaggingSecretKey = sha512ToGrumpkinScalar([
100
100
  secretKey,
101
- GeneratorIndex.TSK_M
101
+ DomainSeparator.TSK_M
102
102
  ]);
103
103
  // Then we derive master public keys
104
104
  const masterNullifierPublicKey = await derivePublicKeyFromSecretKey(masterNullifierHidingKey);
@@ -1,5 +1,5 @@
1
- import type { GeneratorIndex } from '@aztec/constants';
2
- export type KeyGenerator = GeneratorIndex.NHK_M | GeneratorIndex.IVSK_M | GeneratorIndex.OVSK_M | GeneratorIndex.TSK_M;
1
+ import type { DomainSeparator } from '@aztec/constants';
2
+ export type KeyGenerator = DomainSeparator.NHK_M | DomainSeparator.IVSK_M | DomainSeparator.OVSK_M | DomainSeparator.TSK_M;
3
3
  export type KeyPrefix = 'n' | 'iv' | 'ov' | 't';
4
4
  export declare const KEY_PREFIXES: KeyPrefix[];
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2V5X3R5cGVzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMva2V5cy9rZXlfdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUsY0FBYyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFFdkQsTUFBTSxNQUFNLFlBQVksR0FBRyxjQUFjLENBQUMsS0FBSyxHQUFHLGNBQWMsQ0FBQyxNQUFNLEdBQUcsY0FBYyxDQUFDLE1BQU0sR0FBRyxjQUFjLENBQUMsS0FBSyxDQUFDO0FBQ3ZILE1BQU0sTUFBTSxTQUFTLEdBQUcsR0FBRyxHQUFHLElBQUksR0FBRyxJQUFJLEdBQUcsR0FBRyxDQUFDO0FBQ2hELGVBQU8sTUFBTSxZQUFZLEVBQUUsU0FBUyxFQUEyQixDQUFDIn0=
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2V5X3R5cGVzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMva2V5cy9rZXlfdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUsZUFBZSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFFeEQsTUFBTSxNQUFNLFlBQVksR0FDcEIsZUFBZSxDQUFDLEtBQUssR0FDckIsZUFBZSxDQUFDLE1BQU0sR0FDdEIsZUFBZSxDQUFDLE1BQU0sR0FDdEIsZUFBZSxDQUFDLEtBQUssQ0FBQztBQUMxQixNQUFNLE1BQU0sU0FBUyxHQUFHLEdBQUcsR0FBRyxJQUFJLEdBQUcsSUFBSSxHQUFHLEdBQUcsQ0FBQztBQUNoRCxlQUFPLE1BQU0sWUFBWSxFQUFFLFNBQVMsRUFBMkIsQ0FBQyJ9
@@ -1 +1 @@
1
- {"version":3,"file":"key_types.d.ts","sourceRoot":"","sources":["../../src/keys/key_types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,KAAK,GAAG,cAAc,CAAC,MAAM,GAAG,cAAc,CAAC,MAAM,GAAG,cAAc,CAAC,KAAK,CAAC;AACvH,MAAM,MAAM,SAAS,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,CAAC;AAChD,eAAO,MAAM,YAAY,EAAE,SAAS,EAA2B,CAAC"}
1
+ {"version":3,"file":"key_types.d.ts","sourceRoot":"","sources":["../../src/keys/key_types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,MAAM,YAAY,GACpB,eAAe,CAAC,KAAK,GACrB,eAAe,CAAC,MAAM,GACtB,eAAe,CAAC,MAAM,GACtB,eAAe,CAAC,KAAK,CAAC;AAC1B,MAAM,MAAM,SAAS,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,CAAC;AAChD,eAAO,MAAM,YAAY,EAAE,SAAS,EAA2B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { DEFAULT_IVPK_M_X, DEFAULT_IVPK_M_Y, DEFAULT_NPK_M_X, DEFAULT_NPK_M_Y, DEFAULT_OVPK_M_X, DEFAULT_OVPK_M_Y, DEFAULT_TPK_M_X, DEFAULT_TPK_M_Y, GeneratorIndex } from '@aztec/constants';
1
+ import { DEFAULT_IVPK_M_X, DEFAULT_IVPK_M_Y, DEFAULT_NPK_M_X, DEFAULT_NPK_M_Y, DEFAULT_OVPK_M_X, DEFAULT_OVPK_M_Y, DEFAULT_TPK_M_X, DEFAULT_TPK_M_Y, DomainSeparator } from '@aztec/constants';
2
2
  import { poseidon2HashWithSeparator } from '@aztec/foundation/crypto/poseidon';
3
3
  import { Fr } from '@aztec/foundation/curves/bn254';
4
4
  import { Point } from '@aztec/foundation/curves/grumpkin';
@@ -46,7 +46,7 @@ export class PublicKeys {
46
46
  this.masterIncomingViewingPublicKey,
47
47
  this.masterOutgoingViewingPublicKey,
48
48
  this.masterTaggingPublicKey
49
- ], GeneratorIndex.PUBLIC_KEYS_HASH);
49
+ ], DomainSeparator.PUBLIC_KEYS_HASH);
50
50
  }
51
51
  isEmpty() {
52
52
  return this.masterNullifierPublicKey.isZero() && this.masterIncomingViewingPublicKey.isZero() && this.masterOutgoingViewingPublicKey.isZero() && this.masterTaggingPublicKey.isZero();
@@ -1,10 +1,10 @@
1
- import { GeneratorIndex } from '@aztec/constants';
1
+ import { DomainSeparator } from '@aztec/constants';
2
2
  export function getKeyGenerator(prefix) {
3
3
  const map = {
4
- n: GeneratorIndex.NHK_M,
5
- iv: GeneratorIndex.IVSK_M,
6
- ov: GeneratorIndex.OVSK_M,
7
- t: GeneratorIndex.TSK_M
4
+ n: DomainSeparator.NHK_M,
5
+ iv: DomainSeparator.IVSK_M,
6
+ ov: DomainSeparator.OVSK_M,
7
+ t: DomainSeparator.TSK_M
8
8
  };
9
9
  return map[prefix];
10
10
  }
@@ -0,0 +1,30 @@
1
+ import type { TxReceipt } from '../tx/tx_receipt.js';
2
+ import type { DebugLog } from './debug_log.js';
3
+ /**
4
+ * Store for debug logs emitted by public functions during transaction execution.
5
+ *
6
+ * Uses the Null Object pattern: production code uses NullDebugLogStore (no-op), while test mode uses
7
+ * InMemoryDebugLogStore (stores and serves logs).
8
+ */
9
+ export interface DebugLogStore {
10
+ /** Store debug logs for a processed transaction. */
11
+ storeLogs(txHash: string, logs: DebugLog[]): void;
12
+ /** Decorate a TxReceipt with any stored debug logs for the given tx. */
13
+ decorateReceiptWithLogs(txHash: string, receipt: TxReceipt): void;
14
+ /** Whether debug log collection is enabled. */
15
+ readonly isEnabled: boolean;
16
+ }
17
+ /** No-op implementation for production mode. */
18
+ export declare class NullDebugLogStore implements DebugLogStore {
19
+ storeLogs(_txHash: string, _logs: DebugLog[]): void;
20
+ decorateReceiptWithLogs(_txHash: string, _receipt: TxReceipt): void;
21
+ get isEnabled(): boolean;
22
+ }
23
+ /** In-memory implementation for test mode that stores and serves debug logs. */
24
+ export declare class InMemoryDebugLogStore implements DebugLogStore {
25
+ private map;
26
+ storeLogs(txHash: string, logs: DebugLog[]): void;
27
+ decorateReceiptWithLogs(txHash: string, receipt: TxReceipt): void;
28
+ get isEnabled(): boolean;
29
+ }
30
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVidWdfbG9nX3N0b3JlLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbG9ncy9kZWJ1Z19sb2dfc3RvcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUsU0FBUyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDckQsT0FBTyxLQUFLLEVBQUUsUUFBUSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFL0M7Ozs7O0dBS0c7QUFDSCxNQUFNLFdBQVcsYUFBYTtJQUM1QixvREFBb0Q7SUFDcEQsU0FBUyxDQUFDLE1BQU0sRUFBRSxNQUFNLEVBQUUsSUFBSSxFQUFFLFFBQVEsRUFBRSxHQUFHLElBQUksQ0FBQztJQUNsRCx3RUFBd0U7SUFDeEUsdUJBQXVCLENBQUMsTUFBTSxFQUFFLE1BQU0sRUFBRSxPQUFPLEVBQUUsU0FBUyxHQUFHLElBQUksQ0FBQztJQUNsRSwrQ0FBK0M7SUFDL0MsUUFBUSxDQUFDLFNBQVMsRUFBRSxPQUFPLENBQUM7Q0FDN0I7QUFFRCxnREFBZ0Q7QUFDaEQscUJBQWEsaUJBQWtCLFlBQVcsYUFBYTtJQUNyRCxTQUFTLENBQUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsUUFBUSxFQUFFLEdBQUcsSUFBSSxDQUVsRDtJQUNELHVCQUF1QixDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsUUFBUSxFQUFFLFNBQVMsR0FBRyxJQUFJLENBRWxFO0lBQ0QsSUFBSSxTQUFTLElBQUksT0FBTyxDQUV2QjtDQUNGO0FBRUQsZ0ZBQWdGO0FBQ2hGLHFCQUFhLHFCQUFzQixZQUFXLGFBQWE7SUFDekQsT0FBTyxDQUFDLEdBQUcsQ0FBaUM7SUFFNUMsU0FBUyxDQUFDLE1BQU0sRUFBRSxNQUFNLEVBQUUsSUFBSSxFQUFFLFFBQVEsRUFBRSxHQUFHLElBQUksQ0FJaEQ7SUFFRCx1QkFBdUIsQ0FBQyxNQUFNLEVBQUUsTUFBTSxFQUFFLE9BQU8sRUFBRSxTQUFTLEdBQUcsSUFBSSxDQU9oRTtJQUVELElBQUksU0FBUyxJQUFJLE9BQU8sQ0FFdkI7Q0FDRiJ9
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug_log_store.d.ts","sourceRoot":"","sources":["../../src/logs/debug_log_store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,oDAAoD;IACpD,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IAClD,wEAAwE;IACxE,uBAAuB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CAAC;IAClE,+CAA+C;IAC/C,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B;AAED,gDAAgD;AAChD,qBAAa,iBAAkB,YAAW,aAAa;IACrD,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,CAElD;IACD,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,GAAG,IAAI,CAElE;IACD,IAAI,SAAS,IAAI,OAAO,CAEvB;CACF;AAED,gFAAgF;AAChF,qBAAa,qBAAsB,YAAW,aAAa;IACzD,OAAO,CAAC,GAAG,CAAiC;IAE5C,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,CAIhD;IAED,uBAAuB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CAOhE;IAED,IAAI,SAAS,IAAI,OAAO,CAEvB;CACF"}
@@ -0,0 +1,30 @@
1
+ /** No-op implementation for production mode. */ export class NullDebugLogStore {
2
+ storeLogs(_txHash, _logs) {
3
+ return;
4
+ }
5
+ decorateReceiptWithLogs(_txHash, _receipt) {
6
+ return;
7
+ }
8
+ get isEnabled() {
9
+ return false;
10
+ }
11
+ }
12
+ /** In-memory implementation for test mode that stores and serves debug logs. */ export class InMemoryDebugLogStore {
13
+ map = new Map();
14
+ storeLogs(txHash, logs) {
15
+ if (logs.length > 0) {
16
+ this.map.set(txHash, logs);
17
+ }
18
+ }
19
+ decorateReceiptWithLogs(txHash, receipt) {
20
+ if (receipt.isMined()) {
21
+ const debugLogs = this.map.get(txHash);
22
+ if (debugLogs) {
23
+ receipt.debugLogs = debugLogs;
24
+ }
25
+ }
26
+ }
27
+ get isEnabled() {
28
+ return true;
29
+ }
30
+ }
@@ -0,0 +1,47 @@
1
+ import { type Fq, Fr } from '@aztec/foundation/curves/bn254';
2
+ import { z } from 'zod';
3
+ import { AztecAddress } from '../aztec-address/index.js';
4
+ import type { CompleteAddress } from '../contract/complete_address.js';
5
+ /**
6
+ * Extended directional application tagging secret used for log tagging.
7
+ *
8
+ * "Extended" because it bundles the directional app tagging secret with the app (contract) address. This bundling was
9
+ * done because where this type is used we commonly need access to both the secret and the address.
10
+ *
11
+ * "Directional" because the derived secret is bound to the recipient address: A→B differs from B→A even with the same
12
+ * participants and app.
13
+ *
14
+ * Note: It's a bit unfortunate that this type resides in `stdlib` as the rest of the tagging functionality resides in
15
+ * `pxe/src/tagging`. We need to use this type in `PreTag` that in turn is used by other types in stdlib hence there
16
+ * doesn't seem to be a good way around this.
17
+ */
18
+ export declare class ExtendedDirectionalAppTaggingSecret {
19
+ readonly secret: Fr;
20
+ readonly app: AztecAddress;
21
+ private constructor();
22
+ /**
23
+ * Derives shared tagging secret and from that, the app address and recipient derives the directional app tagging
24
+ * secret.
25
+ *
26
+ * @param localAddress - The complete address of entity A in the shared tagging secret derivation scheme
27
+ * @param localIvsk - The incoming viewing secret key of entity A
28
+ * @param externalAddress - The address of entity B in the shared tagging secret derivation scheme
29
+ * @param app - Contract address to silo the secret to
30
+ * @param recipient - Recipient of the log. Defines the "direction of the secret".
31
+ * @returns The secret that can be used along with an index to compute a tag to be included in a log.
32
+ */
33
+ static compute(localAddress: CompleteAddress, localIvsk: Fq, externalAddress: AztecAddress, app: AztecAddress, recipient: AztecAddress): Promise<ExtendedDirectionalAppTaggingSecret>;
34
+ toString(): string;
35
+ static fromString(str: string): ExtendedDirectionalAppTaggingSecret;
36
+ }
37
+ export declare const ExtendedDirectionalAppTaggingSecretSchema: z.ZodObject<{
38
+ secret: z.ZodType<Fr, any, string>;
39
+ app: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ secret: Fr;
42
+ app: AztecAddress;
43
+ }, {
44
+ secret: string;
45
+ app?: any;
46
+ }>;
47
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0ZW5kZWRfZGlyZWN0aW9uYWxfYXBwX3RhZ2dpbmdfc2VjcmV0LmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbG9ncy9leHRlbmRlZF9kaXJlY3Rpb25hbF9hcHBfdGFnZ2luZ19zZWNyZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFFLEtBQUssRUFBRSxFQUFFLEVBQUUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBRzdELE9BQU8sRUFBRSxDQUFDLEVBQUUsTUFBTSxLQUFLLENBQUM7QUFFeEIsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQ3pELE9BQU8sS0FBSyxFQUFFLGVBQWUsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBR3ZFOzs7Ozs7Ozs7Ozs7R0FZRztBQUNILHFCQUFhLG1DQUFtQzthQUU1QixNQUFNLEVBQUUsRUFBRTthQUNWLEdBQUcsRUFBRSxZQUFZO0lBRm5DLE9BQU8sZUFHSDtJQUVKOzs7Ozs7Ozs7O09BVUc7SUFDSCxPQUFhLE9BQU8sQ0FDbEIsWUFBWSxFQUFFLGVBQWUsRUFDN0IsU0FBUyxFQUFFLEVBQUUsRUFDYixlQUFlLEVBQUUsWUFBWSxFQUM3QixHQUFHLEVBQUUsWUFBWSxFQUNqQixTQUFTLEVBQUUsWUFBWSxHQUN0QixPQUFPLENBQUMsbUNBQW1DLENBQUMsQ0FNOUM7SUFFRCxRQUFRLElBQUksTUFBTSxDQUVqQjtJQUVELE1BQU0sQ0FBQyxVQUFVLENBQUMsR0FBRyxFQUFFLE1BQU0sR0FBRyxtQ0FBbUMsQ0FHbEU7Q0FDRjtBQW9CRCxlQUFPLE1BQU0seUNBQXlDOzs7Ozs7Ozs7RUFHcEQsQ0FBQyJ9
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extended_directional_app_tagging_secret.d.ts","sourceRoot":"","sources":["../../src/logs/extended_directional_app_tagging_secret.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAG7D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAGvE;;;;;;;;;;;;GAYG;AACH,qBAAa,mCAAmC;aAE5B,MAAM,EAAE,EAAE;aACV,GAAG,EAAE,YAAY;IAFnC,OAAO,eAGH;IAEJ;;;;;;;;;;OAUG;IACH,OAAa,OAAO,CAClB,YAAY,EAAE,eAAe,EAC7B,SAAS,EAAE,EAAE,EACb,eAAe,EAAE,YAAY,EAC7B,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,YAAY,GACtB,OAAO,CAAC,mCAAmC,CAAC,CAM9C;IAED,QAAQ,IAAI,MAAM,CAEjB;IAED,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,mCAAmC,CAGlE;CACF;AAoBD,eAAO,MAAM,yCAAyC;;;;;;;;;EAGpD,CAAC"}
@@ -2,20 +2,26 @@ import { Grumpkin } from '@aztec/foundation/crypto/grumpkin';
2
2
  import { poseidon2Hash } from '@aztec/foundation/crypto/poseidon';
3
3
  import { Fr } from '@aztec/foundation/curves/bn254';
4
4
  import { z } from 'zod';
5
+ import { AztecAddress } from '../aztec-address/index.js';
5
6
  import { computeAddressSecret, computePreaddress } from '../keys/derivation.js';
6
7
  /**
7
- * Directional application tagging secret used for log tagging.
8
+ * Extended directional application tagging secret used for log tagging.
8
9
  *
9
- * "Directional" because the derived secret is bound to the recipient
10
- * address: A→B differs from B→A even with the same participants and app.
10
+ * "Extended" because it bundles the directional app tagging secret with the app (contract) address. This bundling was
11
+ * done because where this type is used we commonly need access to both the secret and the address.
11
12
  *
12
- * Note: It's a bit unfortunate that this type resides in `stdlib` as the rest of the tagging functionality resides
13
- * in `pxe/src/tagging`. We need to use this type in `PreTag` that in turn is used by other types
14
- * in stdlib hence there doesn't seem to be a good way around this.
15
- */ export class DirectionalAppTaggingSecret {
16
- value;
17
- constructor(value){
18
- this.value = value;
13
+ * "Directional" because the derived secret is bound to the recipient address: A→B differs from B→A even with the same
14
+ * participants and app.
15
+ *
16
+ * Note: It's a bit unfortunate that this type resides in `stdlib` as the rest of the tagging functionality resides in
17
+ * `pxe/src/tagging`. We need to use this type in `PreTag` that in turn is used by other types in stdlib hence there
18
+ * doesn't seem to be a good way around this.
19
+ */ export class ExtendedDirectionalAppTaggingSecret {
20
+ secret;
21
+ app;
22
+ constructor(secret, app){
23
+ this.secret = secret;
24
+ this.app = app;
19
25
  }
20
26
  /**
21
27
  * Derives shared tagging secret and from that, the app address and recipient derives the directional app tagging
@@ -38,13 +44,14 @@ import { computeAddressSecret, computePreaddress } from '../keys/derivation.js';
38
44
  appTaggingSecret,
39
45
  recipient
40
46
  ]);
41
- return new DirectionalAppTaggingSecret(directionalAppTaggingSecret);
47
+ return new ExtendedDirectionalAppTaggingSecret(directionalAppTaggingSecret, app);
42
48
  }
43
49
  toString() {
44
- return this.value.toString();
50
+ return `${this.secret.toString()}:${this.app.toString()}`;
45
51
  }
46
52
  static fromString(str) {
47
- return new DirectionalAppTaggingSecret(Fr.fromString(str));
53
+ const [secretStr, appStr] = str.split(':');
54
+ return new ExtendedDirectionalAppTaggingSecret(Fr.fromString(secretStr), AztecAddress.fromString(appStr));
48
55
  }
49
56
  }
50
57
  // Returns shared tagging secret computed with Diffie-Hellman key exchange.
@@ -59,6 +66,7 @@ async function computeSharedTaggingSecret(localAddress, localIvsk, externalAddre
59
66
  // leads to a positive y-coordinate, which is the only valid address point
60
67
  return Grumpkin.mul(externalAddressPoint, await computeAddressSecret(knownPreaddress, localIvsk));
61
68
  }
62
- export const DirectionalAppTaggingSecretSchema = z.object({
63
- value: Fr.schema
69
+ export const ExtendedDirectionalAppTaggingSecretSchema = z.object({
70
+ secret: Fr.schema,
71
+ app: AztecAddress.schema
64
72
  });
@@ -1,4 +1,4 @@
1
- export * from './directional_app_tagging_secret.js';
1
+ export * from './extended_directional_app_tagging_secret.js';
2
2
  export * from './pre_tag.js';
3
3
  export * from './contract_class_log.js';
4
4
  export * from './public_log.js';
@@ -12,6 +12,7 @@ export * from './shared_secret_derivation.js';
12
12
  export * from './tx_scoped_l2_log.js';
13
13
  export * from './message_context.js';
14
14
  export * from './debug_log.js';
15
+ export * from './debug_log_store.js';
15
16
  export * from './tag.js';
16
17
  export * from './siloed_tag.js';
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9sb2dzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMscUNBQXFDLENBQUM7QUFDcEQsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLGlCQUFpQixDQUFDO0FBQ2hDLGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGlCQUFpQixDQUFDO0FBQ2hDLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsdUJBQXVCLENBQUM7QUFDdEMsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsaUJBQWlCLENBQUMifQ==
18
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9sb2dzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsOENBQThDLENBQUM7QUFDN0QsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLGlCQUFpQixDQUFDO0FBQ2hDLGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGlCQUFpQixDQUFDO0FBQ2hDLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsdUJBQXVCLENBQUM7QUFDdEMsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxVQUFVLENBQUM7QUFDekIsY0FBYyxpQkFBaUIsQ0FBQyJ9
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/logs/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,cAAc,CAAC;AAC7B,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;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/logs/index.ts"],"names":[],"mappings":"AAAA,cAAc,8CAA8C,CAAC;AAC7D,cAAc,cAAc,CAAC;AAC7B,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;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC"}
@@ -1,4 +1,4 @@
1
- export * from './directional_app_tagging_secret.js';
1
+ export * from './extended_directional_app_tagging_secret.js';
2
2
  export * from './pre_tag.js';
3
3
  export * from './contract_class_log.js';
4
4
  export * from './public_log.js';
@@ -12,5 +12,6 @@ export * from './shared_secret_derivation.js';
12
12
  export * from './tx_scoped_l2_log.js';
13
13
  export * from './message_context.js';
14
14
  export * from './debug_log.js';
15
+ export * from './debug_log_store.js';
15
16
  export * from './tag.js';
16
17
  export * from './siloed_tag.js';