@aztec/stdlib 0.0.1-commit.6d3c34e → 0.0.1-commit.7ac86ea28

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 (632) hide show
  1. package/dest/abi/function_call.d.ts +47 -9
  2. package/dest/abi/function_call.d.ts.map +1 -1
  3. package/dest/abi/function_call.js +20 -3
  4. package/dest/abi/utils.d.ts +7 -1
  5. package/dest/abi/utils.d.ts.map +1 -1
  6. package/dest/abi/utils.js +7 -0
  7. package/dest/auth_witness/auth_witness.d.ts +2 -1
  8. package/dest/auth_witness/auth_witness.d.ts.map +1 -1
  9. package/dest/auth_witness/auth_witness.js +3 -3
  10. package/dest/avm/avm.d.ts +62 -62
  11. package/dest/avm/avm_accumulated_data.d.ts +30 -3
  12. package/dest/avm/avm_accumulated_data.d.ts.map +1 -1
  13. package/dest/avm/avm_circuit_public_inputs.d.ts +9 -9
  14. package/dest/avm/avm_proving_request.d.ts +299 -299
  15. package/dest/avm/contract_storage_read.d.ts +13 -1
  16. package/dest/avm/contract_storage_read.d.ts.map +1 -1
  17. package/dest/avm/contract_storage_update_request.d.ts +13 -1
  18. package/dest/avm/contract_storage_update_request.d.ts.map +1 -1
  19. package/dest/avm/public_call_stack_item_compressed.d.ts +3 -1
  20. package/dest/avm/public_call_stack_item_compressed.d.ts.map +1 -1
  21. package/dest/avm/public_data_read.d.ts +10 -1
  22. package/dest/avm/public_data_read.d.ts.map +1 -1
  23. package/dest/avm/public_data_update_request.d.ts +10 -1
  24. package/dest/avm/public_data_update_request.d.ts.map +1 -1
  25. package/dest/avm/public_data_write.d.ts +7 -1
  26. package/dest/avm/public_data_write.d.ts.map +1 -1
  27. package/dest/avm/public_inner_call_request.d.ts +4 -1
  28. package/dest/avm/public_inner_call_request.d.ts.map +1 -1
  29. package/dest/avm/revert_code.d.ts +4 -4
  30. package/dest/avm/revert_code.d.ts.map +1 -1
  31. package/dest/block/block_data.d.ts +52 -0
  32. package/dest/block/block_data.d.ts.map +1 -0
  33. package/dest/block/block_data.js +12 -0
  34. package/dest/block/block_hash.d.ts +18 -14
  35. package/dest/block/block_hash.d.ts.map +1 -1
  36. package/dest/block/block_hash.js +22 -20
  37. package/dest/block/block_parameter.d.ts +4 -3
  38. package/dest/block/block_parameter.d.ts.map +1 -1
  39. package/dest/block/block_parameter.js +2 -0
  40. package/dest/block/body.d.ts +1 -1
  41. package/dest/block/body.d.ts.map +1 -1
  42. package/dest/block/body.js +2 -1
  43. package/dest/block/checkpointed_l2_block.d.ts +20 -137
  44. package/dest/block/checkpointed_l2_block.d.ts.map +1 -1
  45. package/dest/block/checkpointed_l2_block.js +7 -45
  46. package/dest/block/in_block.d.ts +9 -9
  47. package/dest/block/in_block.d.ts.map +1 -1
  48. package/dest/block/in_block.js +5 -5
  49. package/dest/block/index.d.ts +2 -3
  50. package/dest/block/index.d.ts.map +1 -1
  51. package/dest/block/index.js +1 -2
  52. package/dest/block/l2_block.d.ts +56 -59
  53. package/dest/block/l2_block.d.ts.map +1 -1
  54. package/dest/block/l2_block.js +64 -110
  55. package/dest/block/l2_block_source.d.ts +84 -39
  56. package/dest/block/l2_block_source.d.ts.map +1 -1
  57. package/dest/block/l2_block_source.js +2 -1
  58. package/dest/block/l2_block_stream/interfaces.d.ts +9 -6
  59. package/dest/block/l2_block_stream/interfaces.d.ts.map +1 -1
  60. package/dest/block/l2_block_stream/l2_block_stream.d.ts +6 -3
  61. package/dest/block/l2_block_stream/l2_block_stream.d.ts.map +1 -1
  62. package/dest/block/l2_block_stream/l2_block_stream.js +37 -34
  63. package/dest/block/l2_block_stream/l2_tips_store_base.d.ts +3 -3
  64. package/dest/block/l2_block_stream/l2_tips_store_base.d.ts.map +1 -1
  65. package/dest/block/test/l2_tips_store_test_suite.d.ts +1 -1
  66. package/dest/block/test/l2_tips_store_test_suite.d.ts.map +1 -1
  67. package/dest/block/test/l2_tips_store_test_suite.js +2 -7
  68. package/dest/block/validate_block_result.d.ts +1 -1
  69. package/dest/block/validate_block_result.d.ts.map +1 -1
  70. package/dest/block/validate_block_result.js +5 -4
  71. package/dest/checkpoint/checkpoint.d.ts +43 -19
  72. package/dest/checkpoint/checkpoint.d.ts.map +1 -1
  73. package/dest/checkpoint/checkpoint.js +37 -14
  74. package/dest/checkpoint/checkpoint_data.d.ts +120 -0
  75. package/dest/checkpoint/checkpoint_data.d.ts.map +1 -0
  76. package/dest/checkpoint/checkpoint_data.js +26 -0
  77. package/dest/checkpoint/index.d.ts +2 -1
  78. package/dest/checkpoint/index.d.ts.map +1 -1
  79. package/dest/checkpoint/index.js +1 -0
  80. package/dest/checkpoint/published_checkpoint.d.ts +33 -16
  81. package/dest/checkpoint/published_checkpoint.d.ts.map +1 -1
  82. package/dest/checkpoint/published_checkpoint.js +5 -5
  83. package/dest/config/index.d.ts +2 -1
  84. package/dest/config/index.d.ts.map +1 -1
  85. package/dest/config/index.js +1 -0
  86. package/dest/config/node-rpc-config.js +1 -1
  87. package/dest/config/sequencer-config.d.ts +10 -0
  88. package/dest/config/sequencer-config.d.ts.map +1 -0
  89. package/dest/config/sequencer-config.js +18 -0
  90. package/dest/contract/complete_address.d.ts +4 -1
  91. package/dest/contract/complete_address.d.ts.map +1 -1
  92. package/dest/contract/contract_address.js +4 -4
  93. package/dest/contract/contract_class.d.ts +2 -3
  94. package/dest/contract/contract_class.d.ts.map +1 -1
  95. package/dest/contract/contract_class_id.d.ts +2 -2
  96. package/dest/contract/contract_class_id.d.ts.map +1 -1
  97. package/dest/contract/contract_class_id.js +6 -5
  98. package/dest/contract/contract_deployment_data.d.ts +5 -5
  99. package/dest/contract/index.d.ts +1 -3
  100. package/dest/contract/index.d.ts.map +1 -1
  101. package/dest/contract/index.js +0 -2
  102. package/dest/contract/interfaces/contract_instance.d.ts +16 -16
  103. package/dest/contract/interfaces/node-info.d.ts +3 -1
  104. package/dest/contract/interfaces/node-info.d.ts.map +1 -1
  105. package/dest/contract/interfaces/node-info.js +2 -1
  106. package/dest/contract/private_function.d.ts +1 -1
  107. package/dest/contract/private_function.d.ts.map +1 -1
  108. package/dest/contract/private_function.js +3 -4
  109. package/dest/contract/private_function_membership_proof.d.ts +1 -1
  110. package/dest/contract/private_function_membership_proof.js +1 -1
  111. package/dest/database-version/database_version.d.ts +58 -0
  112. package/dest/database-version/database_version.d.ts.map +1 -0
  113. package/dest/database-version/database_version.js +69 -0
  114. package/dest/database-version/version_manager.d.ts +3 -49
  115. package/dest/database-version/version_manager.d.ts.map +1 -1
  116. package/dest/database-version/version_manager.js +1 -66
  117. package/dest/delayed_public_mutable/delayed_public_mutable_values.d.ts +2 -2
  118. package/dest/delayed_public_mutable/delayed_public_mutable_values.d.ts.map +1 -1
  119. package/dest/delayed_public_mutable/delayed_public_mutable_values.js +7 -10
  120. package/dest/deserialization/index.d.ts +11 -0
  121. package/dest/deserialization/index.d.ts.map +1 -0
  122. package/dest/deserialization/index.js +10 -0
  123. package/dest/epoch-helpers/index.d.ts +7 -1
  124. package/dest/epoch-helpers/index.d.ts.map +1 -1
  125. package/dest/epoch-helpers/index.js +9 -3
  126. package/dest/errors/proving_error.d.ts +2 -2
  127. package/dest/errors/proving_error.d.ts.map +1 -1
  128. package/dest/file-store/local.d.ts +3 -3
  129. package/dest/file-store/local.d.ts.map +1 -1
  130. package/dest/file-store/local.js +13 -4
  131. package/dest/file-store/s3.d.ts +1 -1
  132. package/dest/file-store/s3.d.ts.map +1 -1
  133. package/dest/file-store/s3.js +11 -3
  134. package/dest/hash/hash.d.ts +2 -1
  135. package/dest/hash/hash.d.ts.map +1 -1
  136. package/dest/hash/hash.js +16 -10
  137. package/dest/hash/map_slot.d.ts +1 -1
  138. package/dest/hash/map_slot.d.ts.map +1 -1
  139. package/dest/hash/map_slot.js +4 -3
  140. package/dest/interfaces/api_limit.d.ts +2 -1
  141. package/dest/interfaces/api_limit.d.ts.map +1 -1
  142. package/dest/interfaces/api_limit.js +1 -0
  143. package/dest/interfaces/archiver.d.ts +1 -1
  144. package/dest/interfaces/archiver.d.ts.map +1 -1
  145. package/dest/interfaces/archiver.js +23 -15
  146. package/dest/interfaces/aztec-node-admin.d.ts +101 -28
  147. package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
  148. package/dest/interfaces/aztec-node-admin.js +12 -4
  149. package/dest/interfaces/aztec-node.d.ts +66 -69
  150. package/dest/interfaces/aztec-node.d.ts.map +1 -1
  151. package/dest/interfaces/aztec-node.js +10 -16
  152. package/dest/interfaces/block-builder.d.ts +22 -14
  153. package/dest/interfaces/block-builder.d.ts.map +1 -1
  154. package/dest/interfaces/block-builder.js +7 -0
  155. package/dest/interfaces/configs.d.ts +24 -9
  156. package/dest/interfaces/configs.d.ts.map +1 -1
  157. package/dest/interfaces/configs.js +4 -1
  158. package/dest/interfaces/get_logs_response.d.ts +16 -9
  159. package/dest/interfaces/get_logs_response.d.ts.map +1 -1
  160. package/dest/interfaces/l2_logs_source.d.ts +14 -5
  161. package/dest/interfaces/l2_logs_source.d.ts.map +1 -1
  162. package/dest/interfaces/merkle_tree_operations.d.ts +2 -2
  163. package/dest/interfaces/merkle_tree_operations.d.ts.map +1 -1
  164. package/dest/interfaces/p2p.d.ts +2 -2
  165. package/dest/interfaces/p2p.d.ts.map +1 -1
  166. package/dest/interfaces/prover-broker.d.ts +16 -1
  167. package/dest/interfaces/prover-broker.d.ts.map +1 -1
  168. package/dest/interfaces/prover-broker.js +4 -1
  169. package/dest/interfaces/prover-client.d.ts +15 -1
  170. package/dest/interfaces/prover-client.d.ts.map +1 -1
  171. package/dest/interfaces/prover-client.js +12 -1
  172. package/dest/interfaces/proving-job.d.ts +216 -216
  173. package/dest/interfaces/slasher.d.ts +9 -1
  174. package/dest/interfaces/slasher.d.ts.map +1 -1
  175. package/dest/interfaces/slasher.js +2 -0
  176. package/dest/interfaces/tx_provider.d.ts +3 -3
  177. package/dest/interfaces/tx_provider.d.ts.map +1 -1
  178. package/dest/interfaces/validator.d.ts +118 -16
  179. package/dest/interfaces/validator.d.ts.map +1 -1
  180. package/dest/interfaces/validator.js +6 -3
  181. package/dest/kernel/hints/build_note_hash_read_request_hints.d.ts +1 -1
  182. package/dest/kernel/hints/build_note_hash_read_request_hints.d.ts.map +1 -1
  183. package/dest/kernel/hints/build_note_hash_read_request_hints.js +16 -6
  184. package/dest/kernel/hints/build_nullifier_read_request_hints.d.ts +3 -3
  185. package/dest/kernel/hints/build_nullifier_read_request_hints.d.ts.map +1 -1
  186. package/dest/kernel/hints/build_nullifier_read_request_hints.js +16 -8
  187. package/dest/kernel/hints/index.d.ts +2 -2
  188. package/dest/kernel/hints/index.js +2 -2
  189. package/dest/kernel/hints/key_validation_hint.d.ts +2 -1
  190. package/dest/kernel/hints/key_validation_hint.d.ts.map +1 -1
  191. package/dest/kernel/hints/key_validation_request.d.ts +2 -1
  192. package/dest/kernel/hints/key_validation_request.d.ts.map +1 -1
  193. package/dest/kernel/hints/key_validation_request_and_separator.d.ts +24 -0
  194. package/dest/kernel/hints/key_validation_request_and_separator.d.ts.map +1 -0
  195. package/dest/kernel/hints/{key_validation_request_and_generator.js → key_validation_request_and_separator.js} +12 -15
  196. package/dest/kernel/hints/private_kernel_reset_hints.d.ts +13 -1
  197. package/dest/kernel/hints/private_kernel_reset_hints.d.ts.map +1 -1
  198. package/dest/kernel/hints/read_request.d.ts +7 -1
  199. package/dest/kernel/hints/read_request.d.ts.map +1 -1
  200. package/dest/kernel/hints/read_request_hints.d.ts +7 -1
  201. package/dest/kernel/hints/read_request_hints.d.ts.map +1 -1
  202. package/dest/kernel/hints/{scoped_key_validation_request_and_generator.d.ts → scoped_key_validation_request_and_separator.d.ts} +8 -8
  203. package/dest/kernel/hints/{scoped_key_validation_request_and_generator.d.ts.map → scoped_key_validation_request_and_separator.d.ts.map} +1 -1
  204. package/dest/kernel/hints/{scoped_key_validation_request_and_generator.js → scoped_key_validation_request_and_separator.js} +6 -6
  205. package/dest/kernel/private_accumulated_data.d.ts +23 -1
  206. package/dest/kernel/private_accumulated_data.d.ts.map +1 -1
  207. package/dest/kernel/private_call_data.d.ts +25 -1
  208. package/dest/kernel/private_call_data.d.ts.map +1 -1
  209. package/dest/kernel/private_call_request.d.ts +16 -1
  210. package/dest/kernel/private_call_request.d.ts.map +1 -1
  211. package/dest/kernel/private_circuit_public_inputs.d.ts +81 -8
  212. package/dest/kernel/private_circuit_public_inputs.d.ts.map +1 -1
  213. package/dest/kernel/private_circuit_public_inputs.js +16 -16
  214. package/dest/kernel/private_kernel_circuit_public_inputs.d.ts +33 -3
  215. package/dest/kernel/private_kernel_circuit_public_inputs.d.ts.map +1 -1
  216. package/dest/kernel/private_kernel_circuit_public_inputs.js +4 -4
  217. package/dest/kernel/private_kernel_data.d.ts +7 -1
  218. package/dest/kernel/private_kernel_data.d.ts.map +1 -1
  219. package/dest/kernel/private_kernel_init_circuit_private_inputs.d.ts +22 -1
  220. package/dest/kernel/private_kernel_init_circuit_private_inputs.d.ts.map +1 -1
  221. package/dest/kernel/private_kernel_inner_circuit_private_inputs.d.ts +7 -1
  222. package/dest/kernel/private_kernel_inner_circuit_private_inputs.d.ts.map +1 -1
  223. package/dest/kernel/private_kernel_reset_circuit_private_inputs.d.ts +4 -1
  224. package/dest/kernel/private_kernel_reset_circuit_private_inputs.d.ts.map +1 -1
  225. package/dest/kernel/private_kernel_tail_circuit_private_inputs.d.ts +12 -3
  226. package/dest/kernel/private_kernel_tail_circuit_private_inputs.d.ts.map +1 -1
  227. package/dest/kernel/private_kernel_tail_circuit_private_inputs.js +4 -4
  228. package/dest/kernel/private_kernel_tail_circuit_public_inputs.d.ts +25 -3
  229. package/dest/kernel/private_kernel_tail_circuit_public_inputs.d.ts.map +1 -1
  230. package/dest/kernel/private_kernel_tail_circuit_public_inputs.js +7 -7
  231. package/dest/kernel/private_to_avm_accumulated_data.d.ts +2 -2
  232. package/dest/kernel/private_to_public_kernel_circuit_public_inputs.d.ts +3 -3
  233. package/dest/kernel/private_to_public_kernel_circuit_public_inputs.d.ts.map +1 -1
  234. package/dest/kernel/private_to_public_kernel_circuit_public_inputs.js +7 -7
  235. package/dest/kernel/private_to_rollup_accumulated_data.d.ts +17 -1
  236. package/dest/kernel/private_to_rollup_accumulated_data.d.ts.map +1 -1
  237. package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.d.ts +18 -3
  238. package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.d.ts.map +1 -1
  239. package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.js +7 -7
  240. package/dest/kernel/private_validation_requests.d.ts +13 -4
  241. package/dest/kernel/private_validation_requests.d.ts.map +1 -1
  242. package/dest/kernel/private_validation_requests.js +9 -9
  243. package/dest/kernel/public_call_request.d.ts +22 -1
  244. package/dest/kernel/public_call_request.d.ts.map +1 -1
  245. package/dest/kernel/utils/optional_number.d.ts +7 -1
  246. package/dest/kernel/utils/optional_number.d.ts.map +1 -1
  247. package/dest/keys/derivation.d.ts +3 -3
  248. package/dest/keys/derivation.js +15 -15
  249. package/dest/keys/key_types.d.ts +3 -3
  250. package/dest/keys/key_types.d.ts.map +1 -1
  251. package/dest/keys/public_keys.d.ts +5 -1
  252. package/dest/keys/public_keys.d.ts.map +1 -1
  253. package/dest/keys/public_keys.js +2 -2
  254. package/dest/keys/utils.d.ts +1 -1
  255. package/dest/keys/utils.d.ts.map +1 -1
  256. package/dest/keys/utils.js +8 -4
  257. package/dest/l1-contracts/slash_factory.d.ts +1 -1
  258. package/dest/l1-contracts/slash_factory.d.ts.map +1 -1
  259. package/dest/l1-contracts/slash_factory.js +1 -0
  260. package/dest/logs/extended_contract_class_log.d.ts +3 -1
  261. package/dest/logs/extended_contract_class_log.d.ts.map +1 -1
  262. package/dest/logs/extended_public_log.d.ts +17 -9
  263. package/dest/logs/extended_public_log.d.ts.map +1 -1
  264. package/dest/logs/log_id.d.ts +21 -14
  265. package/dest/logs/log_id.d.ts.map +1 -1
  266. package/dest/logs/log_id.js +20 -17
  267. package/dest/logs/private_log.d.ts +2 -2
  268. package/dest/logs/private_log.d.ts.map +1 -1
  269. package/dest/logs/siloed_tag.d.ts +1 -1
  270. package/dest/logs/siloed_tag.d.ts.map +1 -1
  271. package/dest/logs/siloed_tag.js +2 -5
  272. package/dest/messaging/inbox_leaf.d.ts +3 -1
  273. package/dest/messaging/inbox_leaf.d.ts.map +1 -1
  274. package/dest/messaging/l1_actor.d.ts +7 -1
  275. package/dest/messaging/l1_actor.d.ts.map +1 -1
  276. package/dest/messaging/l1_to_l2_message.d.ts +6 -1
  277. package/dest/messaging/l1_to_l2_message.d.ts.map +1 -1
  278. package/dest/messaging/l2_actor.d.ts +7 -1
  279. package/dest/messaging/l2_actor.d.ts.map +1 -1
  280. package/dest/messaging/l2_to_l1_membership.d.ts +3 -3
  281. package/dest/messaging/l2_to_l1_membership.d.ts.map +1 -1
  282. package/dest/messaging/l2_to_l1_membership.js +8 -6
  283. package/dest/messaging/out_hash.d.ts +41 -4
  284. package/dest/messaging/out_hash.d.ts.map +1 -1
  285. package/dest/messaging/out_hash.js +52 -26
  286. package/dest/note/index.d.ts +1 -2
  287. package/dest/note/index.d.ts.map +1 -1
  288. package/dest/note/index.js +0 -1
  289. package/dest/note/note_dao.d.ts +36 -5
  290. package/dest/note/note_dao.d.ts.map +1 -1
  291. package/dest/note/note_dao.js +15 -12
  292. package/dest/p2p/block_proposal.d.ts +23 -8
  293. package/dest/p2p/block_proposal.d.ts.map +1 -1
  294. package/dest/p2p/block_proposal.js +26 -10
  295. package/dest/p2p/checkpoint_attestation.d.ts +6 -1
  296. package/dest/p2p/checkpoint_attestation.d.ts.map +1 -1
  297. package/dest/p2p/checkpoint_attestation.js +1 -1
  298. package/dest/p2p/checkpoint_proposal.d.ts +34 -9
  299. package/dest/p2p/checkpoint_proposal.d.ts.map +1 -1
  300. package/dest/p2p/checkpoint_proposal.js +46 -20
  301. package/dest/p2p/consensus_payload.d.ts +15 -5
  302. package/dest/p2p/consensus_payload.d.ts.map +1 -1
  303. package/dest/p2p/consensus_payload.js +22 -18
  304. package/dest/p2p/constants.d.ts +5 -0
  305. package/dest/p2p/constants.d.ts.map +1 -0
  306. package/dest/p2p/constants.js +3 -0
  307. package/dest/p2p/index.d.ts +2 -1
  308. package/dest/p2p/index.d.ts.map +1 -1
  309. package/dest/p2p/index.js +1 -0
  310. package/dest/p2p/message_validator.d.ts +18 -3
  311. package/dest/p2p/message_validator.d.ts.map +1 -1
  312. package/dest/p2p/message_validator.js +2 -1
  313. package/dest/p2p/signed_txs.d.ts +3 -1
  314. package/dest/p2p/signed_txs.d.ts.map +1 -1
  315. package/dest/p2p/signed_txs.js +6 -1
  316. package/dest/p2p/topic_type.js +2 -1
  317. package/dest/parity/parity_base_private_inputs.d.ts +3 -1
  318. package/dest/parity/parity_base_private_inputs.d.ts.map +1 -1
  319. package/dest/parity/parity_public_inputs.d.ts +4 -1
  320. package/dest/parity/parity_public_inputs.d.ts.map +1 -1
  321. package/dest/parity/parity_root_private_inputs.d.ts +2 -1
  322. package/dest/parity/parity_root_private_inputs.d.ts.map +1 -1
  323. package/dest/proofs/chonk_proof.d.ts +1 -1
  324. package/dest/proofs/chonk_proof.d.ts.map +1 -1
  325. package/dest/proofs/chonk_proof.js +9 -4
  326. package/dest/proofs/proof.d.ts +4 -1
  327. package/dest/proofs/proof.d.ts.map +1 -1
  328. package/dest/proofs/recursive_proof.d.ts +10 -1
  329. package/dest/proofs/recursive_proof.d.ts.map +1 -1
  330. package/dest/rollup/base_rollup_hints.d.ts +34 -1
  331. package/dest/rollup/base_rollup_hints.d.ts.map +1 -1
  332. package/dest/rollup/block_constant_data.d.ts +12 -1
  333. package/dest/rollup/block_constant_data.d.ts.map +1 -1
  334. package/dest/rollup/block_headers_hash.js +1 -1
  335. package/dest/rollup/block_merge_rollup_private_inputs.d.ts +4 -1
  336. package/dest/rollup/block_merge_rollup_private_inputs.d.ts.map +1 -1
  337. package/dest/rollup/block_rollup_public_inputs.d.ts +44 -3
  338. package/dest/rollup/block_rollup_public_inputs.d.ts.map +1 -1
  339. package/dest/rollup/block_rollup_public_inputs.js +2 -2
  340. package/dest/rollup/block_root_rollup_private_inputs.d.ts +64 -1
  341. package/dest/rollup/block_root_rollup_private_inputs.d.ts.map +1 -1
  342. package/dest/rollup/checkpoint_constant_data.d.ts +10 -1
  343. package/dest/rollup/checkpoint_constant_data.d.ts.map +1 -1
  344. package/dest/rollup/checkpoint_header.d.ts +31 -4
  345. package/dest/rollup/checkpoint_header.d.ts.map +1 -1
  346. package/dest/rollup/checkpoint_header.js +23 -7
  347. package/dest/rollup/checkpoint_merge_rollup_private_inputs.d.ts +4 -1
  348. package/dest/rollup/checkpoint_merge_rollup_private_inputs.d.ts.map +1 -1
  349. package/dest/rollup/checkpoint_rollup_public_inputs.d.ts +45 -10
  350. package/dest/rollup/checkpoint_rollup_public_inputs.d.ts.map +1 -1
  351. package/dest/rollup/checkpoint_rollup_public_inputs.js +11 -7
  352. package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts +44 -3
  353. package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts.map +1 -1
  354. package/dest/rollup/checkpoint_root_rollup_private_inputs.js +13 -2
  355. package/dest/rollup/epoch_constant_data.d.ts +16 -1
  356. package/dest/rollup/epoch_constant_data.d.ts.map +1 -1
  357. package/dest/rollup/root_rollup_private_inputs.d.ts +6 -1
  358. package/dest/rollup/root_rollup_private_inputs.d.ts.map +1 -1
  359. package/dest/rollup/root_rollup_public_inputs.d.ts +17 -7
  360. package/dest/rollup/root_rollup_public_inputs.d.ts.map +1 -1
  361. package/dest/rollup/root_rollup_public_inputs.js +7 -4
  362. package/dest/rollup/tree_snapshot_diff_hints.d.ts +24 -1
  363. package/dest/rollup/tree_snapshot_diff_hints.d.ts.map +1 -1
  364. package/dest/rollup/tx_merge_rollup_private_inputs.d.ts +4 -1
  365. package/dest/rollup/tx_merge_rollup_private_inputs.d.ts.map +1 -1
  366. package/dest/rollup/tx_rollup_public_inputs.d.ts +29 -1
  367. package/dest/rollup/tx_rollup_public_inputs.d.ts.map +1 -1
  368. package/dest/schemas/schemas.d.ts +1 -1
  369. package/dest/slashing/empire.d.ts +1 -1
  370. package/dest/slashing/empire.d.ts.map +1 -1
  371. package/dest/slashing/empire.js +2 -0
  372. package/dest/slashing/helpers.d.ts +2 -2
  373. package/dest/slashing/helpers.d.ts.map +1 -1
  374. package/dest/slashing/helpers.js +6 -0
  375. package/dest/slashing/tally.d.ts +2 -1
  376. package/dest/slashing/tally.d.ts.map +1 -1
  377. package/dest/slashing/tally.js +6 -2
  378. package/dest/slashing/types.d.ts +7 -3
  379. package/dest/slashing/types.d.ts.map +1 -1
  380. package/dest/slashing/types.js +13 -1
  381. package/dest/stats/stats.d.ts +1 -3
  382. package/dest/stats/stats.d.ts.map +1 -1
  383. package/dest/tests/factories.d.ts +2 -4
  384. package/dest/tests/factories.d.ts.map +1 -1
  385. package/dest/tests/factories.js +18 -27
  386. package/dest/tests/jest.js +1 -1
  387. package/dest/tests/mocks.d.ts +23 -14
  388. package/dest/tests/mocks.d.ts.map +1 -1
  389. package/dest/tests/mocks.js +59 -36
  390. package/dest/timetable/index.d.ts +37 -0
  391. package/dest/timetable/index.d.ts.map +1 -0
  392. package/dest/timetable/index.js +39 -0
  393. package/dest/trees/append_only_tree_snapshot.d.ts +13 -1
  394. package/dest/trees/append_only_tree_snapshot.d.ts.map +1 -1
  395. package/dest/trees/nullifier_leaf.d.ts +13 -1
  396. package/dest/trees/nullifier_leaf.d.ts.map +1 -1
  397. package/dest/trees/nullifier_membership_witness.d.ts +10 -1
  398. package/dest/trees/nullifier_membership_witness.d.ts.map +1 -1
  399. package/dest/trees/public_data_leaf.d.ts +17 -1
  400. package/dest/trees/public_data_leaf.d.ts.map +1 -1
  401. package/dest/trees/public_data_leaf.js +7 -6
  402. package/dest/trees/public_data_witness.d.ts +11 -1
  403. package/dest/trees/public_data_witness.d.ts.map +1 -1
  404. package/dest/tx/block_header.d.ts +14 -2
  405. package/dest/tx/block_header.d.ts.map +1 -1
  406. package/dest/tx/block_header.js +6 -2
  407. package/dest/tx/call_context.d.ts +13 -1
  408. package/dest/tx/call_context.d.ts.map +1 -1
  409. package/dest/tx/capsule.d.ts +4 -1
  410. package/dest/tx/capsule.d.ts.map +1 -1
  411. package/dest/tx/execution_payload.d.ts +9 -1
  412. package/dest/tx/execution_payload.d.ts.map +1 -1
  413. package/dest/tx/function_data.d.ts +4 -2
  414. package/dest/tx/function_data.d.ts.map +1 -1
  415. package/dest/tx/global_variables.d.ts +12 -4
  416. package/dest/tx/global_variables.d.ts.map +1 -1
  417. package/dest/tx/hashed_values.d.ts +7 -1
  418. package/dest/tx/hashed_values.d.ts.map +1 -1
  419. package/dest/tx/in_tx.d.ts +4 -4
  420. package/dest/tx/indexed_tx_effect.d.ts +5 -5
  421. package/dest/tx/indexed_tx_effect.d.ts.map +1 -1
  422. package/dest/tx/indexed_tx_effect.js +3 -2
  423. package/dest/tx/partial_state_reference.d.ts +4 -1
  424. package/dest/tx/partial_state_reference.d.ts.map +1 -1
  425. package/dest/tx/private_execution_result.d.ts +23 -2
  426. package/dest/tx/private_execution_result.d.ts.map +1 -1
  427. package/dest/tx/private_execution_result.js +1 -1
  428. package/dest/tx/private_tx_constant_data.d.ts +16 -1
  429. package/dest/tx/private_tx_constant_data.d.ts.map +1 -1
  430. package/dest/tx/profiling.d.ts +152 -29
  431. package/dest/tx/profiling.d.ts.map +1 -1
  432. package/dest/tx/profiling.js +47 -10
  433. package/dest/tx/protocol_contracts.d.ts +2 -2
  434. package/dest/tx/protocol_contracts.d.ts.map +1 -1
  435. package/dest/tx/protocol_contracts.js +2 -2
  436. package/dest/tx/public_call_request_with_calldata.d.ts +7 -1
  437. package/dest/tx/public_call_request_with_calldata.d.ts.map +1 -1
  438. package/dest/tx/public_simulation_output.d.ts +4 -2
  439. package/dest/tx/public_simulation_output.d.ts.map +1 -1
  440. package/dest/tx/public_simulation_output.js +7 -3
  441. package/dest/tx/state_reference.d.ts +3 -1
  442. package/dest/tx/state_reference.d.ts.map +1 -1
  443. package/dest/tx/tx.d.ts +24 -1
  444. package/dest/tx/tx.d.ts.map +1 -1
  445. package/dest/tx/tx.js +6 -3
  446. package/dest/tx/tx_context.d.ts +2 -1
  447. package/dest/tx/tx_context.d.ts.map +1 -1
  448. package/dest/tx/tx_effect.d.ts +32 -6
  449. package/dest/tx/tx_effect.d.ts.map +1 -1
  450. package/dest/tx/tx_effect.js +0 -7
  451. package/dest/tx/tx_execution_request.d.ts +30 -1
  452. package/dest/tx/tx_execution_request.d.ts.map +1 -1
  453. package/dest/tx/tx_hash.d.ts +2 -1
  454. package/dest/tx/tx_hash.d.ts.map +1 -1
  455. package/dest/tx/tx_receipt.d.ts +47 -13
  456. package/dest/tx/tx_receipt.d.ts.map +1 -1
  457. package/dest/tx/tx_receipt.js +46 -15
  458. package/dest/tx/tx_request.d.ts +6 -1
  459. package/dest/tx/tx_request.d.ts.map +1 -1
  460. package/dest/tx/tx_request.js +2 -2
  461. package/dest/tx/validator/empty_validator.d.ts +2 -2
  462. package/dest/tx/validator/empty_validator.d.ts.map +1 -1
  463. package/dest/tx/validator/error_texts.d.ts +3 -2
  464. package/dest/tx/validator/error_texts.d.ts.map +1 -1
  465. package/dest/tx/validator/error_texts.js +3 -1
  466. package/dest/tx/validator/tx_validator.d.ts +2 -2
  467. package/dest/tx/validator/tx_validator.d.ts.map +1 -1
  468. package/dest/types/shared.d.ts +4 -1
  469. package/dest/types/shared.d.ts.map +1 -1
  470. package/dest/validators/schemas.d.ts +38 -38
  471. package/dest/validators/schemas.d.ts.map +1 -1
  472. package/dest/validators/schemas.js +4 -3
  473. package/dest/validators/types.d.ts +3 -3
  474. package/dest/validators/types.d.ts.map +1 -1
  475. package/dest/vks/verification_key.d.ts +22 -1
  476. package/dest/vks/verification_key.d.ts.map +1 -1
  477. package/dest/vks/vk_data.d.ts +7 -1
  478. package/dest/vks/vk_data.d.ts.map +1 -1
  479. package/dest/zkpassport/index.d.ts +3 -4
  480. package/dest/zkpassport/index.d.ts.map +1 -1
  481. package/dest/zkpassport/index.js +9 -9
  482. package/package.json +27 -13
  483. package/src/abi/function_call.ts +25 -3
  484. package/src/abi/utils.ts +17 -0
  485. package/src/auth_witness/auth_witness.ts +3 -3
  486. package/src/block/block_data.ts +26 -0
  487. package/src/block/block_hash.ts +26 -25
  488. package/src/block/block_parameter.ts +4 -2
  489. package/src/block/body.ts +2 -1
  490. package/src/block/checkpointed_l2_block.ts +8 -58
  491. package/src/block/in_block.ts +6 -6
  492. package/src/block/index.ts +1 -2
  493. package/src/block/l2_block.ts +102 -150
  494. package/src/block/l2_block_source.ts +93 -42
  495. package/src/block/l2_block_stream/interfaces.ts +8 -5
  496. package/src/block/l2_block_stream/l2_block_stream.ts +45 -37
  497. package/src/block/l2_block_stream/l2_tips_store_base.ts +2 -2
  498. package/src/block/test/l2_tips_store_test_suite.ts +4 -9
  499. package/src/block/validate_block_result.ts +5 -4
  500. package/src/checkpoint/checkpoint.ts +61 -21
  501. package/src/checkpoint/checkpoint_data.ts +51 -0
  502. package/src/checkpoint/index.ts +1 -0
  503. package/src/checkpoint/published_checkpoint.ts +7 -4
  504. package/src/config/index.ts +1 -0
  505. package/src/config/node-rpc-config.ts +1 -1
  506. package/src/config/sequencer-config.ts +29 -0
  507. package/src/contract/contract_address.ts +4 -4
  508. package/src/contract/contract_class.ts +3 -3
  509. package/src/contract/contract_class_id.ts +6 -5
  510. package/src/contract/index.ts +0 -2
  511. package/src/contract/interfaces/node-info.ts +3 -0
  512. package/src/contract/private_function.ts +3 -4
  513. package/src/contract/private_function_membership_proof.ts +1 -1
  514. package/src/database-version/database_version.ts +87 -0
  515. package/src/database-version/version_manager.ts +1 -77
  516. package/src/delayed_public_mutable/delayed_public_mutable_values.ts +9 -10
  517. package/src/deserialization/index.ts +21 -0
  518. package/src/epoch-helpers/index.ts +13 -1
  519. package/src/file-store/local.ts +15 -5
  520. package/src/file-store/s3.ts +12 -3
  521. package/src/hash/hash.ts +14 -10
  522. package/src/hash/map_slot.ts +3 -2
  523. package/src/interfaces/api_limit.ts +1 -0
  524. package/src/interfaces/archiver.ts +23 -24
  525. package/src/interfaces/aztec-node-admin.ts +26 -2
  526. package/src/interfaces/aztec-node.ts +86 -135
  527. package/src/interfaces/block-builder.ts +41 -23
  528. package/src/interfaces/configs.ts +13 -4
  529. package/src/interfaces/l2_logs_source.ts +17 -4
  530. package/src/interfaces/merkle_tree_operations.ts +1 -1
  531. package/src/interfaces/p2p.ts +1 -1
  532. package/src/interfaces/prover-broker.ts +22 -0
  533. package/src/interfaces/prover-client.ts +22 -0
  534. package/src/interfaces/slasher.ts +4 -0
  535. package/src/interfaces/tx_provider.ts +2 -2
  536. package/src/interfaces/validator.ts +20 -12
  537. package/src/kernel/hints/build_note_hash_read_request_hints.ts +17 -6
  538. package/src/kernel/hints/build_nullifier_read_request_hints.ts +17 -14
  539. package/src/kernel/hints/index.ts +2 -2
  540. package/src/kernel/hints/{key_validation_request_and_generator.ts → key_validation_request_and_separator.ts} +12 -15
  541. package/src/kernel/hints/{scoped_key_validation_request_and_generator.ts → scoped_key_validation_request_and_separator.ts} +10 -10
  542. package/src/kernel/private_circuit_public_inputs.ts +14 -14
  543. package/src/kernel/private_kernel_circuit_public_inputs.ts +2 -2
  544. package/src/kernel/private_kernel_tail_circuit_private_inputs.ts +2 -2
  545. package/src/kernel/private_kernel_tail_circuit_public_inputs.ts +5 -5
  546. package/src/kernel/private_to_public_kernel_circuit_public_inputs.ts +5 -5
  547. package/src/kernel/private_to_rollup_kernel_circuit_public_inputs.ts +5 -5
  548. package/src/kernel/private_validation_requests.ts +8 -8
  549. package/src/keys/derivation.ts +15 -15
  550. package/src/keys/key_types.ts +6 -2
  551. package/src/keys/public_keys.ts +2 -2
  552. package/src/keys/utils.ts +8 -4
  553. package/src/l1-contracts/slash_factory.ts +1 -0
  554. package/src/logs/log_id.ts +22 -18
  555. package/src/logs/siloed_tag.ts +2 -2
  556. package/src/messaging/l2_to_l1_membership.ts +8 -6
  557. package/src/messaging/out_hash.ts +60 -29
  558. package/src/note/index.ts +0 -1
  559. package/src/note/note_dao.ts +18 -13
  560. package/src/p2p/block_proposal.ts +36 -15
  561. package/src/p2p/checkpoint_attestation.ts +6 -1
  562. package/src/p2p/checkpoint_proposal.ts +74 -24
  563. package/src/p2p/consensus_payload.ts +25 -17
  564. package/src/p2p/constants.ts +6 -0
  565. package/src/p2p/index.ts +1 -0
  566. package/src/p2p/message_validator.ts +14 -2
  567. package/src/p2p/signed_txs.ts +6 -1
  568. package/src/p2p/topic_type.ts +1 -1
  569. package/src/proofs/chonk_proof.ts +9 -5
  570. package/src/rollup/block_headers_hash.ts +1 -1
  571. package/src/rollup/block_rollup_public_inputs.ts +2 -2
  572. package/src/rollup/checkpoint_header.ts +22 -2
  573. package/src/rollup/checkpoint_rollup_public_inputs.ts +16 -10
  574. package/src/rollup/checkpoint_root_rollup_private_inputs.ts +14 -1
  575. package/src/rollup/root_rollup_public_inputs.ts +11 -8
  576. package/src/slashing/empire.ts +3 -1
  577. package/src/slashing/helpers.ts +8 -0
  578. package/src/slashing/tally.ts +8 -2
  579. package/src/slashing/types.ts +14 -0
  580. package/src/stats/stats.ts +0 -2
  581. package/src/tests/factories.ts +23 -43
  582. package/src/tests/jest.ts +1 -1
  583. package/src/tests/mocks.ts +83 -52
  584. package/src/timetable/index.ts +66 -0
  585. package/src/trees/public_data_leaf.ts +11 -5
  586. package/src/tx/block_header.ts +12 -4
  587. package/src/tx/global_variables.ts +3 -3
  588. package/src/tx/indexed_tx_effect.ts +3 -2
  589. package/src/tx/private_execution_result.ts +1 -1
  590. package/src/tx/profiling.ts +51 -9
  591. package/src/tx/protocol_contracts.ts +2 -2
  592. package/src/tx/public_simulation_output.ts +4 -0
  593. package/src/tx/tx.ts +8 -9
  594. package/src/tx/tx_effect.ts +0 -9
  595. package/src/tx/tx_receipt.ts +75 -18
  596. package/src/tx/tx_request.ts +2 -2
  597. package/src/tx/validator/empty_validator.ts +1 -1
  598. package/src/tx/validator/error_texts.ts +4 -1
  599. package/src/tx/validator/tx_validator.ts +1 -1
  600. package/src/validators/schemas.ts +8 -1
  601. package/src/validators/types.ts +5 -4
  602. package/src/zkpassport/index.ts +11 -12
  603. package/dest/block/l2_block_code_to_purge.d.ts +0 -11
  604. package/dest/block/l2_block_code_to_purge.d.ts.map +0 -1
  605. package/dest/block/l2_block_code_to_purge.js +0 -55
  606. package/dest/block/l2_block_header.d.ts +0 -94
  607. package/dest/block/l2_block_header.d.ts.map +0 -1
  608. package/dest/block/l2_block_header.js +0 -160
  609. package/dest/block/l2_block_new.d.ts +0 -134
  610. package/dest/block/l2_block_new.d.ts.map +0 -1
  611. package/dest/block/l2_block_new.js +0 -155
  612. package/dest/contract/contract_class_metadata.d.ts +0 -8
  613. package/dest/contract/contract_class_metadata.d.ts.map +0 -1
  614. package/dest/contract/contract_class_metadata.js +0 -1
  615. package/dest/contract/contract_metadata.d.ts +0 -7
  616. package/dest/contract/contract_metadata.d.ts.map +0 -1
  617. package/dest/contract/contract_metadata.js +0 -1
  618. package/dest/database-version/index.d.ts +0 -2
  619. package/dest/database-version/index.d.ts.map +0 -1
  620. package/dest/database-version/index.js +0 -1
  621. package/dest/kernel/hints/key_validation_request_and_generator.d.ts +0 -25
  622. package/dest/kernel/hints/key_validation_request_and_generator.d.ts.map +0 -1
  623. package/dest/note/notes_filter.d.ts +0 -27
  624. package/dest/note/notes_filter.d.ts.map +0 -1
  625. package/dest/note/notes_filter.js +0 -11
  626. package/src/block/l2_block_code_to_purge.ts +0 -80
  627. package/src/block/l2_block_header.ts +0 -255
  628. package/src/block/l2_block_new.ts +0 -211
  629. package/src/contract/contract_class_metadata.ts +0 -8
  630. package/src/contract/contract_metadata.ts +0 -7
  631. package/src/database-version/index.ts +0 -1
  632. package/src/note/notes_filter.ts +0 -38
@@ -65,12 +65,16 @@ export interface SequencerConfig {
65
65
  shuffleAttestationOrdering?: boolean;
66
66
  /** Duration per block in milliseconds when building multiple blocks per slot (default: undefined = single block per slot) */
67
67
  blockDurationMs?: number;
68
+ /** Expected number of block proposals per slot for P2P peer scoring. 0 disables scoring, undefined falls back to blocksPerSlot - 1. */
69
+ expectedBlockProposalsPerSlot?: number;
68
70
  /** Have sequencer build and publish an empty checkpoint if there are no txs */
69
71
  buildCheckpointIfEmpty?: boolean;
70
-
71
- // TODO(palla/mbps): Change default to false once block sync is stable
72
- /** Skip pushing proposed blocks to archiver (default: true) */
72
+ /** Skip pushing proposed blocks to archiver (default: false) */
73
73
  skipPushProposedBlocksToArchiver?: boolean;
74
+ /** Minimum number of blocks required for a checkpoint proposal (test only, defaults to undefined = no minimum) */
75
+ minBlocksForCheckpoint?: number;
76
+ /** Skip publishing checkpoint proposals probability (for testing checkpoint prunes only) */
77
+ skipPublishingCheckpointsPercent?: number;
74
78
  }
75
79
 
76
80
  export const SequencerConfigSchema = zodFor<SequencerConfig>()(
@@ -103,14 +107,18 @@ export const SequencerConfigSchema = zodFor<SequencerConfig>()(
103
107
  fishermanMode: z.boolean().optional(),
104
108
  shuffleAttestationOrdering: z.boolean().optional(),
105
109
  blockDurationMs: z.number().positive().optional(),
110
+ expectedBlockProposalsPerSlot: z.number().nonnegative().optional(),
106
111
  buildCheckpointIfEmpty: z.boolean().optional(),
107
112
  skipPushProposedBlocksToArchiver: z.boolean().optional(),
113
+ minBlocksForCheckpoint: z.number().positive().optional(),
114
+ skipPublishingCheckpointsPercent: z.number().gte(0).lte(100).optional(),
108
115
  }),
109
116
  );
110
117
 
111
118
  type SequencerConfigOptionalKeys =
112
119
  | 'governanceProposerPayload'
113
120
  | 'blockDurationMs'
121
+ | 'expectedBlockProposalsPerSlot'
114
122
  | 'coinbase'
115
123
  | 'feeRecipient'
116
124
  | 'acvmWorkingDirectory'
@@ -119,7 +127,8 @@ type SequencerConfigOptionalKeys =
119
127
  | 'fakeThrowAfterProcessingTxCount'
120
128
  | 'l1PublishingTime'
121
129
  | 'txPublicSetupAllowList'
122
- | 'minValidTxsPerBlock';
130
+ | 'minValidTxsPerBlock'
131
+ | 'minBlocksForCheckpoint';
123
132
 
124
133
  export type ResolvedSequencerConfig = Prettify<
125
134
  Required<Omit<SequencerConfig, SequencerConfigOptionalKeys>> & Pick<SequencerConfig, SequencerConfigOptionalKeys>
@@ -12,16 +12,29 @@ import type { GetContractClassLogsResponse, GetPublicLogsResponse } from './get_
12
12
  */
13
13
  export interface L2LogsSource {
14
14
  /**
15
- * Gets all private logs that match any of the `tags`. For each tag, an array of matching logs is returned. An empty
15
+ * Gets private logs that match any of the `tags`. For each tag, an array of matching logs is returned. An empty
16
16
  * array implies no logs match that tag.
17
+ * @param tags - The tags to search for.
18
+ * @param page - The page number (0-indexed) for pagination.
19
+ * @returns An array of log arrays, one per tag. Returns at most 10 logs per tag per page. If 10 logs are returned
20
+ * for a tag, the caller should fetch the next page to check for more logs.
17
21
  */
18
- getPrivateLogsByTags(tags: SiloedTag[]): Promise<TxScopedL2Log[][]>;
22
+ getPrivateLogsByTags(tags: SiloedTag[], page?: number): Promise<TxScopedL2Log[][]>;
19
23
 
20
24
  /**
21
- * Gets all public logs that match any of the `tags` from the specified contract. For each tag, an array of matching
25
+ * Gets public logs that match any of the `tags` from the specified contract. For each tag, an array of matching
22
26
  * logs is returned. An empty array implies no logs match that tag.
27
+ * @param contractAddress - The contract address to search logs for.
28
+ * @param tags - The tags to search for.
29
+ * @param page - The page number (0-indexed) for pagination.
30
+ * @returns An array of log arrays, one per tag. Returns at most 10 logs per tag per page. If 10 logs are returned
31
+ * for a tag, the caller should fetch the next page to check for more logs.
23
32
  */
24
- getPublicLogsByTagsFromContract(contractAddress: AztecAddress, tags: Tag[]): Promise<TxScopedL2Log[][]>;
33
+ getPublicLogsByTagsFromContract(
34
+ contractAddress: AztecAddress,
35
+ tags: Tag[],
36
+ page?: number,
37
+ ): Promise<TxScopedL2Log[][]>;
25
38
 
26
39
  /**
27
40
  * Gets public logs based on the provided filter.
@@ -254,7 +254,7 @@ export interface MerkleTreeCheckpointOperations {
254
254
  export interface MerkleTreeWriteOperations
255
255
  extends MerkleTreeReadOperations,
256
256
  MerkleTreeCheckpointOperations,
257
- Disposable {
257
+ AsyncDisposable {
258
258
  /**
259
259
  * Appends leaves to a given tree.
260
260
  * @param treeId - The tree to be updated.
@@ -63,7 +63,7 @@ export interface P2PApiWithAttestations extends P2PApiWithoutAttestations {
63
63
 
64
64
  export interface P2PClient extends P2PApiWithAttestations {
65
65
  /** Manually adds checkpoint attestations to the p2p client attestation pool. */
66
- addCheckpointAttestations(attestations: CheckpointAttestation[]): Promise<void>;
66
+ addOwnCheckpointAttestations(attestations: CheckpointAttestation[]): Promise<void>;
67
67
  }
68
68
 
69
69
  export type P2PApi<T extends P2PClientType = P2PClientType.Full> = T extends P2PClientType.Full
@@ -1,3 +1,5 @@
1
+ import type { EpochNumber } from '@aztec/foundation/branded-types';
2
+
1
3
  import type { ProvingRequestType } from '../proofs/proving_request_type.js';
2
4
  import type { ProofUri, ProvingJob, ProvingJobId, ProvingJobStatus } from './proving-job.js';
3
5
 
@@ -88,3 +90,23 @@ export interface ProvingJobConsumer {
88
90
  }
89
91
 
90
92
  export interface ProvingJobBroker extends ProvingJobProducer, ProvingJobConsumer {}
93
+
94
+ /**
95
+ * Debug interface for replaying proving jobs from stored inputs.
96
+ * Used for benchmarking different agent configurations against the same workload.
97
+ */
98
+ export interface ProvingJobBrokerDebug {
99
+ /**
100
+ * Replays a proving job by re-enqueuing it with inputs from the configured proof store.
101
+ * The proof type is parsed from the job ID (format: epoch:typeName:hash).
102
+ * @param jobId - The original job ID to replay
103
+ * @param epochNumber - The epoch number to assign
104
+ * @param inputsUri - The proof inputs location
105
+ */
106
+ replayProvingJob(
107
+ jobId: ProvingJobId,
108
+ type: ProvingRequestType,
109
+ epochNumber: EpochNumber,
110
+ inputsUri: ProofUri,
111
+ ): Promise<ProvingJobStatus>;
112
+ }
@@ -17,6 +17,12 @@ export type ActualProverConfig = {
17
17
  proverTestDelayMs: number;
18
18
  /** If using realistic delays, what percentage of realistic times to apply. */
19
19
  proverTestDelayFactor: number;
20
+ /**
21
+ * Whether to abort pending proving jobs when the orchestrator is cancelled.
22
+ * When false (default), jobs remain in the broker queue and can be reused on restart/reorg.
23
+ * When true, jobs are explicitly cancelled with the broker, which prevents reuse.
24
+ */
25
+ cancelJobsOnStop: boolean;
20
26
  };
21
27
 
22
28
  /**
@@ -29,6 +35,8 @@ export type ProverConfig = ActualProverConfig & {
29
35
  proverId?: EthAddress;
30
36
  /** Number of proving agents to start within the prover. */
31
37
  proverAgentCount: number;
38
+ /** Where to store proving request. Must be accessible to both prover node and agents. If not set will inline-encode the parameters */
39
+ proofStore?: string;
32
40
  /** Store for failed proof inputs. */
33
41
  failedProofStore?: string;
34
42
  };
@@ -42,7 +50,9 @@ export const ProverConfigSchema = zodFor<ProverConfig>()(
42
50
  proverTestDelayMs: z.number(),
43
51
  proverTestDelayFactor: z.number(),
44
52
  proverAgentCount: z.number(),
53
+ proofStore: z.string().optional(),
45
54
  failedProofStore: z.string().optional(),
55
+ cancelJobsOnStop: z.boolean(),
46
56
  }),
47
57
  );
48
58
 
@@ -80,11 +90,23 @@ export const proverConfigMappings: ConfigMappingsType<ProverConfig> = {
80
90
  description: 'The number of prover agents to start',
81
91
  ...numberConfigHelper(1),
82
92
  },
93
+ proofStore: {
94
+ env: 'PROVER_PROOF_STORE',
95
+ description: 'Optional proof input store for the prover',
96
+ },
83
97
  failedProofStore: {
84
98
  env: 'PROVER_FAILED_PROOF_STORE',
85
99
  description:
86
100
  'Store for failed proof inputs. Google cloud storage is only supported at the moment. Set this value as gs://bucket-name/path/to/store.',
87
101
  },
102
+ cancelJobsOnStop: {
103
+ env: 'PROVER_CANCEL_JOBS_ON_STOP',
104
+ description:
105
+ 'Whether to abort pending proving jobs when the orchestrator is cancelled. ' +
106
+ 'When false (default), jobs remain in the broker queue and can be reused on restart/reorg. ' +
107
+ 'When true, jobs are explicitly cancelled with the broker, which prevents reuse.',
108
+ ...booleanConfigHelper(false),
109
+ },
88
110
  };
89
111
 
90
112
  function parseProverId(str?: string) {
@@ -18,6 +18,8 @@ export interface SlasherConfig {
18
18
  slashDataWithholdingPenalty: bigint;
19
19
  slashInactivityPenalty: bigint;
20
20
  slashBroadcastedInvalidBlockPenalty: bigint;
21
+ slashDuplicateProposalPenalty: bigint;
22
+ slashDuplicateAttestationPenalty: bigint;
21
23
  slashProposeInvalidAttestationsPenalty: bigint;
22
24
  slashAttestDescendantOfInvalidPenalty: bigint;
23
25
  slashUnknownPenalty: bigint;
@@ -40,6 +42,8 @@ export const SlasherConfigSchema = zodFor<SlasherConfig>()(
40
42
  slashInactivityConsecutiveEpochThreshold: z.number(),
41
43
  slashInactivityPenalty: schemas.BigInt,
42
44
  slashProposeInvalidAttestationsPenalty: schemas.BigInt,
45
+ slashDuplicateProposalPenalty: schemas.BigInt,
46
+ slashDuplicateAttestationPenalty: schemas.BigInt,
43
47
  slashAttestDescendantOfInvalidPenalty: schemas.BigInt,
44
48
  slashUnknownPenalty: schemas.BigInt,
45
49
  slashOffenseExpirationRounds: z.number(),
@@ -1,4 +1,4 @@
1
- import type { L2BlockNew } from '@aztec/stdlib/block';
1
+ import type { L2Block } from '@aztec/stdlib/block';
2
2
  import type { BlockProposal } from '@aztec/stdlib/p2p';
3
3
  import { type Tx, TxHash } from '@aztec/stdlib/tx';
4
4
 
@@ -13,5 +13,5 @@ export interface ITxProvider {
13
13
  opts: { pinnedPeer: PeerId | undefined; deadline: Date },
14
14
  ): Promise<{ txs: Tx[]; missingTxs: TxHash[] }>;
15
15
 
16
- getTxsForBlock(block: L2BlockNew, opts: { deadline: Date }): Promise<{ txs: Tx[]; missingTxs: TxHash[] }>;
16
+ getTxsForBlock(block: L2Block, opts: { deadline: Date }): Promise<{ txs: Tx[]; missingTxs: TxHash[] }>;
17
17
  }
@@ -1,3 +1,4 @@
1
+ import type { BlockNumber, CheckpointNumber, SlotNumber } from '@aztec/foundation/branded-types';
1
2
  import type { SecretValue } from '@aztec/foundation/config';
2
3
  import { Fr } from '@aztec/foundation/curves/bn254';
3
4
  import type { EthAddress } from '@aztec/foundation/eth-address';
@@ -14,6 +15,7 @@ import type {
14
15
  } from '@aztec/stdlib/p2p';
15
16
  import type { CheckpointHeader } from '@aztec/stdlib/rollup';
16
17
  import type { BlockHeader, Tx } from '@aztec/stdlib/tx';
18
+ import { type ValidatorHASignerConfig, ValidatorHASignerConfigSchema } from '@aztec/validator-ha-signer/config';
17
19
 
18
20
  import type { PeerId } from '@libp2p/interface';
19
21
  import { z } from 'zod';
@@ -24,7 +26,7 @@ import { AllowedElementSchema } from './allowed_element.js';
24
26
  /**
25
27
  * Validator client configuration
26
28
  */
27
- export interface ValidatorClientConfig {
29
+ export type ValidatorClientConfig = ValidatorHASignerConfig & {
28
30
  /** The private keys of the validators participating in attestation duties */
29
31
  validatorPrivateKeys?: SecretValue<`0x${string}`[]>;
30
32
 
@@ -43,27 +45,28 @@ export interface ValidatorClientConfig {
43
45
  /** Whether to re-execute transactions in a block proposal before attesting */
44
46
  validatorReexecute: boolean;
45
47
 
46
- /** Will re-execute until this many milliseconds are left in the slot */
47
- validatorReexecuteDeadlineMs: number;
48
-
49
48
  /** Whether to always reexecute block proposals, even for non-validator nodes or when out of the currnet committee */
50
49
  alwaysReexecuteBlockProposals?: boolean;
51
50
 
52
51
  /** Whether to run in fisherman mode: validates all proposals and attestations but does not broadcast attestations or participate in consensus */
53
52
  fishermanMode?: boolean;
54
53
 
55
- // TODO(palla/mbps): Change default to false once checkpoint validation is stable
56
- /** Skip checkpoint proposal validation and always attest (default: true) */
54
+ /** Skip checkpoint proposal validation and always attest (default: false) */
57
55
  skipCheckpointProposalValidation?: boolean;
58
56
 
59
- // TODO(palla/mbps): Change default to false once block sync is stable
60
- /** Skip pushing re-executed blocks to archiver (default: true) */
57
+ /** Skip pushing re-executed blocks to archiver (default: false) */
61
58
  skipPushProposedBlocksToArchiver?: boolean;
62
- }
59
+
60
+ /** Agree to attest to equivocated checkpoint proposals (for testing purposes only) */
61
+ attestToEquivocatedProposals?: boolean;
62
+ };
63
63
 
64
64
  export type ValidatorClientFullConfig = ValidatorClientConfig &
65
65
  Pick<SequencerConfig, 'txPublicSetupAllowList' | 'broadcastInvalidBlockProposal'> &
66
- Pick<SlasherConfig, 'slashBroadcastedInvalidBlockPenalty'> & {
66
+ Pick<
67
+ SlasherConfig,
68
+ 'slashBroadcastedInvalidBlockPenalty' | 'slashDuplicateProposalPenalty' | 'slashDuplicateAttestationPenalty'
69
+ > & {
67
70
  /**
68
71
  * Whether transactions are disabled for this node
69
72
  * @remarks This should match the property in P2PConfig. It's not picked from there to avoid circular dependencies.
@@ -72,17 +75,17 @@ export type ValidatorClientFullConfig = ValidatorClientConfig &
72
75
  };
73
76
 
74
77
  export const ValidatorClientConfigSchema = zodFor<Omit<ValidatorClientConfig, 'validatorPrivateKeys'>>()(
75
- z.object({
78
+ ValidatorHASignerConfigSchema.extend({
76
79
  validatorAddresses: z.array(schemas.EthAddress).optional(),
77
80
  disableValidator: z.boolean(),
78
81
  disabledValidators: z.array(schemas.EthAddress),
79
82
  attestationPollingIntervalMs: z.number().min(0),
80
83
  validatorReexecute: z.boolean(),
81
- validatorReexecuteDeadlineMs: z.number().min(0),
82
84
  alwaysReexecuteBlockProposals: z.boolean().optional(),
83
85
  fishermanMode: z.boolean().optional(),
84
86
  skipCheckpointProposalValidation: z.boolean().optional(),
85
87
  skipPushProposedBlocksToArchiver: z.boolean().optional(),
88
+ attestToEquivocatedProposals: z.boolean().optional(),
86
89
  }),
87
90
  );
88
91
 
@@ -91,6 +94,8 @@ export const ValidatorClientFullConfigSchema = zodFor<Omit<ValidatorClientFullCo
91
94
  txPublicSetupAllowList: z.array(AllowedElementSchema).optional(),
92
95
  broadcastInvalidBlockProposal: z.boolean().optional(),
93
96
  slashBroadcastedInvalidBlockPenalty: schemas.BigInt,
97
+ slashDuplicateProposalPenalty: schemas.BigInt,
98
+ slashDuplicateAttestationPenalty: schemas.BigInt,
94
99
  disableTransactions: z.boolean().optional(),
95
100
  }),
96
101
  );
@@ -116,6 +121,7 @@ export interface Validator {
116
121
  createCheckpointProposal(
117
122
  checkpointHeader: CheckpointHeader,
118
123
  archive: Fr,
124
+ feeAssetPriceModifier: bigint,
119
125
  lastBlockInfo: CreateCheckpointProposalLastBlockData | undefined,
120
126
  proposerAddress: EthAddress | undefined,
121
127
  options: CheckpointProposalOptions,
@@ -148,5 +154,7 @@ export interface Validator {
148
154
  signAttestationsAndSigners(
149
155
  attestationsAndSigners: CommitteeAttestationsAndSigners,
150
156
  proposer: EthAddress,
157
+ slot: SlotNumber,
158
+ blockNumber: BlockNumber | CheckpointNumber,
151
159
  ): Promise<Signature>;
152
160
  }
@@ -76,17 +76,28 @@ export async function buildNoteHashReadRequestHintsFromResetActions<PENDING exte
76
76
  builder.addPendingReadRequest(hint.readRequestIndex, hint.pendingValueIndex);
77
77
  });
78
78
 
79
+ // Collect all settled read requests
80
+ const settledRequests: { index: number; readRequest: ScopedReadRequest }[] = [];
79
81
  for (let i = 0; i < resetActions.actions.length; i++) {
80
82
  if (resetActions.actions[i] === ReadRequestActionEnum.READ_AS_SETTLED) {
81
- const readRequest = noteHashReadRequests.array[i];
82
- const membershipWitness = await oracle.getNoteHashMembershipWitness(readRequest.value);
83
- if (!membershipWitness) {
84
- throw new Error('Read request is reading an unknown note hash.');
85
- }
86
- builder.addSettledReadRequest(i, membershipWitness, readRequest.value);
83
+ settledRequests.push({ index: i, readRequest: noteHashReadRequests.array[i] });
87
84
  }
88
85
  }
89
86
 
87
+ // Fetch all membership witnesses in parallel
88
+ const membershipWitnesses = await Promise.all(
89
+ settledRequests.map(({ readRequest }) => oracle.getNoteHashMembershipWitness(readRequest.value)),
90
+ );
91
+
92
+ // Add settled read requests to builder
93
+ for (let i = 0; i < settledRequests.length; i++) {
94
+ const membershipWitness = membershipWitnesses[i];
95
+ if (!membershipWitness) {
96
+ throw new Error('Read request is reading an unknown note hash.');
97
+ }
98
+ builder.addSettledReadRequest(settledRequests[i].index, membershipWitness, settledRequests[i].readRequest.value);
99
+ }
100
+
90
101
  const noteHashMap: Map<bigint, { noteHash: ScopedNoteHash; index: number }[]> = new Map();
91
102
  noteHashes.getActiveItems().forEach((noteHash, index) => {
92
103
  const value = noteHash.value.toBigInt();
@@ -6,7 +6,6 @@ import {
6
6
  import type { Fr } from '@aztec/foundation/curves/bn254';
7
7
  import { MembershipWitness } from '@aztec/foundation/trees';
8
8
 
9
- import { siloNullifier } from '../../hash/hash.js';
10
9
  import type { NullifierLeafPreimage } from '../../trees/nullifier_leaf.js';
11
10
  import type { ClaimedLengthArray } from '../claimed_length_array.js';
12
11
  import type { ScopedNullifier } from '../nullifier.js';
@@ -74,7 +73,6 @@ export async function buildNullifierReadRequestHintsFromResetActions<PENDING ext
74
73
  resetActions: ReadRequestResetActions<typeof MAX_NULLIFIER_READ_REQUESTS_PER_TX>,
75
74
  maxPending: PENDING = MAX_NULLIFIER_READ_REQUESTS_PER_TX as PENDING,
76
75
  maxSettled: SETTLED = MAX_NULLIFIER_READ_REQUESTS_PER_TX as SETTLED,
77
- siloed = false,
78
76
  ) {
79
77
  const builder = new NullifierReadRequestHintsBuilder(maxPending, maxSettled);
80
78
 
@@ -82,21 +80,28 @@ export async function buildNullifierReadRequestHintsFromResetActions<PENDING ext
82
80
  builder.addPendingReadRequest(hint.readRequestIndex, hint.pendingValueIndex);
83
81
  });
84
82
 
83
+ // Collect all settled read requests
84
+ const settledRequests: { index: number; readRequest: ScopedReadRequest }[] = [];
85
85
  for (let i = 0; i < resetActions.actions.length; i++) {
86
86
  if (resetActions.actions[i] === ReadRequestActionEnum.READ_AS_SETTLED) {
87
- const readRequest = nullifierReadRequests.array[i];
88
- const siloedValue = siloed
89
- ? readRequest.value
90
- : await siloNullifier(readRequest.contractAddress, readRequest.value);
91
- const membershipWitnessWithPreimage = await oracle.getNullifierMembershipWitness(siloedValue);
92
- builder.addSettledReadRequest(
93
- i,
94
- membershipWitnessWithPreimage.membershipWitness,
95
- membershipWitnessWithPreimage.leafPreimage,
96
- );
87
+ settledRequests.push({ index: i, readRequest: nullifierReadRequests.array[i] });
97
88
  }
98
89
  }
99
90
 
91
+ const siloedValues = settledRequests.map(({ readRequest }) => readRequest.value);
92
+
93
+ // Fetch all membership witnesses in parallel
94
+ const membershipWitnesses = await Promise.all(siloedValues.map(value => oracle.getNullifierMembershipWitness(value)));
95
+
96
+ // Add settled read requests to builder
97
+ for (let i = 0; i < settledRequests.length; i++) {
98
+ builder.addSettledReadRequest(
99
+ settledRequests[i].index,
100
+ membershipWitnesses[i].membershipWitness,
101
+ membershipWitnesses[i].leafPreimage,
102
+ );
103
+ }
104
+
100
105
  return builder.toHints();
101
106
  }
102
107
 
@@ -109,7 +114,6 @@ export async function buildNullifierReadRequestHints<PENDING extends number, SET
109
114
  futureNullifiers: ScopedNullifier[],
110
115
  maxPending: PENDING = MAX_NULLIFIER_READ_REQUESTS_PER_TX as PENDING,
111
116
  maxSettled: SETTLED = MAX_NULLIFIER_READ_REQUESTS_PER_TX as SETTLED,
112
- siloed = false,
113
117
  ) {
114
118
  const resetActions = getNullifierReadRequestResetActions(nullifierReadRequests, nullifiers, futureNullifiers);
115
119
  return await buildNullifierReadRequestHintsFromResetActions(
@@ -118,6 +122,5 @@ export async function buildNullifierReadRequestHints<PENDING extends number, SET
118
122
  resetActions,
119
123
  maxPending,
120
124
  maxSettled,
121
- siloed,
122
125
  );
123
126
  }
@@ -6,10 +6,10 @@ export * from './note_hash_read_request_hints.js';
6
6
  export * from './nullifier_read_request_hints.js';
7
7
  export * from './read_request_hints.js';
8
8
  export * from './key_validation_hint.js';
9
- export * from './key_validation_request_and_generator.js';
9
+ export * from './key_validation_request_and_separator.js';
10
10
  export * from './read_request.js';
11
11
  export * from './key_validation_request.js';
12
- export * from './scoped_key_validation_request_and_generator.js';
12
+ export * from './scoped_key_validation_request_and_separator.js';
13
13
  export * from './transient_data_squashing_hint.js';
14
14
  export * from './private_kernel_reset_hints.js';
15
15
  export * from './tree_leaf_read_request.js';
@@ -5,48 +5,45 @@ import { BufferReader, FieldReader, serializeToBuffer } from '@aztec/foundation/
5
5
  import { KeyValidationRequest } from './key_validation_request.js';
6
6
 
7
7
  /**
8
- * Request for validating keys used in the app and a generator.
8
+ * Request for validating keys used in the app, along with a domain separator for the key type.
9
9
  */
10
- export class KeyValidationRequestAndGenerator {
10
+ export class KeyValidationRequestAndSeparator {
11
11
  constructor(
12
12
  /** The key validation request. */
13
13
  public readonly request: KeyValidationRequest,
14
- /**
15
- * The generator index which can be used along with sk_m to derive the sk_app stored in the request.
16
- * Note: This generator constrains that a correct key type gets validated in the kernel.
17
- */
18
- public readonly skAppGenerator: Fr,
14
+ /** Domain separator for the key type, used along with sk_m to derive the sk_app stored in the request. */
15
+ public readonly keyTypeDomainSeparator: Fr,
19
16
  ) {}
20
17
 
21
18
  toBuffer() {
22
- return serializeToBuffer(this.request, this.skAppGenerator);
19
+ return serializeToBuffer(this.request, this.keyTypeDomainSeparator);
23
20
  }
24
21
 
25
22
  static fromBuffer(buffer: Buffer | BufferReader) {
26
23
  const reader = BufferReader.asReader(buffer);
27
- return new KeyValidationRequestAndGenerator(reader.readObject(KeyValidationRequest), Fr.fromBuffer(reader));
24
+ return new KeyValidationRequestAndSeparator(reader.readObject(KeyValidationRequest), Fr.fromBuffer(reader));
28
25
  }
29
26
 
30
27
  toFields(): Fr[] {
31
- const fields = [...this.request.toFields(), this.skAppGenerator];
28
+ const fields = [...this.request.toFields(), this.keyTypeDomainSeparator];
32
29
  if (fields.length !== KEY_VALIDATION_REQUEST_AND_GENERATOR_LENGTH) {
33
30
  throw new Error(
34
- `Invalid number of fields for KeyValidationRequestAndGenerator. Expected ${KEY_VALIDATION_REQUEST_AND_GENERATOR_LENGTH}, got ${fields.length}`,
31
+ `Invalid number of fields for KeyValidationRequestAndSeparator. Expected ${KEY_VALIDATION_REQUEST_AND_GENERATOR_LENGTH}, got ${fields.length}`,
35
32
  );
36
33
  }
37
34
  return fields;
38
35
  }
39
36
 
40
- static fromFields(fields: Fr[] | FieldReader): KeyValidationRequestAndGenerator {
37
+ static fromFields(fields: Fr[] | FieldReader): KeyValidationRequestAndSeparator {
41
38
  const reader = FieldReader.asReader(fields);
42
- return new KeyValidationRequestAndGenerator(KeyValidationRequest.fromFields(reader), reader.readField());
39
+ return new KeyValidationRequestAndSeparator(KeyValidationRequest.fromFields(reader), reader.readField());
43
40
  }
44
41
 
45
42
  isEmpty() {
46
- return this.request.isEmpty() && this.skAppGenerator.isZero();
43
+ return this.request.isEmpty() && this.keyTypeDomainSeparator.isZero();
47
44
  }
48
45
 
49
46
  static empty() {
50
- return new KeyValidationRequestAndGenerator(KeyValidationRequest.empty(), Fr.ZERO);
47
+ return new KeyValidationRequestAndSeparator(KeyValidationRequest.empty(), Fr.ZERO);
51
48
  }
52
49
  }
@@ -3,14 +3,14 @@ import type { Fr } from '@aztec/foundation/curves/bn254';
3
3
  import { BufferReader, FieldReader, serializeToBuffer } from '@aztec/foundation/serialize';
4
4
 
5
5
  import { AztecAddress } from '../../aztec-address/index.js';
6
- import { KeyValidationRequestAndGenerator } from './key_validation_request_and_generator.js';
6
+ import { KeyValidationRequestAndSeparator } from './key_validation_request_and_separator.js';
7
7
 
8
8
  /**
9
9
  * Request for validating keys used in the app.
10
10
  */
11
- export class ScopedKeyValidationRequestAndGenerator {
11
+ export class ScopedKeyValidationRequestAndSeparator {
12
12
  constructor(
13
- public readonly request: KeyValidationRequestAndGenerator,
13
+ public readonly request: KeyValidationRequestAndSeparator,
14
14
  public readonly contractAddress: AztecAddress,
15
15
  ) {}
16
16
 
@@ -20,8 +20,8 @@ export class ScopedKeyValidationRequestAndGenerator {
20
20
 
21
21
  static fromBuffer(buffer: Buffer | BufferReader) {
22
22
  const reader = BufferReader.asReader(buffer);
23
- return new ScopedKeyValidationRequestAndGenerator(
24
- KeyValidationRequestAndGenerator.fromBuffer(reader),
23
+ return new ScopedKeyValidationRequestAndSeparator(
24
+ KeyValidationRequestAndSeparator.fromBuffer(reader),
25
25
  AztecAddress.fromBuffer(reader),
26
26
  );
27
27
  }
@@ -30,16 +30,16 @@ export class ScopedKeyValidationRequestAndGenerator {
30
30
  const fields = [...this.request.toFields(), this.contractAddress.toField()];
31
31
  if (fields.length !== SCOPED_KEY_VALIDATION_REQUEST_AND_GENERATOR_LENGTH) {
32
32
  throw new Error(
33
- `Invalid number of fields for ScopedKeyValidationRequestAndGenerator. Expected ${SCOPED_KEY_VALIDATION_REQUEST_AND_GENERATOR_LENGTH}, got ${fields.length}`,
33
+ `Invalid number of fields for ScopedKeyValidationRequestAndSeparator. Expected ${SCOPED_KEY_VALIDATION_REQUEST_AND_GENERATOR_LENGTH}, got ${fields.length}`,
34
34
  );
35
35
  }
36
36
  return fields;
37
37
  }
38
38
 
39
- static fromFields(fields: Fr[] | FieldReader): ScopedKeyValidationRequestAndGenerator {
39
+ static fromFields(fields: Fr[] | FieldReader): ScopedKeyValidationRequestAndSeparator {
40
40
  const reader = FieldReader.asReader(fields);
41
- return new ScopedKeyValidationRequestAndGenerator(
42
- KeyValidationRequestAndGenerator.fromFields(reader),
41
+ return new ScopedKeyValidationRequestAndSeparator(
42
+ KeyValidationRequestAndSeparator.fromFields(reader),
43
43
  AztecAddress.fromFields(reader),
44
44
  );
45
45
  }
@@ -49,6 +49,6 @@ export class ScopedKeyValidationRequestAndGenerator {
49
49
  }
50
50
 
51
51
  static empty() {
52
- return new ScopedKeyValidationRequestAndGenerator(KeyValidationRequestAndGenerator.empty(), AztecAddress.ZERO);
52
+ return new ScopedKeyValidationRequestAndSeparator(KeyValidationRequestAndSeparator.empty(), AztecAddress.ZERO);
53
53
  }
54
54
  }