@aztec/stdlib 0.0.1-commit.d431d1c → 0.0.1-commit.dbf9cec

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 (455) hide show
  1. package/dest/abi/decoder.d.ts +1 -1
  2. package/dest/abi/decoder.d.ts.map +1 -1
  3. package/dest/abi/decoder.js +1 -4
  4. package/dest/abi/encoder.d.ts +1 -1
  5. package/dest/abi/encoder.d.ts.map +1 -1
  6. package/dest/abi/encoder.js +9 -5
  7. package/dest/abi/function_call.d.ts +39 -9
  8. package/dest/abi/function_call.d.ts.map +1 -1
  9. package/dest/abi/function_call.js +20 -3
  10. package/dest/auth_witness/auth_witness.js +3 -3
  11. package/dest/avm/avm.d.ts +300 -300
  12. package/dest/avm/avm_proving_request.d.ts +166 -166
  13. package/dest/avm/revert_code.d.ts +16 -1
  14. package/dest/avm/revert_code.d.ts.map +1 -1
  15. package/dest/avm/revert_code.js +15 -5
  16. package/dest/block/block_data.d.ts +52 -0
  17. package/dest/block/block_data.d.ts.map +1 -0
  18. package/dest/block/block_data.js +12 -0
  19. package/dest/block/block_hash.d.ts +16 -18
  20. package/dest/block/block_hash.d.ts.map +1 -1
  21. package/dest/block/block_hash.js +21 -31
  22. package/dest/block/block_parameter.d.ts +4 -4
  23. package/dest/block/block_parameter.d.ts.map +1 -1
  24. package/dest/block/block_parameter.js +2 -2
  25. package/dest/block/checkpointed_l2_block.d.ts +6 -6
  26. package/dest/block/checkpointed_l2_block.d.ts.map +1 -1
  27. package/dest/block/checkpointed_l2_block.js +3 -3
  28. package/dest/block/in_block.d.ts +11 -11
  29. package/dest/block/in_block.d.ts.map +1 -1
  30. package/dest/block/in_block.js +5 -5
  31. package/dest/block/index.d.ts +3 -2
  32. package/dest/block/index.d.ts.map +1 -1
  33. package/dest/block/index.js +2 -1
  34. package/dest/block/{l2_block_new.d.ts → l2_block.d.ts} +8 -7
  35. package/dest/block/l2_block.d.ts.map +1 -0
  36. package/dest/block/{l2_block_new.js → l2_block.js} +5 -9
  37. package/dest/block/l2_block_source.d.ts +58 -30
  38. package/dest/block/l2_block_source.d.ts.map +1 -1
  39. package/dest/block/l2_block_stream/interfaces.d.ts +3 -3
  40. package/dest/block/l2_block_stream/interfaces.d.ts.map +1 -1
  41. package/dest/block/l2_block_stream/l2_block_stream.d.ts +2 -3
  42. package/dest/block/l2_block_stream/l2_block_stream.d.ts.map +1 -1
  43. package/dest/block/l2_block_stream/l2_block_stream.js +14 -4
  44. package/dest/block/l2_block_stream/l2_tips_store_base.d.ts +3 -3
  45. package/dest/block/l2_block_stream/l2_tips_store_base.d.ts.map +1 -1
  46. package/dest/block/test/l2_tips_store_test_suite.js +2 -2
  47. package/dest/checkpoint/checkpoint.d.ts +27 -13
  48. package/dest/checkpoint/checkpoint.d.ts.map +1 -1
  49. package/dest/checkpoint/checkpoint.js +27 -16
  50. package/dest/checkpoint/checkpoint_data.d.ts +120 -0
  51. package/dest/checkpoint/checkpoint_data.d.ts.map +1 -0
  52. package/dest/checkpoint/checkpoint_data.js +26 -0
  53. package/dest/checkpoint/index.d.ts +2 -1
  54. package/dest/checkpoint/index.d.ts.map +1 -1
  55. package/dest/checkpoint/index.js +1 -0
  56. package/dest/checkpoint/published_checkpoint.d.ts +19 -4
  57. package/dest/checkpoint/published_checkpoint.d.ts.map +1 -1
  58. package/dest/checkpoint/published_checkpoint.js +1 -2
  59. package/dest/config/index.d.ts +2 -1
  60. package/dest/config/index.d.ts.map +1 -1
  61. package/dest/config/index.js +1 -0
  62. package/dest/config/node-rpc-config.js +1 -1
  63. package/dest/config/sequencer-config.d.ts +10 -0
  64. package/dest/config/sequencer-config.d.ts.map +1 -0
  65. package/dest/config/sequencer-config.js +18 -0
  66. package/dest/contract/contract_address.js +4 -4
  67. package/dest/contract/contract_class.d.ts +2 -3
  68. package/dest/contract/contract_class.d.ts.map +1 -1
  69. package/dest/contract/contract_class_id.d.ts +2 -2
  70. package/dest/contract/contract_class_id.d.ts.map +1 -1
  71. package/dest/contract/contract_class_id.js +6 -5
  72. package/dest/contract/interfaces/node-info.d.ts +3 -1
  73. package/dest/contract/interfaces/node-info.d.ts.map +1 -1
  74. package/dest/contract/interfaces/node-info.js +2 -1
  75. package/dest/contract/private_function.d.ts +1 -1
  76. package/dest/contract/private_function.d.ts.map +1 -1
  77. package/dest/contract/private_function.js +3 -4
  78. package/dest/contract/private_function_membership_proof.d.ts +1 -1
  79. package/dest/contract/private_function_membership_proof.js +1 -1
  80. package/dest/database-version/database_version.d.ts +58 -0
  81. package/dest/database-version/database_version.d.ts.map +1 -0
  82. package/dest/database-version/database_version.js +69 -0
  83. package/dest/database-version/version_manager.d.ts +2 -50
  84. package/dest/database-version/version_manager.d.ts.map +1 -1
  85. package/dest/database-version/version_manager.js +1 -66
  86. package/dest/delayed_public_mutable/delayed_public_mutable_values.d.ts +2 -2
  87. package/dest/delayed_public_mutable/delayed_public_mutable_values.d.ts.map +1 -1
  88. package/dest/delayed_public_mutable/delayed_public_mutable_values.js +7 -10
  89. package/dest/epoch-helpers/index.d.ts +7 -1
  90. package/dest/epoch-helpers/index.d.ts.map +1 -1
  91. package/dest/epoch-helpers/index.js +9 -3
  92. package/dest/file-store/local.d.ts +3 -3
  93. package/dest/file-store/local.d.ts.map +1 -1
  94. package/dest/file-store/local.js +13 -4
  95. package/dest/file-store/s3.d.ts +1 -1
  96. package/dest/file-store/s3.d.ts.map +1 -1
  97. package/dest/file-store/s3.js +11 -3
  98. package/dest/ha-signing/config.d.ts +101 -0
  99. package/dest/ha-signing/config.d.ts.map +1 -0
  100. package/dest/ha-signing/config.js +92 -0
  101. package/dest/ha-signing/index.d.ts +3 -0
  102. package/dest/ha-signing/index.d.ts.map +1 -0
  103. package/dest/ha-signing/index.js +2 -0
  104. package/dest/ha-signing/types.d.ts +85 -0
  105. package/dest/ha-signing/types.d.ts.map +1 -0
  106. package/dest/ha-signing/types.js +32 -0
  107. package/dest/hash/hash.d.ts +2 -1
  108. package/dest/hash/hash.d.ts.map +1 -1
  109. package/dest/hash/hash.js +16 -10
  110. package/dest/hash/map_slot.d.ts +1 -1
  111. package/dest/hash/map_slot.d.ts.map +1 -1
  112. package/dest/hash/map_slot.js +4 -3
  113. package/dest/interfaces/archiver.d.ts +1 -1
  114. package/dest/interfaces/archiver.d.ts.map +1 -1
  115. package/dest/interfaces/archiver.js +22 -16
  116. package/dest/interfaces/aztec-node-admin.d.ts +49 -3
  117. package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
  118. package/dest/interfaces/aztec-node-admin.js +12 -4
  119. package/dest/interfaces/aztec-node.d.ts +51 -58
  120. package/dest/interfaces/aztec-node.d.ts.map +1 -1
  121. package/dest/interfaces/aztec-node.js +13 -17
  122. package/dest/interfaces/block-builder.d.ts +13 -7
  123. package/dest/interfaces/block-builder.d.ts.map +1 -1
  124. package/dest/interfaces/block-builder.js +7 -0
  125. package/dest/interfaces/configs.d.ts +18 -3
  126. package/dest/interfaces/configs.d.ts.map +1 -1
  127. package/dest/interfaces/configs.js +4 -1
  128. package/dest/interfaces/get_logs_response.d.ts +15 -8
  129. package/dest/interfaces/get_logs_response.d.ts.map +1 -1
  130. package/dest/interfaces/merkle_tree_operations.d.ts +2 -2
  131. package/dest/interfaces/merkle_tree_operations.d.ts.map +1 -1
  132. package/dest/interfaces/p2p.d.ts +4 -9
  133. package/dest/interfaces/p2p.d.ts.map +1 -1
  134. package/dest/interfaces/prover-broker.d.ts +16 -1
  135. package/dest/interfaces/prover-broker.d.ts.map +1 -1
  136. package/dest/interfaces/prover-broker.js +4 -1
  137. package/dest/interfaces/prover-client.d.ts +15 -1
  138. package/dest/interfaces/prover-client.d.ts.map +1 -1
  139. package/dest/interfaces/prover-client.js +12 -1
  140. package/dest/interfaces/proving-job.d.ts +202 -202
  141. package/dest/interfaces/slasher.d.ts +9 -1
  142. package/dest/interfaces/slasher.d.ts.map +1 -1
  143. package/dest/interfaces/slasher.js +2 -0
  144. package/dest/interfaces/tx_provider.d.ts +3 -3
  145. package/dest/interfaces/tx_provider.d.ts.map +1 -1
  146. package/dest/interfaces/validator.d.ts +52 -6
  147. package/dest/interfaces/validator.d.ts.map +1 -1
  148. package/dest/interfaces/validator.js +5 -2
  149. package/dest/kernel/hints/build_note_hash_read_request_hints.d.ts +3 -3
  150. package/dest/kernel/hints/build_note_hash_read_request_hints.d.ts.map +1 -1
  151. package/dest/kernel/hints/build_note_hash_read_request_hints.js +13 -10
  152. package/dest/kernel/hints/build_nullifier_read_request_hints.d.ts +4 -4
  153. package/dest/kernel/hints/build_nullifier_read_request_hints.d.ts.map +1 -1
  154. package/dest/kernel/hints/build_nullifier_read_request_hints.js +16 -15
  155. package/dest/kernel/hints/build_transient_data_hints.d.ts +5 -2
  156. package/dest/kernel/hints/build_transient_data_hints.d.ts.map +1 -1
  157. package/dest/kernel/hints/build_transient_data_hints.js +9 -3
  158. package/dest/kernel/hints/index.d.ts +2 -2
  159. package/dest/kernel/hints/index.js +2 -2
  160. package/dest/kernel/hints/key_validation_request_and_separator.d.ts +24 -0
  161. package/dest/kernel/hints/key_validation_request_and_separator.d.ts.map +1 -0
  162. package/dest/kernel/hints/{key_validation_request_and_generator.js → key_validation_request_and_separator.js} +12 -15
  163. package/dest/kernel/hints/{scoped_key_validation_request_and_generator.d.ts → scoped_key_validation_request_and_separator.d.ts} +8 -8
  164. package/dest/kernel/hints/{scoped_key_validation_request_and_generator.d.ts.map → scoped_key_validation_request_and_separator.d.ts.map} +1 -1
  165. package/dest/kernel/hints/{scoped_key_validation_request_and_generator.js → scoped_key_validation_request_and_separator.js} +6 -6
  166. package/dest/kernel/private_circuit_public_inputs.d.ts +9 -9
  167. package/dest/kernel/private_circuit_public_inputs.d.ts.map +1 -1
  168. package/dest/kernel/private_circuit_public_inputs.js +16 -16
  169. package/dest/kernel/private_kernel_circuit_public_inputs.d.ts +3 -3
  170. package/dest/kernel/private_kernel_circuit_public_inputs.d.ts.map +1 -1
  171. package/dest/kernel/private_kernel_circuit_public_inputs.js +4 -4
  172. package/dest/kernel/private_kernel_tail_circuit_private_inputs.d.ts +3 -3
  173. package/dest/kernel/private_kernel_tail_circuit_private_inputs.d.ts.map +1 -1
  174. package/dest/kernel/private_kernel_tail_circuit_private_inputs.js +4 -4
  175. package/dest/kernel/private_kernel_tail_circuit_public_inputs.d.ts +3 -3
  176. package/dest/kernel/private_kernel_tail_circuit_public_inputs.d.ts.map +1 -1
  177. package/dest/kernel/private_kernel_tail_circuit_public_inputs.js +7 -7
  178. package/dest/kernel/private_to_public_kernel_circuit_public_inputs.d.ts +3 -3
  179. package/dest/kernel/private_to_public_kernel_circuit_public_inputs.d.ts.map +1 -1
  180. package/dest/kernel/private_to_public_kernel_circuit_public_inputs.js +7 -7
  181. package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.d.ts +3 -3
  182. package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.d.ts.map +1 -1
  183. package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.js +7 -7
  184. package/dest/kernel/private_validation_requests.d.ts +3 -3
  185. package/dest/kernel/private_validation_requests.js +9 -9
  186. package/dest/keys/derivation.d.ts +3 -3
  187. package/dest/keys/derivation.js +15 -15
  188. package/dest/keys/key_types.d.ts +3 -3
  189. package/dest/keys/key_types.d.ts.map +1 -1
  190. package/dest/keys/public_keys.js +2 -2
  191. package/dest/keys/utils.d.ts +1 -1
  192. package/dest/keys/utils.d.ts.map +1 -1
  193. package/dest/keys/utils.js +8 -4
  194. package/dest/l1-contracts/slash_factory.d.ts +1 -1
  195. package/dest/l1-contracts/slash_factory.d.ts.map +1 -1
  196. package/dest/l1-contracts/slash_factory.js +1 -0
  197. package/dest/logs/debug_log_store.d.ts +30 -0
  198. package/dest/logs/debug_log_store.d.ts.map +1 -0
  199. package/dest/logs/debug_log_store.js +30 -0
  200. package/dest/logs/extended_directional_app_tagging_secret.d.ts +47 -0
  201. package/dest/logs/extended_directional_app_tagging_secret.d.ts.map +1 -0
  202. package/dest/logs/{directional_app_tagging_secret.js → extended_directional_app_tagging_secret.js} +23 -15
  203. package/dest/logs/extended_public_log.d.ts +13 -7
  204. package/dest/logs/extended_public_log.d.ts.map +1 -1
  205. package/dest/logs/index.d.ts +3 -2
  206. package/dest/logs/index.d.ts.map +1 -1
  207. package/dest/logs/index.js +2 -1
  208. package/dest/logs/log_id.d.ts +17 -14
  209. package/dest/logs/log_id.d.ts.map +1 -1
  210. package/dest/logs/log_id.js +20 -17
  211. package/dest/logs/pre_tag.d.ts +16 -11
  212. package/dest/logs/pre_tag.d.ts.map +1 -1
  213. package/dest/logs/pre_tag.js +2 -2
  214. package/dest/logs/private_log.d.ts +2 -2
  215. package/dest/logs/private_log.d.ts.map +1 -1
  216. package/dest/logs/siloed_tag.d.ts +5 -3
  217. package/dest/logs/siloed_tag.d.ts.map +1 -1
  218. package/dest/logs/siloed_tag.js +8 -6
  219. package/dest/logs/tag.js +1 -1
  220. package/dest/messaging/l2_to_l1_membership.d.ts +2 -2
  221. package/dest/messaging/l2_to_l1_membership.js +3 -3
  222. package/dest/note/index.d.ts +1 -2
  223. package/dest/note/index.d.ts.map +1 -1
  224. package/dest/note/index.js +0 -1
  225. package/dest/p2p/attestation_utils.d.ts +11 -1
  226. package/dest/p2p/attestation_utils.d.ts.map +1 -1
  227. package/dest/p2p/attestation_utils.js +45 -0
  228. package/dest/p2p/block_proposal.d.ts +14 -7
  229. package/dest/p2p/block_proposal.d.ts.map +1 -1
  230. package/dest/p2p/block_proposal.js +3 -5
  231. package/dest/p2p/checkpoint_attestation.d.ts +2 -1
  232. package/dest/p2p/checkpoint_attestation.d.ts.map +1 -1
  233. package/dest/p2p/checkpoint_attestation.js +1 -1
  234. package/dest/p2p/checkpoint_proposal.d.ts +27 -8
  235. package/dest/p2p/checkpoint_proposal.d.ts.map +1 -1
  236. package/dest/p2p/checkpoint_proposal.js +30 -16
  237. package/dest/p2p/client_type.d.ts +2 -5
  238. package/dest/p2p/client_type.d.ts.map +1 -1
  239. package/dest/p2p/client_type.js +0 -7
  240. package/dest/p2p/consensus_payload.d.ts +12 -3
  241. package/dest/p2p/consensus_payload.d.ts.map +1 -1
  242. package/dest/p2p/consensus_payload.js +22 -15
  243. package/dest/p2p/constants.d.ts +3 -1
  244. package/dest/p2p/constants.d.ts.map +1 -1
  245. package/dest/p2p/constants.js +1 -0
  246. package/dest/p2p/index.d.ts +1 -2
  247. package/dest/p2p/index.d.ts.map +1 -1
  248. package/dest/p2p/index.js +0 -1
  249. package/dest/p2p/message_validator.d.ts +18 -3
  250. package/dest/p2p/message_validator.d.ts.map +1 -1
  251. package/dest/p2p/message_validator.js +2 -1
  252. package/dest/p2p/topic_type.d.ts +3 -4
  253. package/dest/p2p/topic_type.d.ts.map +1 -1
  254. package/dest/p2p/topic_type.js +7 -24
  255. package/dest/rollup/checkpoint_header.d.ts +2 -2
  256. package/dest/rollup/checkpoint_header.js +2 -2
  257. package/dest/rollup/checkpoint_rollup_public_inputs.d.ts +6 -6
  258. package/dest/rollup/checkpoint_rollup_public_inputs.d.ts.map +1 -1
  259. package/dest/rollup/checkpoint_rollup_public_inputs.js +2 -2
  260. package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts +2 -2
  261. package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts.map +1 -1
  262. package/dest/rollup/root_rollup_public_inputs.d.ts +6 -6
  263. package/dest/rollup/root_rollup_public_inputs.d.ts.map +1 -1
  264. package/dest/rollup/root_rollup_public_inputs.js +3 -3
  265. package/dest/slashing/empire.d.ts +1 -1
  266. package/dest/slashing/empire.d.ts.map +1 -1
  267. package/dest/slashing/empire.js +2 -0
  268. package/dest/slashing/helpers.d.ts +2 -2
  269. package/dest/slashing/helpers.d.ts.map +1 -1
  270. package/dest/slashing/helpers.js +6 -0
  271. package/dest/slashing/tally.d.ts +2 -1
  272. package/dest/slashing/tally.d.ts.map +1 -1
  273. package/dest/slashing/tally.js +6 -2
  274. package/dest/slashing/types.d.ts +7 -3
  275. package/dest/slashing/types.d.ts.map +1 -1
  276. package/dest/slashing/types.js +13 -1
  277. package/dest/stats/stats.d.ts +1 -3
  278. package/dest/stats/stats.d.ts.map +1 -1
  279. package/dest/tests/factories.d.ts +3 -1
  280. package/dest/tests/factories.d.ts.map +1 -1
  281. package/dest/tests/factories.js +22 -14
  282. package/dest/tests/jest.d.ts +4 -4
  283. package/dest/tests/jest.js +9 -9
  284. package/dest/tests/mocks.d.ts +19 -11
  285. package/dest/tests/mocks.d.ts.map +1 -1
  286. package/dest/tests/mocks.js +37 -26
  287. package/dest/timetable/index.d.ts +37 -0
  288. package/dest/timetable/index.d.ts.map +1 -0
  289. package/dest/timetable/index.js +39 -0
  290. package/dest/trees/public_data_leaf.d.ts +2 -1
  291. package/dest/trees/public_data_leaf.d.ts.map +1 -1
  292. package/dest/trees/public_data_leaf.js +7 -6
  293. package/dest/tx/block_header.d.ts +3 -2
  294. package/dest/tx/block_header.d.ts.map +1 -1
  295. package/dest/tx/block_header.js +4 -3
  296. package/dest/tx/global_variables.d.ts +4 -4
  297. package/dest/tx/global_variables.d.ts.map +1 -1
  298. package/dest/tx/in_tx.d.ts +3 -3
  299. package/dest/tx/indexed_tx_effect.d.ts +5 -5
  300. package/dest/tx/indexed_tx_effect.d.ts.map +1 -1
  301. package/dest/tx/indexed_tx_effect.js +3 -2
  302. package/dest/tx/profiling.d.ts +4 -4
  303. package/dest/tx/profiling.d.ts.map +1 -1
  304. package/dest/tx/profiling.js +3 -3
  305. package/dest/tx/protocol_contracts.d.ts +1 -1
  306. package/dest/tx/protocol_contracts.d.ts.map +1 -1
  307. package/dest/tx/protocol_contracts.js +2 -2
  308. package/dest/tx/public_simulation_output.d.ts +4 -2
  309. package/dest/tx/public_simulation_output.d.ts.map +1 -1
  310. package/dest/tx/public_simulation_output.js +7 -3
  311. package/dest/tx/tx_receipt.d.ts +57 -15
  312. package/dest/tx/tx_receipt.d.ts.map +1 -1
  313. package/dest/tx/tx_receipt.js +55 -16
  314. package/dest/tx/tx_request.js +2 -2
  315. package/dest/tx/validator/empty_validator.d.ts +2 -2
  316. package/dest/tx/validator/empty_validator.d.ts.map +1 -1
  317. package/dest/tx/validator/error_texts.d.ts +1 -1
  318. package/dest/tx/validator/error_texts.js +1 -1
  319. package/dest/tx/validator/tx_validator.d.ts +2 -2
  320. package/dest/tx/validator/tx_validator.d.ts.map +1 -1
  321. package/dest/validators/schemas.d.ts +30 -30
  322. package/dest/validators/schemas.d.ts.map +1 -1
  323. package/dest/validators/schemas.js +4 -3
  324. package/dest/validators/types.d.ts +3 -3
  325. package/dest/validators/types.d.ts.map +1 -1
  326. package/package.json +25 -13
  327. package/src/abi/decoder.ts +1 -4
  328. package/src/abi/encoder.ts +8 -5
  329. package/src/abi/function_call.ts +25 -3
  330. package/src/auth_witness/auth_witness.ts +3 -3
  331. package/src/avm/revert_code.ts +15 -0
  332. package/src/block/block_data.ts +26 -0
  333. package/src/block/block_hash.ts +26 -47
  334. package/src/block/block_parameter.ts +3 -3
  335. package/src/block/checkpointed_l2_block.ts +4 -4
  336. package/src/block/in_block.ts +8 -8
  337. package/src/block/index.ts +2 -1
  338. package/src/block/{l2_block_new.ts → l2_block.ts} +8 -12
  339. package/src/block/l2_block_source.ts +62 -31
  340. package/src/block/l2_block_stream/interfaces.ts +2 -2
  341. package/src/block/l2_block_stream/l2_block_stream.ts +26 -6
  342. package/src/block/l2_block_stream/l2_tips_store_base.ts +2 -2
  343. package/src/block/test/l2_tips_store_test_suite.ts +4 -4
  344. package/src/checkpoint/checkpoint.ts +38 -20
  345. package/src/checkpoint/checkpoint_data.ts +51 -0
  346. package/src/checkpoint/index.ts +1 -0
  347. package/src/checkpoint/published_checkpoint.ts +3 -1
  348. package/src/config/index.ts +1 -0
  349. package/src/config/node-rpc-config.ts +1 -1
  350. package/src/config/sequencer-config.ts +29 -0
  351. package/src/contract/contract_address.ts +4 -4
  352. package/src/contract/contract_class.ts +3 -3
  353. package/src/contract/contract_class_id.ts +6 -5
  354. package/src/contract/interfaces/node-info.ts +3 -0
  355. package/src/contract/private_function.ts +3 -4
  356. package/src/contract/private_function_membership_proof.ts +1 -1
  357. package/src/database-version/database_version.ts +87 -0
  358. package/src/database-version/version_manager.ts +1 -77
  359. package/src/delayed_public_mutable/delayed_public_mutable_values.ts +9 -10
  360. package/src/epoch-helpers/index.ts +13 -1
  361. package/src/file-store/local.ts +15 -5
  362. package/src/file-store/s3.ts +12 -3
  363. package/src/ha-signing/config.ts +149 -0
  364. package/src/ha-signing/index.ts +18 -0
  365. package/src/ha-signing/types.ts +112 -0
  366. package/src/hash/hash.ts +14 -10
  367. package/src/hash/map_slot.ts +3 -2
  368. package/src/interfaces/archiver.ts +22 -25
  369. package/src/interfaces/aztec-node-admin.ts +26 -2
  370. package/src/interfaces/aztec-node.ts +73 -117
  371. package/src/interfaces/block-builder.ts +16 -5
  372. package/src/interfaces/configs.ts +13 -4
  373. package/src/interfaces/merkle_tree_operations.ts +1 -1
  374. package/src/interfaces/p2p.ts +3 -14
  375. package/src/interfaces/prover-broker.ts +22 -0
  376. package/src/interfaces/prover-client.ts +22 -0
  377. package/src/interfaces/slasher.ts +4 -0
  378. package/src/interfaces/tx_provider.ts +2 -2
  379. package/src/interfaces/validator.ts +14 -6
  380. package/src/kernel/hints/build_note_hash_read_request_hints.ts +14 -18
  381. package/src/kernel/hints/build_nullifier_read_request_hints.ts +16 -28
  382. package/src/kernel/hints/build_transient_data_hints.ts +17 -2
  383. package/src/kernel/hints/index.ts +2 -2
  384. package/src/kernel/hints/{key_validation_request_and_generator.ts → key_validation_request_and_separator.ts} +12 -15
  385. package/src/kernel/hints/{scoped_key_validation_request_and_generator.ts → scoped_key_validation_request_and_separator.ts} +10 -10
  386. package/src/kernel/private_circuit_public_inputs.ts +14 -14
  387. package/src/kernel/private_kernel_circuit_public_inputs.ts +2 -2
  388. package/src/kernel/private_kernel_tail_circuit_private_inputs.ts +2 -2
  389. package/src/kernel/private_kernel_tail_circuit_public_inputs.ts +5 -5
  390. package/src/kernel/private_to_public_kernel_circuit_public_inputs.ts +5 -5
  391. package/src/kernel/private_to_rollup_kernel_circuit_public_inputs.ts +5 -5
  392. package/src/kernel/private_validation_requests.ts +8 -8
  393. package/src/keys/derivation.ts +15 -15
  394. package/src/keys/key_types.ts +6 -2
  395. package/src/keys/public_keys.ts +2 -2
  396. package/src/keys/utils.ts +8 -4
  397. package/src/l1-contracts/slash_factory.ts +1 -0
  398. package/src/logs/debug_log_store.ts +54 -0
  399. package/src/logs/{directional_app_tagging_secret.ts → extended_directional_app_tagging_secret.ts} +24 -16
  400. package/src/logs/index.ts +2 -1
  401. package/src/logs/log_id.ts +22 -18
  402. package/src/logs/pre_tag.ts +5 -5
  403. package/src/logs/siloed_tag.ts +10 -4
  404. package/src/logs/tag.ts +1 -1
  405. package/src/messaging/l2_to_l1_membership.ts +3 -3
  406. package/src/note/index.ts +0 -1
  407. package/src/p2p/attestation_utils.ts +56 -0
  408. package/src/p2p/block_proposal.ts +13 -8
  409. package/src/p2p/checkpoint_attestation.ts +6 -1
  410. package/src/p2p/checkpoint_proposal.ts +55 -16
  411. package/src/p2p/client_type.ts +0 -6
  412. package/src/p2p/consensus_payload.ts +25 -12
  413. package/src/p2p/constants.ts +3 -0
  414. package/src/p2p/index.ts +0 -1
  415. package/src/p2p/message_validator.ts +14 -2
  416. package/src/p2p/topic_type.ts +8 -15
  417. package/src/rollup/checkpoint_header.ts +2 -2
  418. package/src/rollup/checkpoint_rollup_public_inputs.ts +5 -5
  419. package/src/rollup/root_rollup_public_inputs.ts +7 -7
  420. package/src/slashing/empire.ts +3 -1
  421. package/src/slashing/helpers.ts +8 -0
  422. package/src/slashing/tally.ts +8 -2
  423. package/src/slashing/types.ts +14 -0
  424. package/src/stats/stats.ts +0 -2
  425. package/src/tests/factories.ts +27 -18
  426. package/src/tests/jest.ts +9 -9
  427. package/src/tests/mocks.ts +54 -30
  428. package/src/timetable/index.ts +66 -0
  429. package/src/trees/public_data_leaf.ts +11 -5
  430. package/src/tx/block_header.ts +8 -5
  431. package/src/tx/global_variables.ts +3 -3
  432. package/src/tx/indexed_tx_effect.ts +3 -2
  433. package/src/tx/profiling.ts +5 -5
  434. package/src/tx/protocol_contracts.ts +2 -2
  435. package/src/tx/public_simulation_output.ts +4 -0
  436. package/src/tx/tx_receipt.ts +85 -18
  437. package/src/tx/tx_request.ts +2 -2
  438. package/src/tx/validator/empty_validator.ts +1 -1
  439. package/src/tx/validator/error_texts.ts +1 -1
  440. package/src/tx/validator/tx_validator.ts +1 -1
  441. package/src/validators/schemas.ts +8 -1
  442. package/src/validators/types.ts +5 -4
  443. package/dest/block/l2_block_new.d.ts.map +0 -1
  444. package/dest/database-version/index.d.ts +0 -2
  445. package/dest/database-version/index.d.ts.map +0 -1
  446. package/dest/database-version/index.js +0 -1
  447. package/dest/kernel/hints/key_validation_request_and_generator.d.ts +0 -30
  448. package/dest/kernel/hints/key_validation_request_and_generator.d.ts.map +0 -1
  449. package/dest/logs/directional_app_tagging_secret.d.ts +0 -40
  450. package/dest/logs/directional_app_tagging_secret.d.ts.map +0 -1
  451. package/dest/note/notes_filter.d.ts +0 -27
  452. package/dest/note/notes_filter.d.ts.map +0 -1
  453. package/dest/note/notes_filter.js +0 -11
  454. package/src/database-version/index.ts +0 -1
  455. package/src/note/notes_filter.ts +0 -38
@@ -1,8 +1,9 @@
1
1
  import { BlockNumber } from '@aztec/foundation/branded-types';
2
+ import { Fr } from '@aztec/foundation/curves/bn254';
2
3
  import { schemas } from '@aztec/foundation/schemas';
3
4
  import { BufferReader, serializeToBuffer } from '@aztec/foundation/serialize';
4
5
 
5
- import { L2BlockHash } from '../block/block_hash.js';
6
+ import { BlockHash } from '../block/block_hash.js';
6
7
  import { type DataInBlock, dataInBlockSchemaFor, randomDataInBlock } from '../block/in_block.js';
7
8
  import { TxEffect } from './tx_effect.js';
8
9
 
@@ -26,7 +27,7 @@ export function serializeIndexedTxEffect(effect: IndexedTxEffect): Buffer {
26
27
  export function deserializeIndexedTxEffect(buffer: Buffer): IndexedTxEffect {
27
28
  const reader = BufferReader.asReader(buffer);
28
29
 
29
- const l2BlockHash = reader.readObject(L2BlockHash);
30
+ const l2BlockHash = new BlockHash(reader.readObject(Fr));
30
31
  const l2BlockNumber = BlockNumber(reader.readNumber());
31
32
  const txIndexInBlock = reader.readNumber();
32
33
  const data = reader.readObject(TxEffect);
@@ -157,23 +157,23 @@ export class TxProfileResult {
157
157
  }
158
158
  }
159
159
 
160
- export class UtilitySimulationResult {
160
+ export class UtilityExecutionResult {
161
161
  constructor(
162
162
  public result: Fr[],
163
163
  public stats?: SimulationStats,
164
164
  ) {}
165
165
 
166
- static get schema(): ZodFor<UtilitySimulationResult> {
166
+ static get schema(): ZodFor<UtilityExecutionResult> {
167
167
  return z
168
168
  .object({
169
169
  result: z.array(schemas.Fr),
170
170
  stats: optional(SimulationStatsSchema),
171
171
  })
172
- .transform(({ result, stats }) => new UtilitySimulationResult(result, stats));
172
+ .transform(({ result, stats }) => new UtilityExecutionResult(result, stats));
173
173
  }
174
174
 
175
- static random(): UtilitySimulationResult {
176
- return new UtilitySimulationResult([Fr.random()], {
175
+ static random(): UtilityExecutionResult {
176
+ return new UtilityExecutionResult([Fr.random()], {
177
177
  nodeRPCCalls: {
178
178
  perMethod: { getBlockHeader: { times: [1] } },
179
179
  roundTrips: {
@@ -1,4 +1,4 @@
1
- import { GeneratorIndex, MAX_PROTOCOL_CONTRACTS } from '@aztec/constants';
1
+ import { DomainSeparator, MAX_PROTOCOL_CONTRACTS } from '@aztec/constants';
2
2
  import { makeTuple } from '@aztec/foundation/array';
3
3
  import { arraySerializedSizeOfNonEmpty } from '@aztec/foundation/collection';
4
4
  import { poseidon2HashWithSeparator } from '@aztec/foundation/crypto/poseidon';
@@ -71,7 +71,7 @@ export class ProtocolContracts {
71
71
  }
72
72
 
73
73
  hash() {
74
- return poseidon2HashWithSeparator(this.derivedAddresses, GeneratorIndex.PROTOCOL_CONTRACTS);
74
+ return poseidon2HashWithSeparator(this.derivedAddresses, DomainSeparator.PROTOCOL_CONTRACTS);
75
75
  }
76
76
 
77
77
  static get schema() {
@@ -7,6 +7,7 @@ import { z } from 'zod';
7
7
  import { SimulationError } from '../errors/simulation_error.js';
8
8
  import { Gas } from '../gas/gas.js';
9
9
  import type { GasUsed } from '../gas/gas_used.js';
10
+ import { DebugLog } from '../logs/debug_log.js';
10
11
  import { NullishToUndefined } from '../schemas/schemas.js';
11
12
  import { TxEffect } from '../tx/tx_effect.js';
12
13
  import { GlobalVariables } from './global_variables.js';
@@ -71,6 +72,7 @@ export class PublicSimulationOutput {
71
72
  public txEffect: TxEffect,
72
73
  public publicReturnValues: NestedProcessReturnValues[],
73
74
  public gasUsed: GasUsed,
75
+ public debugLogs: DebugLog[] = [],
74
76
  ) {}
75
77
 
76
78
  static get schema(): ZodFor<PublicSimulationOutput> {
@@ -86,6 +88,7 @@ export class PublicSimulationOutput {
86
88
  publicGas: Gas.schema,
87
89
  billedGas: Gas.schema,
88
90
  }),
91
+ debugLogs: z.array(DebugLog.schema).default([]),
89
92
  })
90
93
  .transform(
91
94
  fields =>
@@ -95,6 +98,7 @@ export class PublicSimulationOutput {
95
98
  fields.txEffect,
96
99
  fields.publicReturnValues,
97
100
  fields.gasUsed,
101
+ fields.debugLogs,
98
102
  ),
99
103
  );
100
104
  }
@@ -1,19 +1,35 @@
1
1
  import { BlockNumber, BlockNumberSchema } from '@aztec/foundation/branded-types';
2
- import type { FieldsOf } from '@aztec/foundation/types';
3
2
 
4
3
  import { z } from 'zod';
5
4
 
6
5
  import { RevertCode } from '../avm/revert_code.js';
7
- import { L2BlockHash } from '../block/block_hash.js';
6
+ import { BlockHash } from '../block/block_hash.js';
7
+ import { DebugLog } from '../logs/debug_log.js';
8
8
  import { type ZodFor, schemas } from '../schemas/schemas.js';
9
9
  import { TxHash } from './tx_hash.js';
10
10
 
11
- /**
12
- * Possible status of a transaction.
13
- */
11
+ /** Block inclusion/finalization status. */
14
12
  export enum TxStatus {
15
13
  DROPPED = 'dropped',
16
14
  PENDING = 'pending',
15
+ PROPOSED = 'proposed',
16
+ CHECKPOINTED = 'checkpointed',
17
+ PROVEN = 'proven',
18
+ FINALIZED = 'finalized', // TODO(#13569): Implement finalized status properly
19
+ }
20
+
21
+ /** Tx status sorted by finalization progress. */
22
+ export const SortedTxStatuses: TxStatus[] = [
23
+ TxStatus.DROPPED,
24
+ TxStatus.PENDING,
25
+ TxStatus.PROPOSED,
26
+ TxStatus.CHECKPOINTED,
27
+ TxStatus.PROVEN,
28
+ TxStatus.FINALIZED,
29
+ ];
30
+
31
+ /** Execution result - only set when tx is in a block. */
32
+ export enum TxExecutionResult {
17
33
  SUCCESS = 'success',
18
34
  APP_LOGIC_REVERTED = 'app_logic_reverted',
19
35
  TEARDOWN_REVERTED = 'teardown_reverted',
@@ -30,20 +46,58 @@ export class TxReceipt {
30
46
  constructor(
31
47
  /** A unique identifier for a transaction. */
32
48
  public txHash: TxHash,
33
- /** The transaction's status. */
49
+ /** The transaction's block finalization status. */
34
50
  public status: TxStatus,
51
+ /** The execution result of the transaction, only set when tx is in a block. */
52
+ public executionResult: TxExecutionResult | undefined,
35
53
  /** Description of transaction error, if any. */
36
- public error: string,
54
+ public error: string | undefined,
37
55
  /** The transaction fee paid for the transaction. */
38
56
  public transactionFee?: bigint,
39
57
  /** The hash of the block containing the transaction. */
40
- public blockHash?: L2BlockHash,
58
+ public blockHash?: BlockHash,
41
59
  /** The block number in which the transaction was included. */
42
60
  public blockNumber?: BlockNumber,
61
+ /**
62
+ * Debug logs collected during public function execution. Served only when the node is in test mode and placed on
63
+ * the receipt only because it's a convenient place for it (the logs are printed out by the wallet when a mined
64
+ * tx receipt is obtained).
65
+ */
66
+ public debugLogs?: DebugLog[],
43
67
  ) {}
44
68
 
69
+ /** Returns true if the transaction was executed successfully. */
70
+ hasExecutionSucceeded(): boolean {
71
+ return this.executionResult === TxExecutionResult.SUCCESS;
72
+ }
73
+
74
+ /** Returns true if the transaction execution reverted. */
75
+ hasExecutionReverted(): boolean {
76
+ return this.executionResult !== undefined && this.executionResult !== TxExecutionResult.SUCCESS;
77
+ }
78
+
79
+ /** Returns true if the transaction has been included in a block (proposed, checkpointed, proven, or finalized). */
80
+ isMined(): boolean {
81
+ return (
82
+ this.status === TxStatus.PROPOSED ||
83
+ this.status === TxStatus.CHECKPOINTED ||
84
+ this.status === TxStatus.PROVEN ||
85
+ this.status === TxStatus.FINALIZED
86
+ );
87
+ }
88
+
89
+ /** Returns true if the transaction is pending. */
90
+ isPending(): boolean {
91
+ return this.status === TxStatus.PENDING;
92
+ }
93
+
94
+ /** Returns true if the transaction was dropped. */
95
+ isDropped(): boolean {
96
+ return this.status === TxStatus.DROPPED;
97
+ }
98
+
45
99
  static empty() {
46
- return new TxReceipt(TxHash.zero(), TxStatus.DROPPED, '');
100
+ return new TxReceipt(TxHash.zero(), TxStatus.DROPPED, undefined, undefined);
47
101
  }
48
102
 
49
103
  static get schema(): ZodFor<TxReceipt> {
@@ -51,34 +105,47 @@ export class TxReceipt {
51
105
  .object({
52
106
  txHash: TxHash.schema,
53
107
  status: z.nativeEnum(TxStatus),
54
- error: z.string(),
55
- blockHash: L2BlockHash.schema.optional(),
108
+ executionResult: z.nativeEnum(TxExecutionResult).optional(),
109
+ error: z.string().optional(),
110
+ blockHash: BlockHash.schema.optional(),
56
111
  blockNumber: BlockNumberSchema.optional(),
57
112
  transactionFee: schemas.BigInt.optional(),
113
+ debugLogs: z.array(DebugLog.schema).optional(),
58
114
  })
59
- .transform(TxReceipt.from);
115
+ .transform(fields => TxReceipt.from(fields));
60
116
  }
61
117
 
62
- static from(fields: FieldsOf<TxReceipt>) {
118
+ static from(fields: {
119
+ txHash: TxHash;
120
+ status: TxStatus;
121
+ executionResult?: TxExecutionResult;
122
+ error?: string;
123
+ transactionFee?: bigint;
124
+ blockHash?: BlockHash;
125
+ blockNumber?: BlockNumber;
126
+ debugLogs?: DebugLog[];
127
+ }) {
63
128
  return new TxReceipt(
64
129
  fields.txHash,
65
130
  fields.status,
131
+ fields.executionResult,
66
132
  fields.error,
67
133
  fields.transactionFee,
68
134
  fields.blockHash,
69
135
  fields.blockNumber,
136
+ fields.debugLogs,
70
137
  );
71
138
  }
72
139
 
73
- public static statusFromRevertCode(revertCode: RevertCode) {
140
+ public static executionResultFromRevertCode(revertCode: RevertCode): TxExecutionResult {
74
141
  if (revertCode.equals(RevertCode.OK)) {
75
- return TxStatus.SUCCESS;
142
+ return TxExecutionResult.SUCCESS;
76
143
  } else if (revertCode.equals(RevertCode.APP_LOGIC_REVERTED)) {
77
- return TxStatus.APP_LOGIC_REVERTED;
144
+ return TxExecutionResult.APP_LOGIC_REVERTED;
78
145
  } else if (revertCode.equals(RevertCode.TEARDOWN_REVERTED)) {
79
- return TxStatus.TEARDOWN_REVERTED;
146
+ return TxExecutionResult.TEARDOWN_REVERTED;
80
147
  } else if (revertCode.equals(RevertCode.BOTH_REVERTED)) {
81
- return TxStatus.BOTH_REVERTED;
148
+ return TxExecutionResult.BOTH_REVERTED;
82
149
  } else {
83
150
  throw new Error(`Unknown revert code: ${revertCode.getCode()}`);
84
151
  }
@@ -1,4 +1,4 @@
1
- import { GeneratorIndex, TX_REQUEST_LENGTH } from '@aztec/constants';
1
+ import { DomainSeparator, TX_REQUEST_LENGTH } from '@aztec/constants';
2
2
  import { poseidon2HashWithSeparator } from '@aztec/foundation/crypto/poseidon';
3
3
  import { Fr } from '@aztec/foundation/curves/bn254';
4
4
  import { BufferReader, serializeToBuffer, serializeToFields } from '@aztec/foundation/serialize';
@@ -68,7 +68,7 @@ export class TxRequest {
68
68
  }
69
69
 
70
70
  hash() {
71
- return poseidon2HashWithSeparator(this.toFields(), GeneratorIndex.TX_REQUEST);
71
+ return poseidon2HashWithSeparator(this.toFields(), DomainSeparator.TX_REQUEST);
72
72
  }
73
73
 
74
74
  static empty() {
@@ -1,6 +1,6 @@
1
1
  import type { AnyTx, TxValidationResult, TxValidator } from './tx_validator.js';
2
2
 
3
- export class EmptyTxValidator<T extends AnyTx = AnyTx> implements TxValidator<T> {
3
+ export class EmptyTxValidator<T = AnyTx> implements TxValidator<T> {
4
4
  public validateTx(_tx: T): Promise<TxValidationResult> {
5
5
  return Promise.resolve({ result: 'valid' });
6
6
  }
@@ -12,7 +12,7 @@ export const TX_ERROR_DUPLICATE_NULLIFIER_IN_TX = 'Duplicate nullifier in tx';
12
12
  export const TX_ERROR_EXISTING_NULLIFIER = 'Existing nullifier';
13
13
 
14
14
  // Metadata
15
- export const TX_ERROR_INVALID_INCLUDE_BY_TIMESTAMP = 'Invalid expiration timestamp';
15
+ export const TX_ERROR_INVALID_EXPIRATION_TIMESTAMP = 'Invalid expiration timestamp';
16
16
  export const TX_ERROR_INCORRECT_L1_CHAIN_ID = 'Incorrect L1 chain id';
17
17
  export const TX_ERROR_INCORRECT_ROLLUP_VERSION = 'Incorrect rollup version';
18
18
  export const TX_ERROR_INCORRECT_VK_TREE_ROOT = 'Incorrect verification keys tree root';
@@ -20,7 +20,7 @@ export type TxValidationResult =
20
20
  | { result: 'invalid'; reason: string[] }
21
21
  | { result: 'skipped'; reason: string[] };
22
22
 
23
- export interface TxValidator<T extends AnyTx = AnyTx> {
23
+ export interface TxValidator<T = AnyTx> {
24
24
  validateTx(tx: T): Promise<TxValidationResult>;
25
25
  }
26
26
 
@@ -12,7 +12,14 @@ import type {
12
12
  } from './types.js';
13
13
 
14
14
  export const ValidatorStatusInSlotSchema = zodFor<ValidatorStatusInSlot>()(
15
- z.enum(['block-mined', 'block-proposed', 'block-missed', 'attestation-sent', 'attestation-missed']),
15
+ z.enum([
16
+ 'checkpoint-mined',
17
+ 'checkpoint-proposed',
18
+ 'checkpoint-missed',
19
+ 'blocks-missed',
20
+ 'attestation-sent',
21
+ 'attestation-missed',
22
+ ]),
16
23
  );
17
24
 
18
25
  export const ValidatorStatusHistorySchema = zodFor<ValidatorStatusHistory>()(
@@ -1,12 +1,13 @@
1
1
  import type { EpochNumber, SlotNumber } from '@aztec/foundation/branded-types';
2
2
  import type { EthAddress } from '@aztec/foundation/eth-address';
3
3
 
4
- export type ValidatorStatusType = 'block' | 'attestation';
4
+ export type ValidatorStatusType = 'proposer' | 'attestation';
5
5
 
6
6
  export type ValidatorStatusInSlot =
7
- | 'block-mined'
8
- | 'block-proposed'
9
- | 'block-missed'
7
+ | 'checkpoint-mined'
8
+ | 'checkpoint-proposed'
9
+ | 'checkpoint-missed'
10
+ | 'blocks-missed'
10
11
  | 'attestation-sent'
11
12
  | 'attestation-missed';
12
13
 
@@ -1 +0,0 @@
1
- {"version":3,"file":"l2_block_new.d.ts","sourceRoot":"","sources":["../../src/block/l2_block_new.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,0BAA0B,CAAC;AACnF,OAAO,EACL,WAAW,EACX,gBAAgB,EAEhB,qBAAqB,EAErB,UAAU,EACX,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,YAAY,EAAqB,MAAM,6BAA6B,CAAC;AAE9E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAOtD;;GAEG;AACH,qBAAa,UAAU;IAEnB,2DAA2D;IACpD,OAAO,EAAE,sBAAsB;IACtC,2BAA2B;IACpB,MAAM,EAAE,WAAW;IAC1B,qBAAqB;IACd,IAAI,EAAE,IAAI;IACjB,0DAA0D;IACnD,gBAAgB,EAAE,gBAAgB;IACzC,gDAAgD;IACzC,qBAAqB,EAAE,qBAAqB;IAVrD;IACE,2DAA2D;IACpD,OAAO,EAAE,sBAAsB;IACtC,2BAA2B;IAC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,CAAC;KACjF,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAM,GACzD,OAAO,CAAC,UAAU,CAAC,CAKrB;IAED;;;OAGG;IACH,QAAQ;;;;;;;;MAqBP;IAED,cAAc,IAAI,UAAU,EAAE,CAE7B;IAED,WAAW,IAAI,WAAW,CASzB;CACF"}
@@ -1,2 +0,0 @@
1
- export * from './version_manager.js';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kYXRhYmFzZS12ZXJzaW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0JBQXNCLENBQUMifQ==
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-version/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -1 +0,0 @@
1
- export * from './version_manager.js';
@@ -1,30 +0,0 @@
1
- import { Fr } from '@aztec/foundation/curves/bn254';
2
- import { BufferReader, FieldReader } from '@aztec/foundation/serialize';
3
- import { KeyValidationRequest } from './key_validation_request.js';
4
- /**
5
- * Request for validating keys used in the app and a generator.
6
- */
7
- export declare class KeyValidationRequestAndGenerator {
8
- /** The key validation request. */
9
- readonly request: KeyValidationRequest;
10
- /**
11
- * The generator index which can be used along with sk_m to derive the sk_app stored in the request.
12
- * Note: This generator constrains that a correct key type gets validated in the kernel.
13
- */
14
- readonly skAppGenerator: Fr;
15
- constructor(
16
- /** The key validation request. */
17
- request: KeyValidationRequest,
18
- /**
19
- * The generator index which can be used along with sk_m to derive the sk_app stored in the request.
20
- * Note: This generator constrains that a correct key type gets validated in the kernel.
21
- */
22
- skAppGenerator: Fr);
23
- toBuffer(): Buffer<ArrayBufferLike>;
24
- static fromBuffer(buffer: Buffer | BufferReader): KeyValidationRequestAndGenerator;
25
- toFields(): Fr[];
26
- static fromFields(fields: Fr[] | FieldReader): KeyValidationRequestAndGenerator;
27
- isEmpty(): boolean;
28
- static empty(): KeyValidationRequestAndGenerator;
29
- }
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2V5X3ZhbGlkYXRpb25fcmVxdWVzdF9hbmRfZ2VuZXJhdG9yLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMva2VybmVsL2hpbnRzL2tleV92YWxpZGF0aW9uX3JlcXVlc3RfYW5kX2dlbmVyYXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsRUFBRSxFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDcEQsT0FBTyxFQUFFLFlBQVksRUFBRSxXQUFXLEVBQXFCLE1BQU0sNkJBQTZCLENBQUM7QUFFM0YsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFFbkU7O0dBRUc7QUFDSCxxQkFBYSxnQ0FBZ0M7SUFFekMsa0NBQWtDO2FBQ2xCLE9BQU8sRUFBRSxvQkFBb0I7SUFDN0M7OztPQUdHO2FBQ2EsY0FBYyxFQUFFLEVBQUU7SUFQcEM7SUFDRSxrQ0FBa0M7SUFDbEIsT0FBTyxFQUFFLG9CQUFvQjtJQUM3Qzs7O09BR0c7SUFDYSxjQUFjLEVBQUUsRUFBRSxFQUNoQztJQUVKLFFBQVEsNEJBRVA7SUFFRCxNQUFNLENBQUMsVUFBVSxDQUFDLE1BQU0sRUFBRSxNQUFNLEdBQUcsWUFBWSxvQ0FHOUM7SUFFRCxRQUFRLElBQUksRUFBRSxFQUFFLENBUWY7SUFFRCxNQUFNLENBQUMsVUFBVSxDQUFDLE1BQU0sRUFBRSxFQUFFLEVBQUUsR0FBRyxXQUFXLEdBQUcsZ0NBQWdDLENBRzlFO0lBRUQsT0FBTyxZQUVOO0lBRUQsTUFBTSxDQUFDLEtBQUsscUNBRVg7Q0FDRiJ9
@@ -1 +0,0 @@
1
- {"version":3,"file":"key_validation_request_and_generator.d.ts","sourceRoot":"","sources":["../../../src/kernel/hints/key_validation_request_and_generator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAqB,MAAM,6BAA6B,CAAC;AAE3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE;;GAEG;AACH,qBAAa,gCAAgC;IAEzC,kCAAkC;aAClB,OAAO,EAAE,oBAAoB;IAC7C;;;OAGG;aACa,cAAc,EAAE,EAAE;IAPpC;IACE,kCAAkC;IAClB,OAAO,EAAE,oBAAoB;IAC7C;;;OAGG;IACa,cAAc,EAAE,EAAE,EAChC;IAEJ,QAAQ,4BAEP;IAED,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,oCAG9C;IAED,QAAQ,IAAI,EAAE,EAAE,CAQf;IAED,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW,GAAG,gCAAgC,CAG9E;IAED,OAAO,YAEN;IAED,MAAM,CAAC,KAAK,qCAEX;CACF"}
@@ -1,40 +0,0 @@
1
- import { type Fq, Fr } from '@aztec/foundation/curves/bn254';
2
- import { z } from 'zod';
3
- import type { AztecAddress } from '../aztec-address/index.js';
4
- import type { CompleteAddress } from '../contract/complete_address.js';
5
- /**
6
- * Directional application tagging secret used for log tagging.
7
- *
8
- * "Directional" because the derived secret is bound to the recipient
9
- * address: A→B differs from B→A even with the same participants and app.
10
- *
11
- * Note: It's a bit unfortunate that this type resides in `stdlib` as the rest of the tagging functionality resides
12
- * in `pxe/src/tagging`. We need to use this type in `PreTag` that in turn is used by other types
13
- * in stdlib hence there doesn't seem to be a good way around this.
14
- */
15
- export declare class DirectionalAppTaggingSecret {
16
- readonly value: Fr;
17
- private constructor();
18
- /**
19
- * Derives shared tagging secret and from that, the app address and recipient derives the directional app tagging
20
- * secret.
21
- *
22
- * @param localAddress - The complete address of entity A in the shared tagging secret derivation scheme
23
- * @param localIvsk - The incoming viewing secret key of entity A
24
- * @param externalAddress - The address of entity B in the shared tagging secret derivation scheme
25
- * @param app - Contract address to silo the secret to
26
- * @param recipient - Recipient of the log. Defines the "direction of the secret".
27
- * @returns The secret that can be used along with an index to compute a tag to be included in a log.
28
- */
29
- static compute(localAddress: CompleteAddress, localIvsk: Fq, externalAddress: AztecAddress, app: AztecAddress, recipient: AztecAddress): Promise<DirectionalAppTaggingSecret>;
30
- toString(): string;
31
- static fromString(str: string): DirectionalAppTaggingSecret;
32
- }
33
- export declare const DirectionalAppTaggingSecretSchema: z.ZodObject<{
34
- value: z.ZodType<Fr, any, string>;
35
- }, "strip", z.ZodTypeAny, {
36
- value: Fr;
37
- }, {
38
- value: string;
39
- }>;
40
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlyZWN0aW9uYWxfYXBwX3RhZ2dpbmdfc2VjcmV0LmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbG9ncy9kaXJlY3Rpb25hbF9hcHBfdGFnZ2luZ19zZWNyZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFFLEtBQUssRUFBRSxFQUFFLEVBQUUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBRzdELE9BQU8sRUFBRSxDQUFDLEVBQUUsTUFBTSxLQUFLLENBQUM7QUFFeEIsT0FBTyxLQUFLLEVBQUUsWUFBWSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDOUQsT0FBTyxLQUFLLEVBQUUsZUFBZSxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFHdkU7Ozs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AI,MAAM,CAEjB;IAED,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,2BAA2B,CAE1D;CACF;AAoBD,eAAO,MAAM,iCAAiC;;;;;;EAE5C,CAAC"}
@@ -1,27 +0,0 @@
1
- import type { Fr } from '@aztec/foundation/curves/bn254';
2
- import type { AztecAddress } from '../aztec-address/index.js';
3
- import { type ZodFor } from '../schemas/index.js';
4
- import { NoteStatus } from './note_status.js';
5
- /**
6
- * A filter used to fetch notes.
7
- * @remarks This filter is applied as an intersection of all its params.
8
- */
9
- export type NotesFilter = {
10
- /**
11
- * The contract address the note belongs to.
12
- * @remarks Providing a contract address is required as we need that information to trigger private state sync.
13
- */
14
- contractAddress: AztecAddress;
15
- /** The owner of the note. */
16
- owner?: AztecAddress;
17
- /** The specific storage location of the note on the contract. */
18
- storageSlot?: Fr;
19
- /** The status of the note. Defaults to 'ACTIVE'. */
20
- status?: NoteStatus;
21
- /** The siloed nullifier for the note. */
22
- siloedNullifier?: Fr;
23
- /** The scopes in which to get notes from. This defaults to all scopes. */
24
- scopes?: AztecAddress[];
25
- };
26
- export declare const NotesFilterSchema: ZodFor<NotesFilter>;
27
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90ZXNfZmlsdGVyLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbm90ZS9ub3Rlc19maWx0ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUsRUFBRSxFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFJekQsT0FBTyxLQUFLLEVBQUUsWUFBWSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDOUQsT0FBTyxFQUFFLEtBQUssTUFBTSxFQUFXLE1BQU0scUJBQXFCLENBQUM7QUFDM0QsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0F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Y,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,WAAW,CAOhD,CAAC"}
@@ -1,11 +0,0 @@
1
- import { z } from 'zod';
2
- import { schemas } from '../schemas/index.js';
3
- import { NoteStatus } from './note_status.js';
4
- export const NotesFilterSchema = z.object({
5
- contractAddress: schemas.AztecAddress,
6
- owner: schemas.AztecAddress.optional(),
7
- storageSlot: schemas.Fr.optional(),
8
- status: z.nativeEnum(NoteStatus).optional(),
9
- siloedNullifier: schemas.Fr.optional(),
10
- scopes: z.array(schemas.AztecAddress).optional()
11
- });
@@ -1 +0,0 @@
1
- export * from './version_manager.js';
@@ -1,38 +0,0 @@
1
- import type { Fr } from '@aztec/foundation/curves/bn254';
2
-
3
- import { z } from 'zod';
4
-
5
- import type { AztecAddress } from '../aztec-address/index.js';
6
- import { type ZodFor, schemas } from '../schemas/index.js';
7
- import { NoteStatus } from './note_status.js';
8
-
9
- /**
10
- * A filter used to fetch notes.
11
- * @remarks This filter is applied as an intersection of all its params.
12
- */
13
- export type NotesFilter = {
14
- /**
15
- * The contract address the note belongs to.
16
- * @remarks Providing a contract address is required as we need that information to trigger private state sync.
17
- */
18
- contractAddress: AztecAddress;
19
- /** The owner of the note. */
20
- owner?: AztecAddress;
21
- /** The specific storage location of the note on the contract. */
22
- storageSlot?: Fr;
23
- /** The status of the note. Defaults to 'ACTIVE'. */
24
- status?: NoteStatus;
25
- /** The siloed nullifier for the note. */
26
- siloedNullifier?: Fr;
27
- /** The scopes in which to get notes from. This defaults to all scopes. */
28
- scopes?: AztecAddress[];
29
- };
30
-
31
- export const NotesFilterSchema: ZodFor<NotesFilter> = z.object({
32
- contractAddress: schemas.AztecAddress,
33
- owner: schemas.AztecAddress.optional(),
34
- storageSlot: schemas.Fr.optional(),
35
- status: z.nativeEnum(NoteStatus).optional(),
36
- siloedNullifier: schemas.Fr.optional(),
37
- scopes: z.array(schemas.AztecAddress).optional(),
38
- });