@aztec/stdlib 0.0.1-commit.9593d84 → 0.0.1-commit.967fc6998

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 (1151) hide show
  1. package/dest/abi/abi.d.ts +603 -5
  2. package/dest/abi/abi.d.ts.map +1 -1
  3. package/dest/abi/abi.js +7 -7
  4. package/dest/abi/authorization_selector.d.ts +2 -2
  5. package/dest/abi/authorization_selector.d.ts.map +1 -1
  6. package/dest/abi/authorization_selector.js +2 -1
  7. package/dest/abi/buffer.d.ts +2 -2
  8. package/dest/abi/buffer.d.ts.map +1 -1
  9. package/dest/abi/buffer.js +1 -1
  10. package/dest/abi/contract_artifact.d.ts +2 -2
  11. package/dest/abi/contract_artifact.d.ts.map +1 -1
  12. package/dest/abi/contract_artifact.js +1 -1
  13. package/dest/abi/decoder.d.ts +2 -2
  14. package/dest/abi/decoder.d.ts.map +1 -1
  15. package/dest/abi/decoder.js +1 -4
  16. package/dest/abi/encoder.d.ts +2 -2
  17. package/dest/abi/encoder.d.ts.map +1 -1
  18. package/dest/abi/encoder.js +10 -6
  19. package/dest/abi/event_selector.d.ts +2 -2
  20. package/dest/abi/event_selector.d.ts.map +1 -1
  21. package/dest/abi/event_selector.js +2 -1
  22. package/dest/abi/function_call.d.ts +48 -10
  23. package/dest/abi/function_call.d.ts.map +1 -1
  24. package/dest/abi/function_call.js +20 -3
  25. package/dest/abi/function_selector.d.ts +3 -2
  26. package/dest/abi/function_selector.d.ts.map +1 -1
  27. package/dest/abi/function_selector.js +9 -1
  28. package/dest/abi/note_selector.d.ts +2 -2
  29. package/dest/abi/note_selector.d.ts.map +1 -1
  30. package/dest/abi/note_selector.js +2 -2
  31. package/dest/abi/selector.d.ts +2 -2
  32. package/dest/abi/selector.d.ts.map +1 -1
  33. package/dest/abi/selector.js +4 -2
  34. package/dest/abi/utils.d.ts +7 -1
  35. package/dest/abi/utils.d.ts.map +1 -1
  36. package/dest/abi/utils.js +7 -0
  37. package/dest/auth_witness/auth_witness.d.ts +3 -2
  38. package/dest/auth_witness/auth_witness.d.ts.map +1 -1
  39. package/dest/auth_witness/auth_witness.js +5 -5
  40. package/dest/avm/avm.d.ts +298 -86
  41. package/dest/avm/avm.d.ts.map +1 -1
  42. package/dest/avm/avm.js +238 -22
  43. package/dest/avm/avm_accumulated_data.d.ts +31 -4
  44. package/dest/avm/avm_accumulated_data.d.ts.map +1 -1
  45. package/dest/avm/avm_accumulated_data.js +6 -3
  46. package/dest/avm/avm_circuit_public_inputs.d.ts +14 -12
  47. package/dest/avm/avm_circuit_public_inputs.d.ts.map +1 -1
  48. package/dest/avm/avm_circuit_public_inputs.js +4 -2
  49. package/dest/avm/avm_proving_request.d.ts +472 -468
  50. package/dest/avm/avm_proving_request.d.ts.map +1 -1
  51. package/dest/avm/contract_storage_read.d.ts +14 -2
  52. package/dest/avm/contract_storage_read.d.ts.map +1 -1
  53. package/dest/avm/contract_storage_read.js +1 -1
  54. package/dest/avm/contract_storage_update_request.d.ts +14 -2
  55. package/dest/avm/contract_storage_update_request.d.ts.map +1 -1
  56. package/dest/avm/contract_storage_update_request.js +1 -1
  57. package/dest/avm/message_pack.d.ts +1 -1
  58. package/dest/avm/message_pack.d.ts.map +1 -1
  59. package/dest/avm/message_pack.js +2 -1
  60. package/dest/avm/public_call_stack_item_compressed.d.ts +4 -2
  61. package/dest/avm/public_call_stack_item_compressed.d.ts.map +1 -1
  62. package/dest/avm/public_call_stack_item_compressed.js +1 -1
  63. package/dest/avm/public_data_read.d.ts +11 -2
  64. package/dest/avm/public_data_read.d.ts.map +1 -1
  65. package/dest/avm/public_data_read.js +1 -1
  66. package/dest/avm/public_data_update_request.d.ts +11 -2
  67. package/dest/avm/public_data_update_request.d.ts.map +1 -1
  68. package/dest/avm/public_data_update_request.js +4 -2
  69. package/dest/avm/public_data_write.d.ts +8 -2
  70. package/dest/avm/public_data_write.d.ts.map +1 -1
  71. package/dest/avm/public_data_write.js +1 -1
  72. package/dest/avm/public_inner_call_request.d.ts +5 -2
  73. package/dest/avm/public_inner_call_request.d.ts.map +1 -1
  74. package/dest/avm/public_inner_call_request.js +3 -1
  75. package/dest/avm/revert_code.d.ts +20 -5
  76. package/dest/avm/revert_code.d.ts.map +1 -1
  77. package/dest/avm/revert_code.js +19 -7
  78. package/dest/aztec-address/index.d.ts +3 -2
  79. package/dest/aztec-address/index.d.ts.map +1 -1
  80. package/dest/aztec-address/index.js +5 -2
  81. package/dest/block/attestation_info.d.ts +5 -5
  82. package/dest/block/attestation_info.d.ts.map +1 -1
  83. package/dest/block/attestation_info.js +5 -5
  84. package/dest/block/block_data.d.ts +52 -0
  85. package/dest/block/block_data.d.ts.map +1 -0
  86. package/dest/block/block_data.js +12 -0
  87. package/dest/block/block_hash.d.ts +19 -15
  88. package/dest/block/block_hash.d.ts.map +1 -1
  89. package/dest/block/block_hash.js +23 -21
  90. package/dest/block/block_parameter.d.ts +6 -0
  91. package/dest/block/block_parameter.d.ts.map +1 -0
  92. package/dest/block/block_parameter.js +8 -0
  93. package/dest/block/body.d.ts +1 -1
  94. package/dest/block/body.d.ts.map +1 -1
  95. package/dest/block/body.js +5 -2
  96. package/dest/block/checkpointed_l2_block.d.ts +150 -0
  97. package/dest/block/checkpointed_l2_block.d.ts.map +1 -0
  98. package/dest/block/checkpointed_l2_block.js +46 -0
  99. package/dest/block/in_block.d.ts +34 -15
  100. package/dest/block/in_block.d.ts.map +1 -1
  101. package/dest/block/in_block.js +21 -12
  102. package/dest/block/index.d.ts +4 -5
  103. package/dest/block/index.d.ts.map +1 -1
  104. package/dest/block/index.js +3 -4
  105. package/dest/block/l2_block.d.ts +59 -59
  106. package/dest/block/l2_block.d.ts.map +1 -1
  107. package/dest/block/l2_block.js +69 -110
  108. package/dest/block/l2_block_info.d.ts +16 -11
  109. package/dest/block/l2_block_info.d.ts.map +1 -1
  110. package/dest/block/l2_block_info.js +8 -7
  111. package/dest/block/l2_block_source.d.ts +390 -151
  112. package/dest/block/l2_block_source.d.ts.map +1 -1
  113. package/dest/block/l2_block_source.js +29 -16
  114. package/dest/block/l2_block_stream/index.d.ts +2 -1
  115. package/dest/block/l2_block_stream/index.d.ts.map +1 -1
  116. package/dest/block/l2_block_stream/index.js +1 -0
  117. package/dest/block/l2_block_stream/interfaces.d.ts +15 -5
  118. package/dest/block/l2_block_stream/interfaces.d.ts.map +1 -1
  119. package/dest/block/l2_block_stream/l2_block_stream.d.ts +13 -3
  120. package/dest/block/l2_block_stream/l2_block_stream.d.ts.map +1 -1
  121. package/dest/block/l2_block_stream/l2_block_stream.js +126 -32
  122. package/dest/block/l2_block_stream/l2_tips_memory_store.d.ts +24 -15
  123. package/dest/block/l2_block_stream/l2_tips_memory_store.d.ts.map +1 -1
  124. package/dest/block/l2_block_stream/l2_tips_memory_store.js +55 -59
  125. package/dest/block/l2_block_stream/l2_tips_store_base.d.ts +49 -0
  126. package/dest/block/l2_block_stream/l2_tips_store_base.d.ts.map +1 -0
  127. package/dest/block/l2_block_stream/l2_tips_store_base.js +179 -0
  128. package/dest/block/proposal/attestations_and_signers.d.ts +2 -2
  129. package/dest/block/proposal/attestations_and_signers.d.ts.map +1 -1
  130. package/dest/block/proposal/committee_attestation.d.ts +2 -2
  131. package/dest/block/proposal/committee_attestation.d.ts.map +1 -1
  132. package/dest/block/test/l2_tips_store_test_suite.d.ts +1 -1
  133. package/dest/block/test/l2_tips_store_test_suite.d.ts.map +1 -1
  134. package/dest/block/test/l2_tips_store_test_suite.js +482 -43
  135. package/dest/block/validate_block_result.d.ts +24 -24
  136. package/dest/block/validate_block_result.d.ts.map +1 -1
  137. package/dest/block/validate_block_result.js +18 -17
  138. package/dest/checkpoint/checkpoint.d.ts +74 -18
  139. package/dest/checkpoint/checkpoint.d.ts.map +1 -1
  140. package/dest/checkpoint/checkpoint.js +78 -16
  141. package/dest/checkpoint/checkpoint_data.d.ts +120 -0
  142. package/dest/checkpoint/checkpoint_data.d.ts.map +1 -0
  143. package/dest/checkpoint/checkpoint_data.js +26 -0
  144. package/dest/checkpoint/checkpoint_info.d.ts +38 -0
  145. package/dest/checkpoint/checkpoint_info.d.ts.map +1 -0
  146. package/dest/checkpoint/checkpoint_info.js +34 -0
  147. package/dest/checkpoint/index.d.ts +3 -1
  148. package/dest/checkpoint/index.d.ts.map +1 -1
  149. package/dest/checkpoint/index.js +2 -0
  150. package/dest/checkpoint/published_checkpoint.d.ts +58 -15
  151. package/dest/checkpoint/published_checkpoint.d.ts.map +1 -1
  152. package/dest/checkpoint/published_checkpoint.js +16 -6
  153. package/dest/config/index.d.ts +2 -1
  154. package/dest/config/index.d.ts.map +1 -1
  155. package/dest/config/index.js +1 -0
  156. package/dest/config/node-rpc-config.js +1 -1
  157. package/dest/config/sequencer-config.d.ts +10 -0
  158. package/dest/config/sequencer-config.d.ts.map +1 -0
  159. package/dest/config/sequencer-config.js +18 -0
  160. package/dest/contract/artifact_hash.d.ts +2 -2
  161. package/dest/contract/artifact_hash.d.ts.map +1 -1
  162. package/dest/contract/artifact_hash.js +2 -2
  163. package/dest/contract/complete_address.d.ts +5 -2
  164. package/dest/contract/complete_address.d.ts.map +1 -1
  165. package/dest/contract/complete_address.js +1 -1
  166. package/dest/contract/contract_address.d.ts +2 -2
  167. package/dest/contract/contract_address.d.ts.map +1 -1
  168. package/dest/contract/contract_address.js +6 -6
  169. package/dest/contract/contract_class.d.ts +3 -4
  170. package/dest/contract/contract_class.d.ts.map +1 -1
  171. package/dest/contract/contract_class.js +1 -1
  172. package/dest/contract/contract_class_id.d.ts +3 -3
  173. package/dest/contract/contract_class_id.d.ts.map +1 -1
  174. package/dest/contract/contract_class_id.js +8 -7
  175. package/dest/contract/contract_deployment_data.d.ts +5 -5
  176. package/dest/contract/contract_instance.d.ts +2 -2
  177. package/dest/contract/contract_instance.d.ts.map +1 -1
  178. package/dest/contract/contract_instance.js +1 -1
  179. package/dest/contract/contract_instance_update.d.ts +2 -2
  180. package/dest/contract/contract_instance_update.d.ts.map +1 -1
  181. package/dest/contract/contract_instance_update.js +1 -1
  182. package/dest/contract/deployment_info.d.ts +2 -2
  183. package/dest/contract/deployment_info.d.ts.map +1 -1
  184. package/dest/contract/index.d.ts +1 -3
  185. package/dest/contract/index.d.ts.map +1 -1
  186. package/dest/contract/index.js +0 -2
  187. package/dest/contract/interfaces/contract_class.d.ts +19 -14
  188. package/dest/contract/interfaces/contract_class.d.ts.map +1 -1
  189. package/dest/contract/interfaces/contract_class.js +35 -18
  190. package/dest/contract/interfaces/contract_data_source.d.ts +4 -3
  191. package/dest/contract/interfaces/contract_data_source.d.ts.map +1 -1
  192. package/dest/contract/interfaces/contract_instance.d.ts +40 -31
  193. package/dest/contract/interfaces/contract_instance.d.ts.map +1 -1
  194. package/dest/contract/interfaces/contract_instance.js +30 -5
  195. package/dest/contract/interfaces/contract_instance_update.d.ts +7 -8
  196. package/dest/contract/interfaces/contract_instance_update.d.ts.map +1 -1
  197. package/dest/contract/interfaces/contract_instance_update.js +5 -5
  198. package/dest/contract/interfaces/node-info.d.ts +3 -1
  199. package/dest/contract/interfaces/node-info.d.ts.map +1 -1
  200. package/dest/contract/interfaces/node-info.js +2 -1
  201. package/dest/contract/partial_address.d.ts +2 -2
  202. package/dest/contract/partial_address.d.ts.map +1 -1
  203. package/dest/contract/private_function.d.ts +2 -2
  204. package/dest/contract/private_function.d.ts.map +1 -1
  205. package/dest/contract/private_function.js +5 -5
  206. package/dest/contract/private_function_membership_proof.d.ts +1 -1
  207. package/dest/contract/private_function_membership_proof.js +3 -3
  208. package/dest/contract/utility_function_membership_proof.js +1 -1
  209. package/dest/database-version/database_version.d.ts +58 -0
  210. package/dest/database-version/database_version.d.ts.map +1 -0
  211. package/dest/database-version/database_version.js +69 -0
  212. package/dest/database-version/version_manager.d.ts +3 -49
  213. package/dest/database-version/version_manager.d.ts.map +1 -1
  214. package/dest/database-version/version_manager.js +1 -64
  215. package/dest/delayed_public_mutable/delayed_public_mutable_values.d.ts +3 -3
  216. package/dest/delayed_public_mutable/delayed_public_mutable_values.d.ts.map +1 -1
  217. package/dest/delayed_public_mutable/delayed_public_mutable_values.js +9 -12
  218. package/dest/delayed_public_mutable/delayed_public_mutable_values_with_hash.d.ts +2 -2
  219. package/dest/delayed_public_mutable/delayed_public_mutable_values_with_hash.d.ts.map +1 -1
  220. package/dest/delayed_public_mutable/delayed_public_mutable_values_with_hash.js +1 -1
  221. package/dest/delayed_public_mutable/scheduled_value_change.d.ts +2 -2
  222. package/dest/delayed_public_mutable/scheduled_value_change.d.ts.map +1 -1
  223. package/dest/delayed_public_mutable/scheduled_value_change.js +1 -1
  224. package/dest/deserialization/index.d.ts +11 -0
  225. package/dest/deserialization/index.d.ts.map +1 -0
  226. package/dest/deserialization/index.js +10 -0
  227. package/dest/epoch-helpers/index.d.ts +7 -1
  228. package/dest/epoch-helpers/index.d.ts.map +1 -1
  229. package/dest/epoch-helpers/index.js +12 -6
  230. package/dest/errors/proving_error.d.ts +2 -2
  231. package/dest/errors/proving_error.d.ts.map +1 -1
  232. package/dest/errors/simulation_error.d.ts +2 -2
  233. package/dest/errors/simulation_error.d.ts.map +1 -1
  234. package/dest/fees/transaction_fee.d.ts +2 -2
  235. package/dest/fees/transaction_fee.d.ts.map +1 -1
  236. package/dest/file-store/local.d.ts +3 -3
  237. package/dest/file-store/local.d.ts.map +1 -1
  238. package/dest/file-store/local.js +13 -4
  239. package/dest/file-store/s3.d.ts +1 -1
  240. package/dest/file-store/s3.d.ts.map +1 -1
  241. package/dest/file-store/s3.js +11 -3
  242. package/dest/gas/gas.d.ts +2 -2
  243. package/dest/gas/gas.d.ts.map +1 -1
  244. package/dest/gas/gas.js +4 -2
  245. package/dest/gas/gas_fees.d.ts +2 -2
  246. package/dest/gas/gas_fees.d.ts.map +1 -1
  247. package/dest/gas/gas_fees.js +3 -1
  248. package/dest/gas/gas_settings.d.ts +2 -2
  249. package/dest/gas/gas_settings.d.ts.map +1 -1
  250. package/dest/gas/gas_settings.js +1 -1
  251. package/dest/ha-signing/config.d.ts +101 -0
  252. package/dest/ha-signing/config.d.ts.map +1 -0
  253. package/dest/ha-signing/config.js +92 -0
  254. package/dest/ha-signing/index.d.ts +3 -0
  255. package/dest/ha-signing/index.d.ts.map +1 -0
  256. package/dest/ha-signing/index.js +2 -0
  257. package/dest/ha-signing/types.d.ts +85 -0
  258. package/dest/ha-signing/types.d.ts.map +1 -0
  259. package/dest/ha-signing/types.js +32 -0
  260. package/dest/hash/hash.d.ts +3 -10
  261. package/dest/hash/hash.d.ts.map +1 -1
  262. package/dest/hash/hash.js +17 -22
  263. package/dest/hash/map_slot.d.ts +2 -2
  264. package/dest/hash/map_slot.d.ts.map +1 -1
  265. package/dest/hash/map_slot.js +4 -3
  266. package/dest/interfaces/allowed_element.d.ts +8 -9
  267. package/dest/interfaces/allowed_element.d.ts.map +1 -1
  268. package/dest/interfaces/allowed_element.js +3 -3
  269. package/dest/interfaces/api_limit.d.ts +3 -1
  270. package/dest/interfaces/api_limit.d.ts.map +1 -1
  271. package/dest/interfaces/api_limit.js +2 -0
  272. package/dest/interfaces/archiver.d.ts +12 -7
  273. package/dest/interfaces/archiver.d.ts.map +1 -1
  274. package/dest/interfaces/archiver.js +40 -21
  275. package/dest/interfaces/aztec-node-admin.d.ts +140 -42
  276. package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
  277. package/dest/interfaces/aztec-node-admin.js +15 -7
  278. package/dest/interfaces/aztec-node.d.ts +90 -95
  279. package/dest/interfaces/aztec-node.d.ts.map +1 -1
  280. package/dest/interfaces/aztec-node.js +32 -33
  281. package/dest/interfaces/block-builder.d.ts +24 -14
  282. package/dest/interfaces/block-builder.d.ts.map +1 -1
  283. package/dest/interfaces/block-builder.js +16 -1
  284. package/dest/interfaces/configs.d.ts +71 -27
  285. package/dest/interfaces/configs.d.ts.map +1 -1
  286. package/dest/interfaces/configs.js +15 -6
  287. package/dest/interfaces/epoch-prover.d.ts +5 -5
  288. package/dest/interfaces/epoch-prover.d.ts.map +1 -1
  289. package/dest/interfaces/get_logs_response.d.ts +30 -6
  290. package/dest/interfaces/get_logs_response.d.ts.map +1 -1
  291. package/dest/interfaces/get_logs_response.js +5 -4
  292. package/dest/interfaces/l2_logs_source.d.ts +21 -15
  293. package/dest/interfaces/l2_logs_source.d.ts.map +1 -1
  294. package/dest/interfaces/merkle_tree_operations.d.ts +5 -4
  295. package/dest/interfaces/merkle_tree_operations.d.ts.map +1 -1
  296. package/dest/interfaces/p2p.d.ts +9 -16
  297. package/dest/interfaces/p2p.d.ts.map +1 -1
  298. package/dest/interfaces/p2p.js +3 -4
  299. package/dest/interfaces/prover-broker.d.ts +16 -1
  300. package/dest/interfaces/prover-broker.d.ts.map +1 -1
  301. package/dest/interfaces/prover-broker.js +4 -1
  302. package/dest/interfaces/prover-client.d.ts +19 -3
  303. package/dest/interfaces/prover-client.d.ts.map +1 -1
  304. package/dest/interfaces/prover-client.js +16 -4
  305. package/dest/interfaces/proving-job.d.ts +60 -56
  306. package/dest/interfaces/proving-job.d.ts.map +1 -1
  307. package/dest/interfaces/proving-job.js +1 -7
  308. package/dest/interfaces/public_state_source.d.ts +2 -2
  309. package/dest/interfaces/public_state_source.d.ts.map +1 -1
  310. package/dest/interfaces/server_circuit_prover.d.ts +4 -3
  311. package/dest/interfaces/server_circuit_prover.d.ts.map +1 -1
  312. package/dest/interfaces/slasher.d.ts +9 -1
  313. package/dest/interfaces/slasher.d.ts.map +1 -1
  314. package/dest/interfaces/slasher.js +5 -3
  315. package/dest/interfaces/validator.d.ts +162 -27
  316. package/dest/interfaces/validator.d.ts.map +1 -1
  317. package/dest/interfaces/validator.js +12 -7
  318. package/dest/interfaces/world_state.d.ts +23 -31
  319. package/dest/interfaces/world_state.d.ts.map +1 -1
  320. package/dest/interfaces/world_state.js +4 -3
  321. package/dest/kernel/claimed_length_array.d.ts +2 -2
  322. package/dest/kernel/claimed_length_array.d.ts.map +1 -1
  323. package/dest/kernel/claimed_length_array.js +3 -1
  324. package/dest/kernel/hints/build_note_hash_read_request_hints.d.ts +7 -6
  325. package/dest/kernel/hints/build_note_hash_read_request_hints.d.ts.map +1 -1
  326. package/dest/kernel/hints/build_note_hash_read_request_hints.js +31 -19
  327. package/dest/kernel/hints/build_nullifier_read_request_hints.d.ts +5 -5
  328. package/dest/kernel/hints/build_nullifier_read_request_hints.d.ts.map +1 -1
  329. package/dest/kernel/hints/build_nullifier_read_request_hints.js +28 -17
  330. package/dest/kernel/hints/build_transient_data_hints.d.ts +5 -2
  331. package/dest/kernel/hints/build_transient_data_hints.d.ts.map +1 -1
  332. package/dest/kernel/hints/build_transient_data_hints.js +9 -3
  333. package/dest/kernel/hints/find_private_kernel_reset_dimensions.d.ts +1 -1
  334. package/dest/kernel/hints/find_private_kernel_reset_dimensions.d.ts.map +1 -1
  335. package/dest/kernel/hints/find_private_kernel_reset_dimensions.js +1 -3
  336. package/dest/kernel/hints/index.d.ts +2 -2
  337. package/dest/kernel/hints/index.js +2 -2
  338. package/dest/kernel/hints/key_validation_hint.d.ts +3 -2
  339. package/dest/kernel/hints/key_validation_hint.d.ts.map +1 -1
  340. package/dest/kernel/hints/key_validation_hint.js +1 -1
  341. package/dest/kernel/hints/key_validation_request.d.ts +5 -3
  342. package/dest/kernel/hints/key_validation_request.d.ts.map +1 -1
  343. package/dest/kernel/hints/key_validation_request.js +2 -1
  344. package/dest/kernel/hints/key_validation_request_and_separator.d.ts +24 -0
  345. package/dest/kernel/hints/key_validation_request_and_separator.d.ts.map +1 -0
  346. package/dest/kernel/hints/{key_validation_request_and_generator.js → key_validation_request_and_separator.js} +13 -16
  347. package/dest/kernel/hints/note_hash_read_request_hints.d.ts +2 -2
  348. package/dest/kernel/hints/note_hash_read_request_hints.d.ts.map +1 -1
  349. package/dest/kernel/hints/note_hash_read_request_hints.js +1 -1
  350. package/dest/kernel/hints/private_kernel_reset_hints.d.ts +13 -1
  351. package/dest/kernel/hints/private_kernel_reset_hints.d.ts.map +1 -1
  352. package/dest/kernel/hints/read_request.d.ts +8 -2
  353. package/dest/kernel/hints/read_request.d.ts.map +1 -1
  354. package/dest/kernel/hints/read_request.js +1 -1
  355. package/dest/kernel/hints/read_request_hints.d.ts +7 -1
  356. package/dest/kernel/hints/read_request_hints.d.ts.map +1 -1
  357. package/dest/kernel/hints/{scoped_key_validation_request_and_generator.d.ts → scoped_key_validation_request_and_separator.d.ts} +9 -9
  358. package/dest/kernel/hints/{scoped_key_validation_request_and_generator.d.ts.map → scoped_key_validation_request_and_separator.d.ts.map} +1 -1
  359. package/dest/kernel/hints/{scoped_key_validation_request_and_generator.js → scoped_key_validation_request_and_separator.js} +6 -6
  360. package/dest/kernel/hints/scoped_value_cache.d.ts +2 -2
  361. package/dest/kernel/hints/scoped_value_cache.d.ts.map +1 -1
  362. package/dest/kernel/hints/transient_data_squashing_hint.d.ts +2 -2
  363. package/dest/kernel/hints/transient_data_squashing_hint.d.ts.map +1 -1
  364. package/dest/kernel/hints/transient_data_squashing_hint.js +4 -2
  365. package/dest/kernel/hints/tree_leaf_read_request.d.ts +2 -2
  366. package/dest/kernel/hints/tree_leaf_read_request.d.ts.map +1 -1
  367. package/dest/kernel/hints/tree_leaf_read_request.js +1 -1
  368. package/dest/kernel/log_hash.d.ts +2 -2
  369. package/dest/kernel/log_hash.d.ts.map +1 -1
  370. package/dest/kernel/log_hash.js +4 -2
  371. package/dest/kernel/note_hash.d.ts +2 -2
  372. package/dest/kernel/note_hash.d.ts.map +1 -1
  373. package/dest/kernel/note_hash.js +1 -1
  374. package/dest/kernel/nullifier.d.ts +2 -2
  375. package/dest/kernel/nullifier.d.ts.map +1 -1
  376. package/dest/kernel/nullifier.js +1 -1
  377. package/dest/kernel/padded_side_effects.d.ts +2 -2
  378. package/dest/kernel/padded_side_effects.d.ts.map +1 -1
  379. package/dest/kernel/padded_side_effects.js +1 -1
  380. package/dest/kernel/private_accumulated_data.d.ts +23 -1
  381. package/dest/kernel/private_accumulated_data.d.ts.map +1 -1
  382. package/dest/kernel/private_call_data.d.ts +26 -2
  383. package/dest/kernel/private_call_data.d.ts.map +1 -1
  384. package/dest/kernel/private_call_data.js +1 -1
  385. package/dest/kernel/private_call_request.d.ts +17 -2
  386. package/dest/kernel/private_call_request.d.ts.map +1 -1
  387. package/dest/kernel/private_call_request.js +1 -1
  388. package/dest/kernel/private_circuit_public_inputs.d.ts +127 -54
  389. package/dest/kernel/private_circuit_public_inputs.d.ts.map +1 -1
  390. package/dest/kernel/private_circuit_public_inputs.js +72 -72
  391. package/dest/kernel/private_context_inputs.d.ts +2 -2
  392. package/dest/kernel/private_context_inputs.d.ts.map +1 -1
  393. package/dest/kernel/private_kernel_circuit_public_inputs.d.ts +34 -4
  394. package/dest/kernel/private_kernel_circuit_public_inputs.d.ts.map +1 -1
  395. package/dest/kernel/private_kernel_circuit_public_inputs.js +5 -5
  396. package/dest/kernel/private_kernel_data.d.ts +7 -1
  397. package/dest/kernel/private_kernel_data.d.ts.map +1 -1
  398. package/dest/kernel/private_kernel_init_circuit_private_inputs.d.ts +23 -2
  399. package/dest/kernel/private_kernel_init_circuit_private_inputs.d.ts.map +1 -1
  400. package/dest/kernel/private_kernel_init_circuit_private_inputs.js +1 -1
  401. package/dest/kernel/private_kernel_inner_circuit_private_inputs.d.ts +7 -1
  402. package/dest/kernel/private_kernel_inner_circuit_private_inputs.d.ts.map +1 -1
  403. package/dest/kernel/private_kernel_reset_circuit_private_inputs.d.ts +4 -1
  404. package/dest/kernel/private_kernel_reset_circuit_private_inputs.d.ts.map +1 -1
  405. package/dest/kernel/private_kernel_tail_circuit_private_inputs.d.ts +12 -3
  406. package/dest/kernel/private_kernel_tail_circuit_private_inputs.d.ts.map +1 -1
  407. package/dest/kernel/private_kernel_tail_circuit_private_inputs.js +4 -4
  408. package/dest/kernel/private_kernel_tail_circuit_public_inputs.d.ts +26 -4
  409. package/dest/kernel/private_kernel_tail_circuit_public_inputs.d.ts.map +1 -1
  410. package/dest/kernel/private_kernel_tail_circuit_public_inputs.js +8 -8
  411. package/dest/kernel/private_log_data.d.ts +2 -2
  412. package/dest/kernel/private_log_data.d.ts.map +1 -1
  413. package/dest/kernel/private_log_data.js +5 -2
  414. package/dest/kernel/private_to_avm_accumulated_data.d.ts +4 -4
  415. package/dest/kernel/private_to_avm_accumulated_data.d.ts.map +1 -1
  416. package/dest/kernel/private_to_avm_accumulated_data.js +6 -3
  417. package/dest/kernel/private_to_public_accumulated_data.d.ts +2 -2
  418. package/dest/kernel/private_to_public_accumulated_data.d.ts.map +1 -1
  419. package/dest/kernel/private_to_public_accumulated_data.js +4 -2
  420. package/dest/kernel/private_to_public_accumulated_data_builder.d.ts +2 -2
  421. package/dest/kernel/private_to_public_accumulated_data_builder.d.ts.map +1 -1
  422. package/dest/kernel/private_to_public_accumulated_data_builder.js +1 -1
  423. package/dest/kernel/private_to_public_kernel_circuit_public_inputs.d.ts +4 -4
  424. package/dest/kernel/private_to_public_kernel_circuit_public_inputs.d.ts.map +1 -1
  425. package/dest/kernel/private_to_public_kernel_circuit_public_inputs.js +8 -8
  426. package/dest/kernel/private_to_rollup_accumulated_data.d.ts +18 -2
  427. package/dest/kernel/private_to_rollup_accumulated_data.d.ts.map +1 -1
  428. package/dest/kernel/private_to_rollup_accumulated_data.js +4 -2
  429. package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.d.ts +19 -4
  430. package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.d.ts.map +1 -1
  431. package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.js +8 -8
  432. package/dest/kernel/private_validation_requests.d.ts +13 -4
  433. package/dest/kernel/private_validation_requests.d.ts.map +1 -1
  434. package/dest/kernel/private_validation_requests.js +12 -10
  435. package/dest/kernel/public_call_request.d.ts +23 -2
  436. package/dest/kernel/public_call_request.d.ts.map +1 -1
  437. package/dest/kernel/public_call_request.js +6 -3
  438. package/dest/kernel/utils/optional_number.d.ts +8 -2
  439. package/dest/kernel/utils/optional_number.d.ts.map +1 -1
  440. package/dest/keys/derivation.d.ts +7 -6
  441. package/dest/keys/derivation.d.ts.map +1 -1
  442. package/dest/keys/derivation.js +20 -17
  443. package/dest/keys/key_types.d.ts +3 -3
  444. package/dest/keys/key_types.d.ts.map +1 -1
  445. package/dest/keys/public_key.d.ts +2 -2
  446. package/dest/keys/public_key.d.ts.map +1 -1
  447. package/dest/keys/public_keys.d.ts +7 -2
  448. package/dest/keys/public_keys.d.ts.map +1 -1
  449. package/dest/keys/public_keys.js +5 -4
  450. package/dest/keys/utils.d.ts +1 -1
  451. package/dest/keys/utils.d.ts.map +1 -1
  452. package/dest/keys/utils.js +8 -4
  453. package/dest/l1-contracts/slash_factory.d.ts +3 -2
  454. package/dest/l1-contracts/slash_factory.d.ts.map +1 -1
  455. package/dest/l1-contracts/slash_factory.js +2 -1
  456. package/dest/logs/contract_class_log.d.ts +2 -2
  457. package/dest/logs/contract_class_log.d.ts.map +1 -1
  458. package/dest/logs/contract_class_log.js +5 -3
  459. package/dest/logs/debug_log.d.ts +2 -2
  460. package/dest/logs/debug_log.d.ts.map +1 -1
  461. package/dest/logs/debug_log.js +1 -1
  462. package/dest/logs/debug_log_store.d.ts +30 -0
  463. package/dest/logs/debug_log_store.d.ts.map +1 -0
  464. package/dest/logs/debug_log_store.js +30 -0
  465. package/dest/logs/extended_contract_class_log.d.ts +3 -1
  466. package/dest/logs/extended_contract_class_log.d.ts.map +1 -1
  467. package/dest/logs/extended_directional_app_tagging_secret.d.ts +47 -0
  468. package/dest/logs/extended_directional_app_tagging_secret.d.ts.map +1 -0
  469. package/dest/logs/{directional_app_tagging_secret.js → extended_directional_app_tagging_secret.js} +26 -17
  470. package/dest/logs/extended_public_log.d.ts +20 -4
  471. package/dest/logs/extended_public_log.d.ts.map +1 -1
  472. package/dest/logs/index.d.ts +5 -3
  473. package/dest/logs/index.d.ts.map +1 -1
  474. package/dest/logs/index.js +4 -2
  475. package/dest/logs/log_id.d.ts +29 -11
  476. package/dest/logs/log_id.d.ts.map +1 -1
  477. package/dest/logs/log_id.js +27 -16
  478. package/dest/logs/message_context.d.ts +2 -2
  479. package/dest/logs/message_context.d.ts.map +1 -1
  480. package/dest/logs/message_context.js +1 -1
  481. package/dest/logs/pending_tagged_log.d.ts +2 -2
  482. package/dest/logs/pending_tagged_log.d.ts.map +1 -1
  483. package/dest/logs/pending_tagged_log.js +1 -1
  484. package/dest/logs/pre_tag.d.ts +16 -11
  485. package/dest/logs/pre_tag.d.ts.map +1 -1
  486. package/dest/logs/pre_tag.js +2 -2
  487. package/dest/logs/private_log.d.ts +3 -3
  488. package/dest/logs/private_log.d.ts.map +1 -1
  489. package/dest/logs/private_log.js +6 -3
  490. package/dest/logs/public_log.d.ts +3 -2
  491. package/dest/logs/public_log.d.ts.map +1 -1
  492. package/dest/logs/public_log.js +7 -2
  493. package/dest/logs/shared_secret_derivation.d.ts +2 -2
  494. package/dest/logs/shared_secret_derivation.d.ts.map +1 -1
  495. package/dest/logs/shared_secret_derivation.js +1 -1
  496. package/dest/logs/siloed_tag.d.ts +25 -0
  497. package/dest/logs/siloed_tag.d.ts.map +1 -0
  498. package/dest/logs/siloed_tag.js +32 -0
  499. package/dest/logs/tag.d.ts +21 -0
  500. package/dest/logs/tag.d.ts.map +1 -0
  501. package/dest/logs/tag.js +30 -0
  502. package/dest/logs/tx_scoped_l2_log.d.ts +32 -38
  503. package/dest/logs/tx_scoped_l2_log.d.ts.map +1 -1
  504. package/dest/logs/tx_scoped_l2_log.js +40 -45
  505. package/dest/messaging/in_hash.d.ts +5 -3
  506. package/dest/messaging/in_hash.d.ts.map +1 -1
  507. package/dest/messaging/in_hash.js +4 -2
  508. package/dest/messaging/inbox_leaf.d.ts +10 -7
  509. package/dest/messaging/inbox_leaf.d.ts.map +1 -1
  510. package/dest/messaging/inbox_leaf.js +10 -9
  511. package/dest/messaging/l1_actor.d.ts +8 -2
  512. package/dest/messaging/l1_actor.d.ts.map +1 -1
  513. package/dest/messaging/l1_actor.js +2 -2
  514. package/dest/messaging/l1_to_l2_message.d.ts +7 -2
  515. package/dest/messaging/l1_to_l2_message.d.ts.map +1 -1
  516. package/dest/messaging/l1_to_l2_message.js +2 -2
  517. package/dest/messaging/l1_to_l2_message_source.d.ts +6 -10
  518. package/dest/messaging/l1_to_l2_message_source.d.ts.map +1 -1
  519. package/dest/messaging/l2_actor.d.ts +8 -2
  520. package/dest/messaging/l2_actor.d.ts.map +1 -1
  521. package/dest/messaging/l2_actor.js +2 -2
  522. package/dest/messaging/l2_to_l1_membership.d.ts +89 -6
  523. package/dest/messaging/l2_to_l1_membership.d.ts.map +1 -1
  524. package/dest/messaging/l2_to_l1_membership.js +161 -43
  525. package/dest/messaging/l2_to_l1_message.d.ts +3 -2
  526. package/dest/messaging/l2_to_l1_message.d.ts.map +1 -1
  527. package/dest/messaging/l2_to_l1_message.js +4 -1
  528. package/dest/messaging/out_hash.d.ts +42 -4
  529. package/dest/messaging/out_hash.d.ts.map +1 -1
  530. package/dest/messaging/out_hash.js +55 -20
  531. package/dest/note/index.d.ts +1 -2
  532. package/dest/note/index.d.ts.map +1 -1
  533. package/dest/note/index.js +0 -1
  534. package/dest/note/note.d.ts +2 -2
  535. package/dest/note/note.d.ts.map +1 -1
  536. package/dest/note/note.js +5 -2
  537. package/dest/note/note_dao.d.ts +48 -9
  538. package/dest/note/note_dao.d.ts.map +1 -1
  539. package/dest/note/note_dao.js +29 -15
  540. package/dest/p2p/attestation_utils.d.ts +13 -3
  541. package/dest/p2p/attestation_utils.d.ts.map +1 -1
  542. package/dest/p2p/attestation_utils.js +46 -1
  543. package/dest/p2p/block_proposal.d.ts +103 -24
  544. package/dest/p2p/block_proposal.d.ts.map +1 -1
  545. package/dest/p2p/block_proposal.js +140 -40
  546. package/dest/p2p/checkpoint_attestation.d.ts +82 -0
  547. package/dest/p2p/checkpoint_attestation.d.ts.map +1 -0
  548. package/dest/p2p/{block_attestation.js → checkpoint_attestation.js} +24 -20
  549. package/dest/p2p/checkpoint_proposal.d.ts +179 -0
  550. package/dest/p2p/checkpoint_proposal.d.ts.map +1 -0
  551. package/dest/p2p/checkpoint_proposal.js +243 -0
  552. package/dest/p2p/client_type.d.ts +2 -5
  553. package/dest/p2p/client_type.d.ts.map +1 -1
  554. package/dest/p2p/client_type.js +0 -7
  555. package/dest/p2p/consensus_payload.d.ts +21 -12
  556. package/dest/p2p/consensus_payload.d.ts.map +1 -1
  557. package/dest/p2p/consensus_payload.js +25 -20
  558. package/dest/p2p/constants.d.ts +5 -0
  559. package/dest/p2p/constants.d.ts.map +1 -0
  560. package/dest/p2p/constants.js +3 -0
  561. package/dest/p2p/gossipable.d.ts +4 -3
  562. package/dest/p2p/gossipable.d.ts.map +1 -1
  563. package/dest/p2p/gossipable.js +16 -5
  564. package/dest/p2p/index.d.ts +5 -3
  565. package/dest/p2p/index.d.ts.map +1 -1
  566. package/dest/p2p/index.js +4 -2
  567. package/dest/p2p/message_validator.d.ts +18 -3
  568. package/dest/p2p/message_validator.d.ts.map +1 -1
  569. package/dest/p2p/message_validator.js +2 -1
  570. package/dest/p2p/signature_utils.d.ts +5 -3
  571. package/dest/p2p/signature_utils.d.ts.map +1 -1
  572. package/dest/p2p/signature_utils.js +5 -2
  573. package/dest/p2p/signed_txs.d.ts +42 -0
  574. package/dest/p2p/signed_txs.d.ts.map +1 -0
  575. package/dest/p2p/signed_txs.js +75 -0
  576. package/dest/p2p/topic_type.d.ts +5 -5
  577. package/dest/p2p/topic_type.d.ts.map +1 -1
  578. package/dest/p2p/topic_type.js +9 -19
  579. package/dest/parity/parity_base_private_inputs.d.ts +4 -2
  580. package/dest/parity/parity_base_private_inputs.d.ts.map +1 -1
  581. package/dest/parity/parity_base_private_inputs.js +1 -1
  582. package/dest/parity/parity_public_inputs.d.ts +5 -2
  583. package/dest/parity/parity_public_inputs.d.ts.map +1 -1
  584. package/dest/parity/parity_public_inputs.js +1 -1
  585. package/dest/parity/parity_root_private_inputs.d.ts +2 -1
  586. package/dest/parity/parity_root_private_inputs.d.ts.map +1 -1
  587. package/dest/proofs/chonk_proof.d.ts +2 -2
  588. package/dest/proofs/chonk_proof.d.ts.map +1 -1
  589. package/dest/proofs/chonk_proof.js +11 -6
  590. package/dest/proofs/proof.d.ts +5 -2
  591. package/dest/proofs/proof.d.ts.map +1 -1
  592. package/dest/proofs/proof.js +1 -1
  593. package/dest/proofs/proof_data.d.ts +13 -1
  594. package/dest/proofs/proof_data.d.ts.map +1 -1
  595. package/dest/proofs/proof_data.js +17 -0
  596. package/dest/proofs/recursive_proof.d.ts +11 -2
  597. package/dest/proofs/recursive_proof.d.ts.map +1 -1
  598. package/dest/proofs/recursive_proof.js +1 -1
  599. package/dest/rollup/avm_proof_data.d.ts +3 -5
  600. package/dest/rollup/avm_proof_data.d.ts.map +1 -1
  601. package/dest/rollup/avm_proof_data.js +1 -9
  602. package/dest/rollup/base_rollup_hints.d.ts +35 -2
  603. package/dest/rollup/base_rollup_hints.d.ts.map +1 -1
  604. package/dest/rollup/base_rollup_hints.js +1 -1
  605. package/dest/rollup/block_constant_data.d.ts +13 -2
  606. package/dest/rollup/block_constant_data.d.ts.map +1 -1
  607. package/dest/rollup/block_constant_data.js +1 -1
  608. package/dest/rollup/block_headers_hash.d.ts +2 -2
  609. package/dest/rollup/block_headers_hash.d.ts.map +1 -1
  610. package/dest/rollup/block_headers_hash.js +2 -2
  611. package/dest/rollup/block_merge_rollup_private_inputs.d.ts +4 -1
  612. package/dest/rollup/block_merge_rollup_private_inputs.d.ts.map +1 -1
  613. package/dest/rollup/block_rollup_public_inputs.d.ts +48 -12
  614. package/dest/rollup/block_rollup_public_inputs.d.ts.map +1 -1
  615. package/dest/rollup/block_rollup_public_inputs.js +9 -13
  616. package/dest/rollup/block_root_rollup_private_inputs.d.ts +65 -2
  617. package/dest/rollup/block_root_rollup_private_inputs.d.ts.map +1 -1
  618. package/dest/rollup/block_root_rollup_private_inputs.js +1 -1
  619. package/dest/rollup/checkpoint_constant_data.d.ts +12 -2
  620. package/dest/rollup/checkpoint_constant_data.d.ts.map +1 -1
  621. package/dest/rollup/checkpoint_constant_data.js +5 -2
  622. package/dest/rollup/checkpoint_header.d.ts +47 -13
  623. package/dest/rollup/checkpoint_header.d.ts.map +1 -1
  624. package/dest/rollup/checkpoint_header.js +55 -22
  625. package/dest/rollup/checkpoint_merge_rollup_private_inputs.d.ts +4 -1
  626. package/dest/rollup/checkpoint_merge_rollup_private_inputs.d.ts.map +1 -1
  627. package/dest/rollup/checkpoint_rollup_public_inputs.d.ts +47 -7
  628. package/dest/rollup/checkpoint_rollup_public_inputs.d.ts.map +1 -1
  629. package/dest/rollup/checkpoint_rollup_public_inputs.js +12 -4
  630. package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts +46 -4
  631. package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts.map +1 -1
  632. package/dest/rollup/checkpoint_root_rollup_private_inputs.js +15 -3
  633. package/dest/rollup/epoch_constant_data.d.ts +17 -2
  634. package/dest/rollup/epoch_constant_data.d.ts.map +1 -1
  635. package/dest/rollup/epoch_constant_data.js +1 -1
  636. package/dest/rollup/public_chonk_verifier_private_inputs.d.ts +2 -2
  637. package/dest/rollup/public_chonk_verifier_private_inputs.d.ts.map +1 -1
  638. package/dest/rollup/public_chonk_verifier_private_inputs.js +1 -1
  639. package/dest/rollup/public_chonk_verifier_public_inputs.d.ts +2 -2
  640. package/dest/rollup/public_chonk_verifier_public_inputs.d.ts.map +1 -1
  641. package/dest/rollup/public_chonk_verifier_public_inputs.js +1 -1
  642. package/dest/rollup/public_tx_base_rollup_private_inputs.d.ts +1 -1
  643. package/dest/rollup/public_tx_base_rollup_private_inputs.d.ts.map +1 -1
  644. package/dest/rollup/public_tx_base_rollup_private_inputs.js +2 -2
  645. package/dest/rollup/root_rollup_private_inputs.d.ts +6 -1
  646. package/dest/rollup/root_rollup_private_inputs.d.ts.map +1 -1
  647. package/dest/rollup/root_rollup_public_inputs.d.ts +22 -7
  648. package/dest/rollup/root_rollup_public_inputs.d.ts.map +1 -1
  649. package/dest/rollup/root_rollup_public_inputs.js +11 -5
  650. package/dest/rollup/tree_snapshot_diff_hints.d.ts +25 -2
  651. package/dest/rollup/tree_snapshot_diff_hints.d.ts.map +1 -1
  652. package/dest/rollup/tree_snapshot_diff_hints.js +1 -1
  653. package/dest/rollup/tx_merge_rollup_private_inputs.d.ts +4 -1
  654. package/dest/rollup/tx_merge_rollup_private_inputs.d.ts.map +1 -1
  655. package/dest/rollup/tx_rollup_public_inputs.d.ts +30 -2
  656. package/dest/rollup/tx_rollup_public_inputs.d.ts.map +1 -1
  657. package/dest/rollup/tx_rollup_public_inputs.js +1 -1
  658. package/dest/schemas/schemas.d.ts +7 -4
  659. package/dest/schemas/schemas.d.ts.map +1 -1
  660. package/dest/schemas/schemas.js +2 -1
  661. package/dest/slashing/empire.d.ts +1 -1
  662. package/dest/slashing/empire.d.ts.map +1 -1
  663. package/dest/slashing/empire.js +2 -0
  664. package/dest/slashing/helpers.d.ts +2 -2
  665. package/dest/slashing/helpers.d.ts.map +1 -1
  666. package/dest/slashing/helpers.js +6 -0
  667. package/dest/slashing/tally.d.ts +2 -1
  668. package/dest/slashing/tally.d.ts.map +1 -1
  669. package/dest/slashing/tally.js +6 -2
  670. package/dest/slashing/types.d.ts +10 -7
  671. package/dest/slashing/types.d.ts.map +1 -1
  672. package/dest/slashing/types.js +18 -6
  673. package/dest/snapshots/types.d.ts +1 -1
  674. package/dest/snapshots/types.d.ts.map +1 -1
  675. package/dest/snapshots/types.js +5 -5
  676. package/dest/stats/stats.d.ts +10 -8
  677. package/dest/stats/stats.d.ts.map +1 -1
  678. package/dest/tests/factories.d.ts +44 -12
  679. package/dest/tests/factories.d.ts.map +1 -1
  680. package/dest/tests/factories.js +118 -43
  681. package/dest/tests/jest.js +1 -1
  682. package/dest/tests/mocks.d.ts +90 -19
  683. package/dest/tests/mocks.d.ts.map +1 -1
  684. package/dest/tests/mocks.js +195 -65
  685. package/dest/timetable/index.d.ts +37 -0
  686. package/dest/timetable/index.d.ts.map +1 -0
  687. package/dest/timetable/index.js +39 -0
  688. package/dest/trees/append_only_tree_snapshot.d.ts +14 -2
  689. package/dest/trees/append_only_tree_snapshot.d.ts.map +1 -1
  690. package/dest/trees/append_only_tree_snapshot.js +4 -2
  691. package/dest/trees/database_public_state_source.d.ts +2 -2
  692. package/dest/trees/database_public_state_source.d.ts.map +1 -1
  693. package/dest/trees/database_public_state_source.js +1 -1
  694. package/dest/trees/nullifier_leaf.d.ts +14 -2
  695. package/dest/trees/nullifier_leaf.d.ts.map +1 -1
  696. package/dest/trees/nullifier_leaf.js +1 -1
  697. package/dest/trees/nullifier_membership_witness.d.ts +11 -2
  698. package/dest/trees/nullifier_membership_witness.d.ts.map +1 -1
  699. package/dest/trees/nullifier_membership_witness.js +1 -1
  700. package/dest/trees/public_data_leaf.d.ts +18 -2
  701. package/dest/trees/public_data_leaf.d.ts.map +1 -1
  702. package/dest/trees/public_data_leaf.js +8 -7
  703. package/dest/trees/public_data_witness.d.ts +12 -2
  704. package/dest/trees/public_data_witness.d.ts.map +1 -1
  705. package/dest/trees/public_data_witness.js +1 -1
  706. package/dest/tx/block_header.d.ts +25 -12
  707. package/dest/tx/block_header.d.ts.map +1 -1
  708. package/dest/tx/block_header.js +16 -5
  709. package/dest/tx/call_context.d.ts +14 -2
  710. package/dest/tx/call_context.d.ts.map +1 -1
  711. package/dest/tx/call_context.js +3 -1
  712. package/dest/tx/capsule.d.ts +5 -2
  713. package/dest/tx/capsule.d.ts.map +1 -1
  714. package/dest/tx/capsule.js +1 -1
  715. package/dest/tx/execution_payload.d.ts +9 -1
  716. package/dest/tx/execution_payload.d.ts.map +1 -1
  717. package/dest/tx/function_data.d.ts +5 -3
  718. package/dest/tx/function_data.d.ts.map +1 -1
  719. package/dest/tx/function_data.js +1 -1
  720. package/dest/tx/global_variable_builder.d.ts +5 -3
  721. package/dest/tx/global_variable_builder.d.ts.map +1 -1
  722. package/dest/tx/global_variables.d.ts +27 -12
  723. package/dest/tx/global_variables.d.ts.map +1 -1
  724. package/dest/tx/global_variables.js +11 -9
  725. package/dest/tx/hashed_values.d.ts +8 -2
  726. package/dest/tx/hashed_values.d.ts.map +1 -1
  727. package/dest/tx/hashed_values.js +1 -1
  728. package/dest/tx/in_tx.d.ts +26 -0
  729. package/dest/tx/in_tx.d.ts.map +1 -0
  730. package/dest/tx/in_tx.js +14 -0
  731. package/dest/tx/index.d.ts +2 -2
  732. package/dest/tx/index.d.ts.map +1 -1
  733. package/dest/tx/index.js +1 -1
  734. package/dest/tx/indexed_tx_effect.d.ts +14 -10
  735. package/dest/tx/indexed_tx_effect.d.ts.map +1 -1
  736. package/dest/tx/indexed_tx_effect.js +8 -6
  737. package/dest/tx/offchain_effect.d.ts +2 -2
  738. package/dest/tx/offchain_effect.d.ts.map +1 -1
  739. package/dest/tx/offchain_effect.js +1 -1
  740. package/dest/tx/partial_state_reference.d.ts +5 -2
  741. package/dest/tx/partial_state_reference.d.ts.map +1 -1
  742. package/dest/tx/private_execution_result.d.ts +27 -10
  743. package/dest/tx/private_execution_result.d.ts.map +1 -1
  744. package/dest/tx/private_execution_result.js +6 -23
  745. package/dest/tx/private_tx_constant_data.d.ts +17 -2
  746. package/dest/tx/private_tx_constant_data.d.ts.map +1 -1
  747. package/dest/tx/private_tx_constant_data.js +1 -1
  748. package/dest/tx/processed_tx.d.ts +5 -4
  749. package/dest/tx/processed_tx.d.ts.map +1 -1
  750. package/dest/tx/processed_tx.js +8 -7
  751. package/dest/tx/profiling.d.ts +153 -30
  752. package/dest/tx/profiling.d.ts.map +1 -1
  753. package/dest/tx/profiling.js +48 -11
  754. package/dest/tx/protocol_contracts.d.ts +3 -3
  755. package/dest/tx/protocol_contracts.d.ts.map +1 -1
  756. package/dest/tx/protocol_contracts.js +3 -3
  757. package/dest/tx/public_call_request_with_calldata.d.ts +8 -2
  758. package/dest/tx/public_call_request_with_calldata.d.ts.map +1 -1
  759. package/dest/tx/public_call_request_with_calldata.js +4 -2
  760. package/dest/tx/public_simulation_output.d.ts +5 -3
  761. package/dest/tx/public_simulation_output.d.ts.map +1 -1
  762. package/dest/tx/public_simulation_output.js +8 -4
  763. package/dest/tx/simulated_tx.d.ts +1031 -7
  764. package/dest/tx/simulated_tx.d.ts.map +1 -1
  765. package/dest/tx/state_reference.d.ts +4 -2
  766. package/dest/tx/state_reference.d.ts.map +1 -1
  767. package/dest/tx/state_reference.js +3 -1
  768. package/dest/tx/tree_snapshots.d.ts +2 -2
  769. package/dest/tx/tree_snapshots.d.ts.map +1 -1
  770. package/dest/tx/tree_snapshots.js +3 -1
  771. package/dest/tx/tx.d.ts +35 -5
  772. package/dest/tx/tx.d.ts.map +1 -1
  773. package/dest/tx/tx.js +20 -7
  774. package/dest/tx/tx_constant_data.d.ts +2 -2
  775. package/dest/tx/tx_constant_data.d.ts.map +1 -1
  776. package/dest/tx/tx_constant_data.js +1 -1
  777. package/dest/tx/tx_context.d.ts +3 -2
  778. package/dest/tx/tx_context.d.ts.map +1 -1
  779. package/dest/tx/tx_context.js +1 -1
  780. package/dest/tx/tx_effect.d.ts +33 -7
  781. package/dest/tx/tx_effect.d.ts.map +1 -1
  782. package/dest/tx/tx_effect.js +8 -11
  783. package/dest/tx/tx_execution_request.d.ts +31 -2
  784. package/dest/tx/tx_execution_request.d.ts.map +1 -1
  785. package/dest/tx/tx_execution_request.js +7 -3
  786. package/dest/tx/tx_hash.d.ts +3 -2
  787. package/dest/tx/tx_hash.d.ts.map +1 -1
  788. package/dest/tx/tx_hash.js +1 -1
  789. package/dest/tx/tx_receipt.d.ts +64 -15
  790. package/dest/tx/tx_receipt.d.ts.map +1 -1
  791. package/dest/tx/tx_receipt.js +57 -17
  792. package/dest/tx/tx_request.d.ts +7 -2
  793. package/dest/tx/tx_request.d.ts.map +1 -1
  794. package/dest/tx/tx_request.js +4 -4
  795. package/dest/tx/validator/empty_validator.d.ts +2 -2
  796. package/dest/tx/validator/empty_validator.d.ts.map +1 -1
  797. package/dest/tx/validator/error_texts.d.ts +3 -2
  798. package/dest/tx/validator/error_texts.d.ts.map +1 -1
  799. package/dest/tx/validator/error_texts.js +3 -1
  800. package/dest/tx/validator/tx_validator.d.ts +2 -5
  801. package/dest/tx/validator/tx_validator.d.ts.map +1 -1
  802. package/dest/tx/validator/tx_validator.js +4 -4
  803. package/dest/types/shared.d.ts +4 -1
  804. package/dest/types/shared.d.ts.map +1 -1
  805. package/dest/update-checker/update-checker.d.ts +2 -2
  806. package/dest/update-checker/update-checker.d.ts.map +1 -1
  807. package/dest/update-checker/update-checker.js +1 -1
  808. package/dest/validators/errors.d.ts +2 -2
  809. package/dest/validators/errors.d.ts.map +1 -1
  810. package/dest/validators/schemas.d.ts +38 -38
  811. package/dest/validators/schemas.d.ts.map +1 -1
  812. package/dest/validators/schemas.js +17 -16
  813. package/dest/validators/types.d.ts +3 -3
  814. package/dest/validators/types.d.ts.map +1 -1
  815. package/dest/versioning/versioning.d.ts +2 -2
  816. package/dest/versioning/versioning.d.ts.map +1 -1
  817. package/dest/vks/verification_key.d.ts +23 -2
  818. package/dest/vks/verification_key.d.ts.map +1 -1
  819. package/dest/vks/verification_key.js +1 -1
  820. package/dest/vks/vk_data.d.ts +8 -2
  821. package/dest/vks/vk_data.d.ts.map +1 -1
  822. package/dest/vks/vk_data.js +1 -1
  823. package/dest/zkpassport/index.d.ts +4 -5
  824. package/dest/zkpassport/index.d.ts.map +1 -1
  825. package/dest/zkpassport/index.js +11 -11
  826. package/package.json +34 -15
  827. package/src/abi/abi.ts +40 -34
  828. package/src/abi/authorization_selector.ts +3 -2
  829. package/src/abi/buffer.ts +1 -1
  830. package/src/abi/contract_artifact.ts +10 -10
  831. package/src/abi/decoder.ts +2 -5
  832. package/src/abi/encoder.ts +9 -6
  833. package/src/abi/event_selector.ts +3 -2
  834. package/src/abi/function_call.ts +26 -4
  835. package/src/abi/function_selector.ts +11 -2
  836. package/src/abi/note_selector.ts +2 -2
  837. package/src/abi/selector.ts +1 -1
  838. package/src/abi/utils.ts +17 -0
  839. package/src/auth_witness/auth_witness.ts +5 -5
  840. package/src/avm/avm.ts +338 -20
  841. package/src/avm/avm_accumulated_data.ts +1 -1
  842. package/src/avm/avm_circuit_public_inputs.ts +1 -1
  843. package/src/avm/contract_storage_read.ts +1 -1
  844. package/src/avm/contract_storage_update_request.ts +1 -1
  845. package/src/avm/message_pack.ts +2 -1
  846. package/src/avm/public_call_stack_item_compressed.ts +1 -1
  847. package/src/avm/public_data_read.ts +1 -1
  848. package/src/avm/public_data_update_request.ts +1 -1
  849. package/src/avm/public_data_write.ts +1 -1
  850. package/src/avm/public_inner_call_request.ts +1 -1
  851. package/src/avm/revert_code.ts +16 -1
  852. package/src/aztec-address/index.ts +2 -1
  853. package/src/block/attestation_info.ts +10 -7
  854. package/src/block/block_data.ts +26 -0
  855. package/src/block/block_hash.ts +27 -26
  856. package/src/block/block_parameter.ts +10 -0
  857. package/src/block/body.ts +2 -1
  858. package/src/block/checkpointed_l2_block.ts +70 -0
  859. package/src/block/in_block.ts +28 -15
  860. package/src/block/index.ts +3 -4
  861. package/src/block/l2_block.ts +107 -141
  862. package/src/block/l2_block_info.ts +11 -10
  863. package/src/block/l2_block_source.ts +218 -71
  864. package/src/block/l2_block_stream/index.ts +1 -0
  865. package/src/block/l2_block_stream/interfaces.ts +15 -4
  866. package/src/block/l2_block_stream/l2_block_stream.ts +163 -37
  867. package/src/block/l2_block_stream/l2_tips_memory_store.ts +63 -54
  868. package/src/block/l2_block_stream/l2_tips_store_base.ts +226 -0
  869. package/src/block/proposal/attestations_and_signers.ts +1 -1
  870. package/src/block/proposal/committee_attestation.ts +1 -1
  871. package/src/block/test/l2_tips_store_test_suite.ts +486 -36
  872. package/src/block/validate_block_result.ts +40 -35
  873. package/src/checkpoint/checkpoint.ts +115 -27
  874. package/src/checkpoint/checkpoint_data.ts +51 -0
  875. package/src/checkpoint/checkpoint_info.ts +52 -0
  876. package/src/checkpoint/index.ts +2 -0
  877. package/src/checkpoint/published_checkpoint.ts +26 -9
  878. package/src/config/index.ts +1 -0
  879. package/src/config/node-rpc-config.ts +1 -1
  880. package/src/config/sequencer-config.ts +29 -0
  881. package/src/contract/artifact_hash.ts +2 -2
  882. package/src/contract/complete_address.ts +1 -1
  883. package/src/contract/contract_address.ts +6 -6
  884. package/src/contract/contract_class.ts +5 -5
  885. package/src/contract/contract_class_id.ts +8 -7
  886. package/src/contract/contract_instance.ts +1 -1
  887. package/src/contract/contract_instance_update.ts +1 -1
  888. package/src/contract/deployment_info.ts +1 -1
  889. package/src/contract/index.ts +0 -2
  890. package/src/contract/interfaces/contract_class.ts +78 -47
  891. package/src/contract/interfaces/contract_data_source.ts +3 -2
  892. package/src/contract/interfaces/contract_instance.ts +48 -16
  893. package/src/contract/interfaces/contract_instance_update.ts +12 -10
  894. package/src/contract/interfaces/node-info.ts +3 -0
  895. package/src/contract/partial_address.ts +1 -1
  896. package/src/contract/private_function.ts +5 -5
  897. package/src/contract/private_function_membership_proof.ts +3 -3
  898. package/src/contract/utility_function_membership_proof.ts +1 -1
  899. package/src/database-version/database_version.ts +87 -0
  900. package/src/database-version/version_manager.ts +1 -77
  901. package/src/delayed_public_mutable/delayed_public_mutable_values.ts +11 -12
  902. package/src/delayed_public_mutable/delayed_public_mutable_values_with_hash.ts +1 -1
  903. package/src/delayed_public_mutable/scheduled_value_change.ts +1 -1
  904. package/src/deserialization/index.ts +21 -0
  905. package/src/epoch-helpers/index.ts +24 -10
  906. package/src/errors/simulation_error.ts +1 -1
  907. package/src/fees/transaction_fee.ts +1 -1
  908. package/src/file-store/local.ts +15 -5
  909. package/src/file-store/s3.ts +12 -3
  910. package/src/gas/gas.ts +1 -1
  911. package/src/gas/gas_fees.ts +1 -1
  912. package/src/gas/gas_settings.ts +1 -1
  913. package/src/ha-signing/config.ts +149 -0
  914. package/src/ha-signing/index.ts +18 -0
  915. package/src/ha-signing/types.ts +112 -0
  916. package/src/hash/hash.ts +15 -21
  917. package/src/hash/map_slot.ts +4 -3
  918. package/src/interfaces/allowed_element.ts +10 -8
  919. package/src/interfaces/api_limit.ts +2 -0
  920. package/src/interfaces/archiver.ts +54 -29
  921. package/src/interfaces/aztec-node-admin.ts +33 -6
  922. package/src/interfaces/aztec-node.ts +159 -174
  923. package/src/interfaces/block-builder.ts +52 -23
  924. package/src/interfaces/configs.ts +78 -33
  925. package/src/interfaces/epoch-prover.ts +4 -4
  926. package/src/interfaces/get_logs_response.ts +13 -9
  927. package/src/interfaces/l2_logs_source.ts +24 -14
  928. package/src/interfaces/merkle_tree_operations.ts +7 -3
  929. package/src/interfaces/p2p.ts +10 -25
  930. package/src/interfaces/prover-broker.ts +22 -0
  931. package/src/interfaces/prover-client.ts +35 -10
  932. package/src/interfaces/proving-job.ts +2 -11
  933. package/src/interfaces/public_state_source.ts +1 -1
  934. package/src/interfaces/server_circuit_prover.ts +3 -3
  935. package/src/interfaces/slasher.ts +28 -22
  936. package/src/interfaces/validator.ts +94 -32
  937. package/src/interfaces/world_state.ts +26 -18
  938. package/src/kernel/claimed_length_array.ts +1 -1
  939. package/src/kernel/hints/build_note_hash_read_request_hints.ts +34 -30
  940. package/src/kernel/hints/build_nullifier_read_request_hints.ts +33 -33
  941. package/src/kernel/hints/build_transient_data_hints.ts +17 -2
  942. package/src/kernel/hints/find_private_kernel_reset_dimensions.ts +2 -4
  943. package/src/kernel/hints/index.ts +2 -2
  944. package/src/kernel/hints/key_validation_hint.ts +1 -1
  945. package/src/kernel/hints/key_validation_request.ts +2 -1
  946. package/src/kernel/hints/key_validation_request_and_separator.ts +49 -0
  947. package/src/kernel/hints/note_hash_read_request_hints.ts +1 -1
  948. package/src/kernel/hints/read_request.ts +1 -1
  949. package/src/kernel/hints/{scoped_key_validation_request_and_generator.ts → scoped_key_validation_request_and_separator.ts} +11 -11
  950. package/src/kernel/hints/scoped_value_cache.ts +1 -1
  951. package/src/kernel/hints/transient_data_squashing_hint.ts +1 -1
  952. package/src/kernel/hints/tree_leaf_read_request.ts +1 -1
  953. package/src/kernel/log_hash.ts +1 -1
  954. package/src/kernel/note_hash.ts +1 -1
  955. package/src/kernel/nullifier.ts +1 -1
  956. package/src/kernel/padded_side_effects.ts +1 -1
  957. package/src/kernel/private_call_data.ts +1 -1
  958. package/src/kernel/private_call_request.ts +1 -1
  959. package/src/kernel/private_circuit_public_inputs.ts +100 -100
  960. package/src/kernel/private_context_inputs.ts +1 -1
  961. package/src/kernel/private_kernel_circuit_public_inputs.ts +3 -3
  962. package/src/kernel/private_kernel_init_circuit_private_inputs.ts +1 -1
  963. package/src/kernel/private_kernel_tail_circuit_private_inputs.ts +2 -2
  964. package/src/kernel/private_kernel_tail_circuit_public_inputs.ts +6 -6
  965. package/src/kernel/private_log_data.ts +1 -1
  966. package/src/kernel/private_to_avm_accumulated_data.ts +1 -1
  967. package/src/kernel/private_to_public_accumulated_data.ts +1 -1
  968. package/src/kernel/private_to_public_accumulated_data_builder.ts +1 -1
  969. package/src/kernel/private_to_public_kernel_circuit_public_inputs.ts +7 -7
  970. package/src/kernel/private_to_rollup_accumulated_data.ts +1 -1
  971. package/src/kernel/private_to_rollup_kernel_circuit_public_inputs.ts +7 -7
  972. package/src/kernel/private_validation_requests.ts +8 -8
  973. package/src/kernel/public_call_request.ts +1 -1
  974. package/src/kernel/utils/optional_number.ts +1 -1
  975. package/src/keys/derivation.ts +20 -17
  976. package/src/keys/key_types.ts +6 -2
  977. package/src/keys/public_key.ts +1 -1
  978. package/src/keys/public_keys.ts +5 -4
  979. package/src/keys/utils.ts +8 -4
  980. package/src/l1-contracts/slash_factory.ts +4 -1
  981. package/src/logs/contract_class_log.ts +2 -2
  982. package/src/logs/debug_log.ts +1 -1
  983. package/src/logs/debug_log_store.ts +54 -0
  984. package/src/logs/{directional_app_tagging_secret.ts → extended_directional_app_tagging_secret.ts} +28 -18
  985. package/src/logs/index.ts +4 -2
  986. package/src/logs/log_id.ts +32 -17
  987. package/src/logs/message_context.ts +1 -1
  988. package/src/logs/pending_tagged_log.ts +1 -1
  989. package/src/logs/pre_tag.ts +5 -5
  990. package/src/logs/private_log.ts +3 -2
  991. package/src/logs/public_log.ts +8 -1
  992. package/src/logs/shared_secret_derivation.ts +2 -2
  993. package/src/logs/siloed_tag.ts +50 -0
  994. package/src/logs/tag.ts +42 -0
  995. package/src/logs/tx_scoped_l2_log.ts +48 -45
  996. package/src/messaging/in_hash.ts +4 -2
  997. package/src/messaging/inbox_leaf.ts +11 -10
  998. package/src/messaging/l1_actor.ts +2 -2
  999. package/src/messaging/l1_to_l2_message.ts +3 -2
  1000. package/src/messaging/l1_to_l2_message_source.ts +5 -10
  1001. package/src/messaging/l2_actor.ts +2 -2
  1002. package/src/messaging/l2_to_l1_membership.ts +179 -52
  1003. package/src/messaging/l2_to_l1_message.ts +5 -1
  1004. package/src/messaging/out_hash.ts +63 -22
  1005. package/src/note/index.ts +0 -1
  1006. package/src/note/note.ts +5 -2
  1007. package/src/note/note_dao.ts +51 -15
  1008. package/src/p2p/attestation_utils.ts +59 -3
  1009. package/src/p2p/block_proposal.ts +214 -48
  1010. package/src/p2p/{block_attestation.ts → checkpoint_attestation.ts} +38 -26
  1011. package/src/p2p/checkpoint_proposal.ts +387 -0
  1012. package/src/p2p/client_type.ts +0 -6
  1013. package/src/p2p/consensus_payload.ts +30 -19
  1014. package/src/p2p/constants.ts +6 -0
  1015. package/src/p2p/gossipable.ts +14 -4
  1016. package/src/p2p/index.ts +4 -2
  1017. package/src/p2p/message_validator.ts +14 -2
  1018. package/src/p2p/signature_utils.ts +5 -2
  1019. package/src/p2p/signed_txs.ts +88 -0
  1020. package/src/p2p/topic_type.ts +10 -16
  1021. package/src/parity/parity_base_private_inputs.ts +1 -1
  1022. package/src/parity/parity_public_inputs.ts +1 -1
  1023. package/src/proofs/chonk_proof.ts +11 -7
  1024. package/src/proofs/proof.ts +1 -1
  1025. package/src/proofs/proof_data.ts +24 -0
  1026. package/src/proofs/recursive_proof.ts +1 -1
  1027. package/src/rollup/avm_proof_data.ts +2 -9
  1028. package/src/rollup/base_rollup_hints.ts +1 -1
  1029. package/src/rollup/block_constant_data.ts +1 -1
  1030. package/src/rollup/block_headers_hash.ts +2 -2
  1031. package/src/rollup/block_rollup_public_inputs.ts +6 -12
  1032. package/src/rollup/block_root_rollup_private_inputs.ts +1 -1
  1033. package/src/rollup/checkpoint_constant_data.ts +2 -1
  1034. package/src/rollup/checkpoint_header.ts +69 -20
  1035. package/src/rollup/checkpoint_rollup_public_inputs.ts +18 -6
  1036. package/src/rollup/checkpoint_root_rollup_private_inputs.ts +16 -2
  1037. package/src/rollup/epoch_constant_data.ts +1 -1
  1038. package/src/rollup/public_chonk_verifier_private_inputs.ts +1 -1
  1039. package/src/rollup/public_chonk_verifier_public_inputs.ts +1 -1
  1040. package/src/rollup/public_tx_base_rollup_private_inputs.ts +2 -2
  1041. package/src/rollup/root_rollup_public_inputs.ts +17 -8
  1042. package/src/rollup/tree_snapshot_diff_hints.ts +1 -1
  1043. package/src/rollup/tx_rollup_public_inputs.ts +1 -1
  1044. package/src/schemas/schemas.ts +6 -1
  1045. package/src/slashing/empire.ts +3 -1
  1046. package/src/slashing/helpers.ts +8 -0
  1047. package/src/slashing/tally.ts +8 -2
  1048. package/src/slashing/types.ts +38 -20
  1049. package/src/snapshots/types.ts +33 -29
  1050. package/src/stats/stats.ts +10 -7
  1051. package/src/tests/factories.ts +152 -61
  1052. package/src/tests/jest.ts +1 -1
  1053. package/src/tests/mocks.ts +302 -89
  1054. package/src/timetable/index.ts +66 -0
  1055. package/src/trees/append_only_tree_snapshot.ts +1 -1
  1056. package/src/trees/database_public_state_source.ts +1 -1
  1057. package/src/trees/nullifier_leaf.ts +1 -1
  1058. package/src/trees/nullifier_membership_witness.ts +1 -1
  1059. package/src/trees/public_data_leaf.ts +12 -6
  1060. package/src/trees/public_data_witness.ts +1 -1
  1061. package/src/tx/block_header.ts +27 -13
  1062. package/src/tx/call_context.ts +1 -1
  1063. package/src/tx/capsule.ts +1 -1
  1064. package/src/tx/function_data.ts +1 -1
  1065. package/src/tx/global_variable_builder.ts +9 -2
  1066. package/src/tx/global_variables.ts +16 -10
  1067. package/src/tx/hashed_values.ts +1 -1
  1068. package/src/tx/in_tx.ts +24 -0
  1069. package/src/tx/index.ts +1 -1
  1070. package/src/tx/indexed_tx_effect.ts +9 -7
  1071. package/src/tx/offchain_effect.ts +1 -1
  1072. package/src/tx/partial_state_reference.ts +1 -1
  1073. package/src/tx/private_execution_result.ts +6 -21
  1074. package/src/tx/private_tx_constant_data.ts +1 -1
  1075. package/src/tx/processed_tx.ts +19 -16
  1076. package/src/tx/profiling.ts +52 -10
  1077. package/src/tx/protocol_contracts.ts +4 -4
  1078. package/src/tx/public_call_request_with_calldata.ts +1 -1
  1079. package/src/tx/public_simulation_output.ts +5 -1
  1080. package/src/tx/state_reference.ts +1 -1
  1081. package/src/tx/tree_snapshots.ts +1 -1
  1082. package/src/tx/tx.ts +22 -13
  1083. package/src/tx/tx_constant_data.ts +1 -1
  1084. package/src/tx/tx_context.ts +1 -1
  1085. package/src/tx/tx_effect.ts +5 -12
  1086. package/src/tx/tx_execution_request.ts +3 -1
  1087. package/src/tx/tx_hash.ts +1 -1
  1088. package/src/tx/tx_receipt.ts +88 -20
  1089. package/src/tx/tx_request.ts +4 -4
  1090. package/src/tx/validator/empty_validator.ts +1 -1
  1091. package/src/tx/validator/error_texts.ts +4 -1
  1092. package/src/tx/validator/tx_validator.ts +9 -7
  1093. package/src/update-checker/update-checker.ts +2 -1
  1094. package/src/validators/errors.ts +1 -1
  1095. package/src/validators/schemas.ts +61 -48
  1096. package/src/validators/types.ts +5 -4
  1097. package/src/versioning/versioning.ts +1 -1
  1098. package/src/vks/verification_key.ts +1 -1
  1099. package/src/vks/vk_data.ts +1 -1
  1100. package/src/zkpassport/index.ts +13 -14
  1101. package/dest/block/l2_block_code_to_purge.d.ts +0 -12
  1102. package/dest/block/l2_block_code_to_purge.d.ts.map +0 -1
  1103. package/dest/block/l2_block_code_to_purge.js +0 -61
  1104. package/dest/block/l2_block_header.d.ts +0 -98
  1105. package/dest/block/l2_block_header.d.ts.map +0 -1
  1106. package/dest/block/l2_block_header.js +0 -153
  1107. package/dest/block/l2_block_new.d.ts +0 -108
  1108. package/dest/block/l2_block_new.d.ts.map +0 -1
  1109. package/dest/block/l2_block_new.js +0 -135
  1110. package/dest/block/l2_block_number.d.ts +0 -5
  1111. package/dest/block/l2_block_number.d.ts.map +0 -1
  1112. package/dest/block/l2_block_number.js +0 -6
  1113. package/dest/block/published_l2_block.d.ts +0 -130
  1114. package/dest/block/published_l2_block.d.ts.map +0 -1
  1115. package/dest/block/published_l2_block.js +0 -48
  1116. package/dest/contract/contract_class_metadata.d.ts +0 -8
  1117. package/dest/contract/contract_class_metadata.d.ts.map +0 -1
  1118. package/dest/contract/contract_class_metadata.js +0 -1
  1119. package/dest/contract/contract_metadata.d.ts +0 -7
  1120. package/dest/contract/contract_metadata.d.ts.map +0 -1
  1121. package/dest/contract/contract_metadata.js +0 -1
  1122. package/dest/database-version/index.d.ts +0 -2
  1123. package/dest/database-version/index.d.ts.map +0 -1
  1124. package/dest/database-version/index.js +0 -1
  1125. package/dest/kernel/hints/key_validation_request_and_generator.d.ts +0 -25
  1126. package/dest/kernel/hints/key_validation_request_and_generator.d.ts.map +0 -1
  1127. package/dest/logs/directional_app_tagging_secret.d.ts +0 -40
  1128. package/dest/logs/directional_app_tagging_secret.d.ts.map +0 -1
  1129. package/dest/logs/log_with_tx_data.d.ts +0 -19
  1130. package/dest/logs/log_with_tx_data.d.ts.map +0 -1
  1131. package/dest/logs/log_with_tx_data.js +0 -49
  1132. package/dest/note/notes_filter.d.ts +0 -25
  1133. package/dest/note/notes_filter.d.ts.map +0 -1
  1134. package/dest/note/notes_filter.js +0 -10
  1135. package/dest/p2p/block_attestation.d.ts +0 -80
  1136. package/dest/p2p/block_attestation.d.ts.map +0 -1
  1137. package/dest/tx/content_commitment.d.ts +0 -48
  1138. package/dest/tx/content_commitment.d.ts.map +0 -1
  1139. package/dest/tx/content_commitment.js +0 -82
  1140. package/src/block/l2_block_code_to_purge.ts +0 -88
  1141. package/src/block/l2_block_header.ts +0 -246
  1142. package/src/block/l2_block_new.ts +0 -171
  1143. package/src/block/l2_block_number.ts +0 -8
  1144. package/src/block/published_l2_block.ts +0 -65
  1145. package/src/contract/contract_class_metadata.ts +0 -8
  1146. package/src/contract/contract_metadata.ts +0 -7
  1147. package/src/database-version/index.ts +0 -1
  1148. package/src/kernel/hints/key_validation_request_and_generator.ts +0 -52
  1149. package/src/logs/log_with_tx_data.ts +0 -46
  1150. package/src/note/notes_filter.ts +0 -35
  1151. package/src/tx/content_commitment.ts +0 -104
@@ -1,4 +1,4 @@
1
- import { Fr } from '@aztec/foundation/fields';
1
+ import { Fr } from '@aztec/foundation/curves/bn254';
2
2
  import { bufferSchemaFor } from '@aztec/foundation/schemas';
3
3
  import { BufferReader, bigintToUInt64BE, serializeToBuffer } from '@aztec/foundation/serialize';
4
4
 
@@ -41,7 +41,7 @@ export class PrivateKernelCircuitPublicInputs {
41
41
  /**
42
42
  * The timestamp by which the transaction must be included in a block.
43
43
  */
44
- public includeByTimestamp: UInt64,
44
+ public expirationTimestamp: UInt64,
45
45
  /**
46
46
  * Wether this is a private only tx or not
47
47
  */
@@ -72,7 +72,7 @@ export class PrivateKernelCircuitPublicInputs {
72
72
  this.end,
73
73
  this.publicTeardownCallRequest,
74
74
  this.feePayer,
75
- bigintToUInt64BE(this.includeByTimestamp),
75
+ bigintToUInt64BE(this.expirationTimestamp),
76
76
  this.isPrivateOnly,
77
77
  this.claimedFirstNullifier,
78
78
  this.claimedRevertibleCounter,
@@ -1,4 +1,4 @@
1
- import { Fr } from '@aztec/foundation/fields';
1
+ import { Fr } from '@aztec/foundation/curves/bn254';
2
2
  import { BufferReader, serializeToBuffer } from '@aztec/foundation/serialize';
3
3
 
4
4
  import { ProtocolContracts } from '../tx/protocol_contracts.js';
@@ -20,7 +20,7 @@ export class PrivateKernelTailCircuitPrivateInputs {
20
20
  /**
21
21
  * The timestamp by which the transaction must be included in a block.
22
22
  */
23
- public includeByTimestampUpperBound: UInt64,
23
+ public expirationTimestampUpperBound: UInt64,
24
24
  ) {}
25
25
 
26
26
  isForPublic() {
@@ -38,7 +38,7 @@ export class PrivateKernelTailCircuitPrivateInputs {
38
38
  return serializeToBuffer(
39
39
  this.previousKernel,
40
40
  this.paddedSideEffectAmounts,
41
- bigintToUInt64BE(this.includeByTimestampUpperBound),
41
+ bigintToUInt64BE(this.expirationTimestampUpperBound),
42
42
  );
43
43
  }
44
44
 
@@ -1,4 +1,4 @@
1
- import { Fr } from '@aztec/foundation/fields';
1
+ import { Fr } from '@aztec/foundation/curves/bn254';
2
2
  import { bufferSchemaFor } from '@aztec/foundation/schemas';
3
3
  import { BufferReader, bigintToUInt64BE, serializeToBuffer } from '@aztec/foundation/serialize';
4
4
 
@@ -116,7 +116,7 @@ export class PrivateKernelTailCircuitPublicInputs {
116
116
  /**
117
117
  * The timestamp by which the transaction must be included in a block.
118
118
  */
119
- public includeByTimestamp: UInt64,
119
+ public expirationTimestamp: UInt64,
120
120
 
121
121
  public forPublic?: PartialPrivateTailPublicInputsForPublic,
122
122
  public forRollup?: PartialPrivateTailPublicInputsForRollup,
@@ -146,7 +146,7 @@ export class PrivateKernelTailCircuitPublicInputs {
146
146
  this.constants.getSize() +
147
147
  this.gasUsed.getSize() +
148
148
  this.feePayer.size +
149
- 8 // includeByTimestamp
149
+ 8 // expirationTimestamp
150
150
  );
151
151
  }
152
152
 
@@ -161,7 +161,7 @@ export class PrivateKernelTailCircuitPublicInputs {
161
161
  this.forPublic.publicTeardownCallRequest,
162
162
  this.gasUsed,
163
163
  this.feePayer,
164
- this.includeByTimestamp,
164
+ this.expirationTimestamp,
165
165
  );
166
166
  }
167
167
 
@@ -180,7 +180,7 @@ export class PrivateKernelTailCircuitPublicInputs {
180
180
  this.forRollup.end,
181
181
  this.gasUsed,
182
182
  this.feePayer,
183
- this.includeByTimestamp,
183
+ this.expirationTimestamp,
184
184
  );
185
185
  }
186
186
 
@@ -298,7 +298,7 @@ export class PrivateKernelTailCircuitPublicInputs {
298
298
  this.constants,
299
299
  this.gasUsed,
300
300
  this.feePayer,
301
- bigintToUInt64BE(this.includeByTimestamp),
301
+ bigintToUInt64BE(this.expirationTimestamp),
302
302
  isForPublic ? this.forPublic!.toBuffer() : this.forRollup!.toBuffer(),
303
303
  );
304
304
  }
@@ -1,5 +1,5 @@
1
1
  import { PRIVATE_LOG_DATA_LENGTH } from '@aztec/constants';
2
- import type { Fr } from '@aztec/foundation/fields';
2
+ import type { Fr } from '@aztec/foundation/curves/bn254';
3
3
  import { BufferReader, FieldReader, serializeToBuffer, serializeToFields } from '@aztec/foundation/serialize';
4
4
  import type { FieldsOf } from '@aztec/foundation/types';
5
5
 
@@ -6,7 +6,7 @@ import {
6
6
  } from '@aztec/constants';
7
7
  import { type FieldsOf, makeTuple } from '@aztec/foundation/array';
8
8
  import { arraySerializedSizeOfNonEmpty } from '@aztec/foundation/collection';
9
- import { Fr } from '@aztec/foundation/fields';
9
+ import { Fr } from '@aztec/foundation/curves/bn254';
10
10
  import { schemas } from '@aztec/foundation/schemas';
11
11
  import {
12
12
  BufferReader,
@@ -9,7 +9,7 @@ import {
9
9
  } from '@aztec/constants';
10
10
  import { type FieldsOf, makeTuple } from '@aztec/foundation/array';
11
11
  import { arraySerializedSizeOfNonEmpty } from '@aztec/foundation/collection';
12
- import { Fr } from '@aztec/foundation/fields';
12
+ import { Fr } from '@aztec/foundation/curves/bn254';
13
13
  import {
14
14
  BufferReader,
15
15
  FieldReader,
@@ -7,7 +7,7 @@ import {
7
7
  MAX_PRIVATE_LOGS_PER_TX,
8
8
  } from '@aztec/constants';
9
9
  import { padArrayEnd } from '@aztec/foundation/collection';
10
- import { Fr } from '@aztec/foundation/fields';
10
+ import { Fr } from '@aztec/foundation/curves/bn254';
11
11
 
12
12
  import { PrivateLog } from '../logs/private_log.js';
13
13
  import { ScopedL2ToL1Message } from '../messaging/l2_to_l1_message.js';
@@ -1,6 +1,6 @@
1
- import { GeneratorIndex, PRIVATE_TO_PUBLIC_KERNEL_CIRCUIT_PUBLIC_INPUTS_LENGTH } from '@aztec/constants';
2
- import { poseidon2HashWithSeparator } from '@aztec/foundation/crypto';
3
- import type { Fr } from '@aztec/foundation/fields';
1
+ import { DomainSeparator, PRIVATE_TO_PUBLIC_KERNEL_CIRCUIT_PUBLIC_INPUTS_LENGTH } from '@aztec/constants';
2
+ import { poseidon2HashWithSeparator } from '@aztec/foundation/crypto/poseidon';
3
+ import type { Fr } from '@aztec/foundation/curves/bn254';
4
4
  import { bufferSchemaFor } from '@aztec/foundation/schemas';
5
5
  import { BufferReader, bigintToUInt64BE, serializeToBuffer, serializeToFields } from '@aztec/foundation/serialize';
6
6
  import { bufferToHex, hexToBuffer } from '@aztec/foundation/string';
@@ -21,7 +21,7 @@ export class PrivateToPublicKernelCircuitPublicInputs {
21
21
  public publicTeardownCallRequest: PublicCallRequest,
22
22
  public gasUsed: Gas,
23
23
  public feePayer: AztecAddress,
24
- public includeByTimestamp: UInt64,
24
+ public expirationTimestamp: UInt64,
25
25
  ) {}
26
26
 
27
27
  toBuffer() {
@@ -32,7 +32,7 @@ export class PrivateToPublicKernelCircuitPublicInputs {
32
32
  this.publicTeardownCallRequest,
33
33
  this.gasUsed,
34
34
  this.feePayer,
35
- bigintToUInt64BE(this.includeByTimestamp),
35
+ bigintToUInt64BE(this.expirationTimestamp),
36
36
  );
37
37
  }
38
38
 
@@ -44,7 +44,7 @@ export class PrivateToPublicKernelCircuitPublicInputs {
44
44
  fields.publicTeardownCallRequest,
45
45
  fields.gasUsed,
46
46
  fields.feePayer,
47
- fields.includeByTimestamp,
47
+ fields.expirationTimestamp,
48
48
  ] as const;
49
49
  }
50
50
 
@@ -92,7 +92,7 @@ export class PrivateToPublicKernelCircuitPublicInputs {
92
92
  }
93
93
 
94
94
  hash() {
95
- return poseidon2HashWithSeparator(this.toFields(), GeneratorIndex.PUBLIC_TX_HASH);
95
+ return poseidon2HashWithSeparator(this.toFields(), DomainSeparator.PUBLIC_TX_HASH);
96
96
  }
97
97
 
98
98
  toJSON() {
@@ -8,7 +8,7 @@ import {
8
8
  } from '@aztec/constants';
9
9
  import { type FieldsOf, makeTuple } from '@aztec/foundation/array';
10
10
  import { arraySerializedSizeOfNonEmpty } from '@aztec/foundation/collection';
11
- import { Fr } from '@aztec/foundation/fields';
11
+ import { Fr } from '@aztec/foundation/curves/bn254';
12
12
  import { bufferSchemaFor } from '@aztec/foundation/schemas';
13
13
  import { BufferReader, type Tuple, serializeToBuffer, serializeToFields } from '@aztec/foundation/serialize';
14
14
  import { bufferToHex, hexToBuffer } from '@aztec/foundation/string';
@@ -1,6 +1,6 @@
1
- import { GeneratorIndex, PRIVATE_TO_ROLLUP_KERNEL_CIRCUIT_PUBLIC_INPUTS_LENGTH } from '@aztec/constants';
2
- import { poseidon2HashWithSeparator } from '@aztec/foundation/crypto';
3
- import type { Fr } from '@aztec/foundation/fields';
1
+ import { DomainSeparator, PRIVATE_TO_ROLLUP_KERNEL_CIRCUIT_PUBLIC_INPUTS_LENGTH } from '@aztec/constants';
2
+ import { poseidon2HashWithSeparator } from '@aztec/foundation/crypto/poseidon';
3
+ import type { Fr } from '@aztec/foundation/curves/bn254';
4
4
  import { bufferSchemaFor } from '@aztec/foundation/schemas';
5
5
  import { BufferReader, bigintToUInt64BE, serializeToBuffer, serializeToFields } from '@aztec/foundation/serialize';
6
6
  import { bufferToHex, hexToBuffer } from '@aztec/foundation/string';
@@ -37,7 +37,7 @@ export class PrivateToRollupKernelCircuitPublicInputs {
37
37
  /**
38
38
  * The timestamp by which the transaction must be included in a block.
39
39
  */
40
- public includeByTimestamp: UInt64,
40
+ public expirationTimestamp: UInt64,
41
41
  ) {}
42
42
 
43
43
  getNonEmptyNullifiers() {
@@ -50,7 +50,7 @@ export class PrivateToRollupKernelCircuitPublicInputs {
50
50
  this.end,
51
51
  this.gasUsed,
52
52
  this.feePayer,
53
- bigintToUInt64BE(this.includeByTimestamp),
53
+ bigintToUInt64BE(this.expirationTimestamp),
54
54
  );
55
55
  }
56
56
 
@@ -94,7 +94,7 @@ export class PrivateToRollupKernelCircuitPublicInputs {
94
94
  }
95
95
 
96
96
  static getFields(fields: FieldsOf<PrivateToRollupKernelCircuitPublicInputs>) {
97
- return [fields.constants, fields.end, fields.gasUsed, fields.feePayer, fields.includeByTimestamp] as const;
97
+ return [fields.constants, fields.end, fields.gasUsed, fields.feePayer, fields.expirationTimestamp] as const;
98
98
  }
99
99
 
100
100
  /** Creates an instance from a hex string. */
@@ -113,6 +113,6 @@ export class PrivateToRollupKernelCircuitPublicInputs {
113
113
  }
114
114
 
115
115
  hash() {
116
- return poseidon2HashWithSeparator(this.toFields(), GeneratorIndex.PRIVATE_TX_HASH);
116
+ return poseidon2HashWithSeparator(this.toFields(), DomainSeparator.PRIVATE_TX_HASH);
117
117
  }
118
118
  }
@@ -8,7 +8,7 @@ import { bufferToHex, hexToBuffer } from '@aztec/foundation/string';
8
8
 
9
9
  import { inspect } from 'util';
10
10
 
11
- import { ScopedKeyValidationRequestAndGenerator } from '../kernel/hints/scoped_key_validation_request_and_generator.js';
11
+ import { ScopedKeyValidationRequestAndSeparator } from '../kernel/hints/scoped_key_validation_request_and_separator.js';
12
12
  import { ClaimedLengthArray, ClaimedLengthArrayFromBuffer } from './claimed_length_array.js';
13
13
  import { ScopedReadRequest } from './hints/read_request.js';
14
14
 
@@ -28,8 +28,8 @@ export class PrivateValidationRequests {
28
28
  /**
29
29
  * All the key validation requests made in this transaction.
30
30
  */
31
- public scopedKeyValidationRequestsAndGenerators: ClaimedLengthArray<
32
- ScopedKeyValidationRequestAndGenerator,
31
+ public scopedKeyValidationRequestsAndSeparators: ClaimedLengthArray<
32
+ ScopedKeyValidationRequestAndSeparator,
33
33
  typeof MAX_KEY_VALIDATION_REQUESTS_PER_TX
34
34
  >,
35
35
  ) {}
@@ -38,7 +38,7 @@ export class PrivateValidationRequests {
38
38
  return (
39
39
  this.noteHashReadRequests.getSize() +
40
40
  this.nullifierReadRequests.getSize() +
41
- this.scopedKeyValidationRequestsAndGenerators.getSize()
41
+ this.scopedKeyValidationRequestsAndSeparators.getSize()
42
42
  );
43
43
  }
44
44
 
@@ -46,7 +46,7 @@ export class PrivateValidationRequests {
46
46
  return serializeToBuffer(
47
47
  this.noteHashReadRequests,
48
48
  this.nullifierReadRequests,
49
- this.scopedKeyValidationRequestsAndGenerators,
49
+ this.scopedKeyValidationRequestsAndSeparators,
50
50
  );
51
51
  }
52
52
 
@@ -65,7 +65,7 @@ export class PrivateValidationRequests {
65
65
  reader.readObject(ClaimedLengthArrayFromBuffer(ScopedReadRequest, MAX_NOTE_HASH_READ_REQUESTS_PER_TX)),
66
66
  reader.readObject(ClaimedLengthArrayFromBuffer(ScopedReadRequest, MAX_NULLIFIER_READ_REQUESTS_PER_TX)),
67
67
  reader.readObject(
68
- ClaimedLengthArrayFromBuffer(ScopedKeyValidationRequestAndGenerator, MAX_KEY_VALIDATION_REQUESTS_PER_TX),
68
+ ClaimedLengthArrayFromBuffer(ScopedKeyValidationRequestAndSeparator, MAX_KEY_VALIDATION_REQUESTS_PER_TX),
69
69
  ),
70
70
  );
71
71
  }
@@ -83,7 +83,7 @@ export class PrivateValidationRequests {
83
83
  return new PrivateValidationRequests(
84
84
  ClaimedLengthArray.empty(ScopedReadRequest, MAX_NOTE_HASH_READ_REQUESTS_PER_TX),
85
85
  ClaimedLengthArray.empty(ScopedReadRequest, MAX_NULLIFIER_READ_REQUESTS_PER_TX),
86
- ClaimedLengthArray.empty(ScopedKeyValidationRequestAndGenerator, MAX_KEY_VALIDATION_REQUESTS_PER_TX),
86
+ ClaimedLengthArray.empty(ScopedKeyValidationRequestAndSeparator, MAX_KEY_VALIDATION_REQUESTS_PER_TX),
87
87
  );
88
88
  }
89
89
 
@@ -91,7 +91,7 @@ export class PrivateValidationRequests {
91
91
  return `PrivateValidationRequests {
92
92
  noteHashReadRequests: ${inspect(this.noteHashReadRequests)},
93
93
  nullifierReadRequests: ${inspect(this.nullifierReadRequests)},
94
- scopedKeyValidationRequestsAndGenerators: ${inspect(this.scopedKeyValidationRequestsAndGenerators)},
94
+ scopedKeyValidationRequestsAndSeparators: ${inspect(this.scopedKeyValidationRequestsAndSeparators)},
95
95
  `;
96
96
  }
97
97
  }
@@ -1,5 +1,5 @@
1
1
  import { COUNTED_PUBLIC_CALL_REQUEST_LENGTH, PUBLIC_CALL_REQUEST_LENGTH } from '@aztec/constants';
2
- import { Fr } from '@aztec/foundation/fields';
2
+ import { Fr } from '@aztec/foundation/curves/bn254';
3
3
  import { schemas } from '@aztec/foundation/schemas';
4
4
  import { BufferReader, FieldReader, serializeToBuffer, serializeToFields } from '@aztec/foundation/serialize';
5
5
  import type { FieldsOf } from '@aztec/foundation/types';
@@ -1,4 +1,4 @@
1
- import type { Fr } from '@aztec/foundation/fields';
1
+ import type { Fr } from '@aztec/foundation/curves/bn254';
2
2
  import { BufferReader, FieldReader, serializeToBuffer, serializeToFields } from '@aztec/foundation/serialize';
3
3
  import type { FieldsOf } from '@aztec/foundation/types';
4
4
 
@@ -1,14 +1,17 @@
1
- import { GeneratorIndex } from '@aztec/constants';
2
- import { Grumpkin, poseidon2HashWithSeparator, sha512ToGrumpkinScalar } from '@aztec/foundation/crypto';
3
- import { Fq, Fr, GrumpkinScalar } from '@aztec/foundation/fields';
1
+ import { DomainSeparator } from '@aztec/constants';
2
+ import { Grumpkin } from '@aztec/foundation/crypto/grumpkin';
3
+ import { poseidon2HashWithSeparator } from '@aztec/foundation/crypto/poseidon';
4
+ import { sha512ToGrumpkinScalar } from '@aztec/foundation/crypto/sha512';
5
+ import { Fq, Fr } from '@aztec/foundation/curves/bn254';
6
+ import { GrumpkinScalar } from '@aztec/foundation/curves/grumpkin';
4
7
 
5
8
  import { AztecAddress } from '../aztec-address/index.js';
6
9
  import type { KeyPrefix } from './key_types.js';
7
10
  import { PublicKeys } from './public_keys.js';
8
11
  import { getKeyGenerator } from './utils.js';
9
12
 
10
- export function computeAppNullifierSecretKey(masterNullifierSecretKey: GrumpkinScalar, app: AztecAddress): Promise<Fr> {
11
- return computeAppSecretKey(masterNullifierSecretKey, app, 'n'); // 'n' is the key prefix for nullifier secret key
13
+ export function computeAppNullifierHidingKey(masterNullifierHidingKey: GrumpkinScalar, app: AztecAddress): Promise<Fr> {
14
+ return computeAppSecretKey(masterNullifierHidingKey, app, 'n'); // 'n' is the key prefix for nullifier hiding key
12
15
  }
13
16
 
14
17
  export function computeAppSecretKey(skM: GrumpkinScalar, app: AztecAddress, keyPrefix: KeyPrefix): Promise<Fr> {
@@ -23,30 +26,30 @@ export async function computeOvskApp(ovsk: GrumpkinScalar, app: AztecAddress): P
23
26
  return GrumpkinScalar.fromBuffer(ovskAppFr.toBuffer());
24
27
  }
25
28
 
26
- export function deriveMasterNullifierSecretKey(secretKey: Fr): GrumpkinScalar {
27
- return sha512ToGrumpkinScalar([secretKey, GeneratorIndex.NSK_M]);
29
+ export function deriveMasterNullifierHidingKey(secretKey: Fr): GrumpkinScalar {
30
+ return sha512ToGrumpkinScalar([secretKey, DomainSeparator.NHK_M]);
28
31
  }
29
32
 
30
33
  export function deriveMasterIncomingViewingSecretKey(secretKey: Fr): GrumpkinScalar {
31
- return sha512ToGrumpkinScalar([secretKey, GeneratorIndex.IVSK_M]);
34
+ return sha512ToGrumpkinScalar([secretKey, DomainSeparator.IVSK_M]);
32
35
  }
33
36
 
34
37
  export function deriveMasterOutgoingViewingSecretKey(secretKey: Fr): GrumpkinScalar {
35
- return sha512ToGrumpkinScalar([secretKey, GeneratorIndex.OVSK_M]);
38
+ return sha512ToGrumpkinScalar([secretKey, DomainSeparator.OVSK_M]);
36
39
  }
37
40
 
38
41
  export function deriveSigningKey(secretKey: Fr): GrumpkinScalar {
39
42
  // TODO(#5837): come up with a standard signing key derivation scheme instead of using ivsk_m as signing keys here
40
- return sha512ToGrumpkinScalar([secretKey, GeneratorIndex.IVSK_M]);
43
+ return sha512ToGrumpkinScalar([secretKey, DomainSeparator.IVSK_M]);
41
44
  }
42
45
 
43
46
  export function computePreaddress(publicKeysHash: Fr, partialAddress: Fr) {
44
- return poseidon2HashWithSeparator([publicKeysHash, partialAddress], GeneratorIndex.CONTRACT_ADDRESS_V1);
47
+ return poseidon2HashWithSeparator([publicKeysHash, partialAddress], DomainSeparator.CONTRACT_ADDRESS_V1);
45
48
  }
46
49
 
47
50
  export async function computeAddress(publicKeys: PublicKeys, partialAddress: Fr): Promise<AztecAddress> {
48
51
  // Given public keys and a partial address, we can compute our address in the following steps.
49
- // 1. preaddress = poseidon2([publicKeysHash, partialAddress], GeneratorIndex.CONTRACT_ADDRESS_V1);
52
+ // 1. preaddress = poseidon2([publicKeysHash, partialAddress], DomainSeparator.CONTRACT_ADDRESS_V1);
50
53
  // 2. addressPoint = (preaddress * G) + ivpk_m
51
54
  // 3. address = addressPoint.x
52
55
  const preaddress = await computePreaddress(await publicKeys.hash(), partialAddress);
@@ -90,15 +93,15 @@ export function derivePublicKeyFromSecretKey(secretKey: Fq) {
90
93
  * @returns The derived keys.
91
94
  */
92
95
  export async function deriveKeys(secretKey: Fr) {
93
- // First we derive master secret keys - we use sha512 here because this derivation will never take place
96
+ // First we derive master secret/hiding keys - we use sha512 here because this derivation will never take place
94
97
  // in a circuit
95
- const masterNullifierSecretKey = deriveMasterNullifierSecretKey(secretKey);
98
+ const masterNullifierHidingKey = deriveMasterNullifierHidingKey(secretKey);
96
99
  const masterIncomingViewingSecretKey = deriveMasterIncomingViewingSecretKey(secretKey);
97
100
  const masterOutgoingViewingSecretKey = deriveMasterOutgoingViewingSecretKey(secretKey);
98
- const masterTaggingSecretKey = sha512ToGrumpkinScalar([secretKey, GeneratorIndex.TSK_M]);
101
+ const masterTaggingSecretKey = sha512ToGrumpkinScalar([secretKey, DomainSeparator.TSK_M]);
99
102
 
100
103
  // Then we derive master public keys
101
- const masterNullifierPublicKey = await derivePublicKeyFromSecretKey(masterNullifierSecretKey);
104
+ const masterNullifierPublicKey = await derivePublicKeyFromSecretKey(masterNullifierHidingKey);
102
105
  const masterIncomingViewingPublicKey = await derivePublicKeyFromSecretKey(masterIncomingViewingSecretKey);
103
106
  const masterOutgoingViewingPublicKey = await derivePublicKeyFromSecretKey(masterOutgoingViewingSecretKey);
104
107
  const masterTaggingPublicKey = await derivePublicKeyFromSecretKey(masterTaggingSecretKey);
@@ -112,7 +115,7 @@ export async function deriveKeys(secretKey: Fr) {
112
115
  );
113
116
 
114
117
  return {
115
- masterNullifierSecretKey,
118
+ masterNullifierHidingKey,
116
119
  masterIncomingViewingSecretKey,
117
120
  masterOutgoingViewingSecretKey,
118
121
  masterTaggingSecretKey,
@@ -1,5 +1,9 @@
1
- import type { GeneratorIndex } from '@aztec/constants';
1
+ import type { DomainSeparator } from '@aztec/constants';
2
2
 
3
- export type KeyGenerator = GeneratorIndex.NSK_M | GeneratorIndex.IVSK_M | GeneratorIndex.OVSK_M | GeneratorIndex.TSK_M;
3
+ export type KeyGenerator =
4
+ | DomainSeparator.NHK_M
5
+ | DomainSeparator.IVSK_M
6
+ | DomainSeparator.OVSK_M
7
+ | DomainSeparator.TSK_M;
4
8
  export type KeyPrefix = 'n' | 'iv' | 'ov' | 't';
5
9
  export const KEY_PREFIXES: KeyPrefix[] = ['n', 'iv', 'ov', 't'];
@@ -1,4 +1,4 @@
1
- import type { Point } from '@aztec/foundation/fields';
1
+ import type { Point } from '@aztec/foundation/curves/grumpkin';
2
2
 
3
3
  /** Represents a user public key. */
4
4
  export type PublicKey = Point;
@@ -7,10 +7,11 @@ import {
7
7
  DEFAULT_OVPK_M_Y,
8
8
  DEFAULT_TPK_M_X,
9
9
  DEFAULT_TPK_M_Y,
10
- GeneratorIndex,
10
+ DomainSeparator,
11
11
  } from '@aztec/constants';
12
- import { poseidon2HashWithSeparator } from '@aztec/foundation/crypto';
13
- import { Fr, Point } from '@aztec/foundation/fields';
12
+ import { poseidon2HashWithSeparator } from '@aztec/foundation/crypto/poseidon';
13
+ import { Fr } from '@aztec/foundation/curves/bn254';
14
+ import { Point } from '@aztec/foundation/curves/grumpkin';
14
15
  import { schemas } from '@aztec/foundation/schemas';
15
16
  import { BufferReader, FieldReader, serializeToBuffer } from '@aztec/foundation/serialize';
16
17
  import { bufferToHex, withoutHexPrefix } from '@aztec/foundation/string';
@@ -81,7 +82,7 @@ export class PublicKeys {
81
82
  this.masterOutgoingViewingPublicKey,
82
83
  this.masterTaggingPublicKey,
83
84
  ],
84
- GeneratorIndex.PUBLIC_KEYS_HASH,
85
+ DomainSeparator.PUBLIC_KEYS_HASH,
85
86
  );
86
87
  }
87
88
 
package/src/keys/utils.ts CHANGED
@@ -1,9 +1,13 @@
1
- import { GeneratorIndex } from '@aztec/constants';
1
+ import { DomainSeparator } from '@aztec/constants';
2
2
 
3
3
  import type { KeyGenerator, KeyPrefix } from './key_types.js';
4
4
 
5
5
  export function getKeyGenerator(prefix: KeyPrefix): KeyGenerator {
6
- // We get enum key by capitalizing key prefix and concatenating it with 'SK_M'
7
- const enumKey = `${prefix.toUpperCase()}SK_M`;
8
- return GeneratorIndex[enumKey as keyof typeof GeneratorIndex] as KeyGenerator;
6
+ const map: Record<KeyPrefix, KeyGenerator> = {
7
+ n: DomainSeparator.NHK_M,
8
+ iv: DomainSeparator.IVSK_M,
9
+ ov: DomainSeparator.OVSK_M,
10
+ t: DomainSeparator.TSK_M,
11
+ };
12
+ return map[prefix];
9
13
  }
@@ -1,4 +1,6 @@
1
- import { type L1TxRequest, type ViemClient, tryExtractEvent } from '@aztec/ethereum';
1
+ import type { L1TxRequest } from '@aztec/ethereum/l1-tx-utils';
2
+ import type { ViemClient } from '@aztec/ethereum/types';
3
+ import { tryExtractEvent } from '@aztec/ethereum/utils';
2
4
  import { maxBigint } from '@aztec/foundation/bigint';
3
5
  import { EthAddress } from '@aztec/foundation/eth-address';
4
6
  import { createLogger } from '@aztec/foundation/log';
@@ -39,6 +41,7 @@ export class SlashFactoryContract {
39
41
 
40
42
  return {
41
43
  to: this.contract.address,
44
+ abi: SlashFactoryAbi,
42
45
  data: encodeFunctionData({
43
46
  abi: SlashFactoryAbi,
44
47
  functionName: 'createSlashPayload',
@@ -1,6 +1,6 @@
1
1
  import { CONTRACT_CLASS_LOG_LENGTH, CONTRACT_CLASS_LOG_SIZE_IN_FIELDS } from '@aztec/constants';
2
- import { poseidon2Hash } from '@aztec/foundation/crypto';
3
- import { Fr } from '@aztec/foundation/fields';
2
+ import { poseidon2Hash } from '@aztec/foundation/crypto/poseidon';
3
+ import { Fr } from '@aztec/foundation/curves/bn254';
4
4
  import { schemas } from '@aztec/foundation/schemas';
5
5
  import { BufferReader, FieldReader, serializeToBuffer, serializeToFields } from '@aztec/foundation/serialize';
6
6
  import type { FieldsOf } from '@aztec/foundation/types';
@@ -1,4 +1,4 @@
1
- import { Fr } from '@aztec/foundation/fields';
1
+ import { Fr } from '@aztec/foundation/curves/bn254';
2
2
  import { type LogLevel, LogLevels } from '@aztec/foundation/log';
3
3
  import { type ZodFor, schemas } from '@aztec/foundation/schemas';
4
4
 
@@ -0,0 +1,54 @@
1
+ import type { TxReceipt } from '../tx/tx_receipt.js';
2
+ import type { DebugLog } from './debug_log.js';
3
+
4
+ /**
5
+ * Store for debug logs emitted by public functions during transaction execution.
6
+ *
7
+ * Uses the Null Object pattern: production code uses NullDebugLogStore (no-op), while test mode uses
8
+ * InMemoryDebugLogStore (stores and serves logs).
9
+ */
10
+ export interface DebugLogStore {
11
+ /** Store debug logs for a processed transaction. */
12
+ storeLogs(txHash: string, logs: DebugLog[]): void;
13
+ /** Decorate a TxReceipt with any stored debug logs for the given tx. */
14
+ decorateReceiptWithLogs(txHash: string, receipt: TxReceipt): void;
15
+ /** Whether debug log collection is enabled. */
16
+ readonly isEnabled: boolean;
17
+ }
18
+
19
+ /** No-op implementation for production mode. */
20
+ export class NullDebugLogStore implements DebugLogStore {
21
+ storeLogs(_txHash: string, _logs: DebugLog[]): void {
22
+ return;
23
+ }
24
+ decorateReceiptWithLogs(_txHash: string, _receipt: TxReceipt): void {
25
+ return;
26
+ }
27
+ get isEnabled(): boolean {
28
+ return false;
29
+ }
30
+ }
31
+
32
+ /** In-memory implementation for test mode that stores and serves debug logs. */
33
+ export class InMemoryDebugLogStore implements DebugLogStore {
34
+ private map = new Map<string, DebugLog[]>();
35
+
36
+ storeLogs(txHash: string, logs: DebugLog[]): void {
37
+ if (logs.length > 0) {
38
+ this.map.set(txHash, logs);
39
+ }
40
+ }
41
+
42
+ decorateReceiptWithLogs(txHash: string, receipt: TxReceipt): void {
43
+ if (receipt.isMined()) {
44
+ const debugLogs = this.map.get(txHash);
45
+ if (debugLogs) {
46
+ receipt.debugLogs = debugLogs;
47
+ }
48
+ }
49
+ }
50
+
51
+ get isEnabled(): boolean {
52
+ return true;
53
+ }
54
+ }
@@ -1,24 +1,32 @@
1
- import { Grumpkin, poseidon2Hash } from '@aztec/foundation/crypto';
2
- import { type Fq, Fr, type Point } from '@aztec/foundation/fields';
1
+ import { Grumpkin } from '@aztec/foundation/crypto/grumpkin';
2
+ import { poseidon2Hash } from '@aztec/foundation/crypto/poseidon';
3
+ import { type Fq, Fr } from '@aztec/foundation/curves/bn254';
4
+ import type { Point } from '@aztec/foundation/curves/grumpkin';
3
5
 
4
6
  import { z } from 'zod';
5
7
 
6
- import type { AztecAddress } from '../aztec-address/index.js';
8
+ import { AztecAddress } from '../aztec-address/index.js';
7
9
  import type { CompleteAddress } from '../contract/complete_address.js';
8
10
  import { computeAddressSecret, computePreaddress } from '../keys/derivation.js';
9
11
 
10
12
  /**
11
- * Directional application tagging secret used for log tagging.
13
+ * Extended directional application tagging secret used for log tagging.
12
14
  *
13
- * "Directional" because the derived secret is bound to the recipient
14
- * address: A→B differs from B→A even with the same participants and app.
15
+ * "Extended" because it bundles the directional app tagging secret with the app (contract) address. This bundling was
16
+ * done because where this type is used we commonly need access to both the secret and the address.
15
17
  *
16
- * Note: It's a bit unfortunate that this type resides in `stdlib` as the rest of the tagging functionality resides
17
- * in `pxe/src/tagging`. We need to use this type in `PreTag` that in turn is used by other types
18
- * in stdlib hence there doesn't seem to be a good way around this.
18
+ * "Directional" because the derived secret is bound to the recipient address: A→B differs from B→A even with the same
19
+ * participants and app.
20
+ *
21
+ * Note: It's a bit unfortunate that this type resides in `stdlib` as the rest of the tagging functionality resides in
22
+ * `pxe/src/tagging`. We need to use this type in `PreTag` that in turn is used by other types in stdlib hence there
23
+ * doesn't seem to be a good way around this.
19
24
  */
20
- export class DirectionalAppTaggingSecret {
21
- private constructor(public readonly value: Fr) {}
25
+ export class ExtendedDirectionalAppTaggingSecret {
26
+ private constructor(
27
+ public readonly secret: Fr,
28
+ public readonly app: AztecAddress,
29
+ ) {}
22
30
 
23
31
  /**
24
32
  * Derives shared tagging secret and from that, the app address and recipient derives the directional app tagging
@@ -37,20 +45,21 @@ export class DirectionalAppTaggingSecret {
37
45
  externalAddress: AztecAddress,
38
46
  app: AztecAddress,
39
47
  recipient: AztecAddress,
40
- ): Promise<DirectionalAppTaggingSecret> {
48
+ ): Promise<ExtendedDirectionalAppTaggingSecret> {
41
49
  const taggingSecretPoint = await computeSharedTaggingSecret(localAddress, localIvsk, externalAddress);
42
50
  const appTaggingSecret = await poseidon2Hash([taggingSecretPoint.x, taggingSecretPoint.y, app]);
43
51
  const directionalAppTaggingSecret = await poseidon2Hash([appTaggingSecret, recipient]);
44
52
 
45
- return new DirectionalAppTaggingSecret(directionalAppTaggingSecret);
53
+ return new ExtendedDirectionalAppTaggingSecret(directionalAppTaggingSecret, app);
46
54
  }
47
55
 
48
56
  toString(): string {
49
- return this.value.toString();
57
+ return `${this.secret.toString()}:${this.app.toString()}`;
50
58
  }
51
59
 
52
- static fromString(str: string): DirectionalAppTaggingSecret {
53
- return new DirectionalAppTaggingSecret(Fr.fromString(str));
60
+ static fromString(str: string): ExtendedDirectionalAppTaggingSecret {
61
+ const [secretStr, appStr] = str.split(':');
62
+ return new ExtendedDirectionalAppTaggingSecret(Fr.fromString(secretStr), AztecAddress.fromString(appStr));
54
63
  }
55
64
  }
56
65
 
@@ -72,6 +81,7 @@ async function computeSharedTaggingSecret(
72
81
  return Grumpkin.mul(externalAddressPoint, await computeAddressSecret(knownPreaddress, localIvsk));
73
82
  }
74
83
 
75
- export const DirectionalAppTaggingSecretSchema = z.object({
76
- value: Fr.schema,
84
+ export const ExtendedDirectionalAppTaggingSecretSchema = z.object({
85
+ secret: Fr.schema,
86
+ app: AztecAddress.schema,
77
87
  });