@aztec/stdlib 6.0.0-nightly.20260723 → 6.0.0-nightly.20260724

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 (37) hide show
  1. package/dest/abi/abi.d.ts +8 -1
  2. package/dest/abi/abi.d.ts.map +1 -1
  3. package/dest/abi/contract_artifact.d.ts +1 -1
  4. package/dest/abi/contract_artifact.d.ts.map +1 -1
  5. package/dest/abi/contract_artifact.js +26 -8
  6. package/dest/hash/hash.d.ts +1 -2
  7. package/dest/hash/hash.d.ts.map +1 -1
  8. package/dest/hash/hash.js +0 -7
  9. package/dest/interfaces/archiver.d.ts +8 -1
  10. package/dest/interfaces/archiver.d.ts.map +1 -1
  11. package/dest/interfaces/archiver.js +2 -1
  12. package/dest/logs/app_tagging_secret.d.ts +1 -1
  13. package/dest/logs/app_tagging_secret.d.ts.map +1 -1
  14. package/dest/logs/app_tagging_secret.js +4 -13
  15. package/dest/logs/shared_secret_derivation.d.ts +12 -2
  16. package/dest/logs/shared_secret_derivation.d.ts.map +1 -1
  17. package/dest/logs/shared_secret_derivation.js +18 -0
  18. package/dest/messaging/l1_to_l2_message.d.ts +23 -2
  19. package/dest/messaging/l1_to_l2_message.d.ts.map +1 -1
  20. package/dest/messaging/l1_to_l2_message.js +36 -11
  21. package/dest/noir/index.d.ts +3 -3
  22. package/dest/noir/index.d.ts.map +1 -1
  23. package/dest/rollup/checkpoint_rollup_public_inputs.d.ts +1 -1
  24. package/dest/world-state/genesis_data.d.ts +9 -1
  25. package/dest/world-state/genesis_data.d.ts.map +1 -1
  26. package/dest/world-state/genesis_data.js +1 -0
  27. package/package.json +8 -8
  28. package/src/abi/abi.ts +8 -0
  29. package/src/abi/contract_artifact.ts +33 -9
  30. package/src/gas/README.md +108 -36
  31. package/src/hash/hash.ts +0 -8
  32. package/src/interfaces/archiver.ts +8 -0
  33. package/src/logs/app_tagging_secret.ts +8 -17
  34. package/src/logs/shared_secret_derivation.ts +18 -1
  35. package/src/messaging/l1_to_l2_message.ts +51 -13
  36. package/src/noir/index.ts +2 -1
  37. package/src/world-state/genesis_data.ts +10 -0
@@ -1,9 +1,18 @@
1
+ import type { Fr } from '@aztec/foundation/curves/bn254';
2
+
1
3
  import type { PublicDataTreeLeaf } from '../trees/index.js';
2
4
 
3
5
  /** Data used to initialize the genesis block, including prefilled public state and an optional timestamp. */
4
6
  export type GenesisData = {
5
7
  /** Public data tree leaves to pre-populate in the genesis state (e.g. fee juice balances). */
6
8
  prefilledPublicData: PublicDataTreeLeaf[];
9
+ /**
10
+ * Nullifiers to pre-insert into the genesis nullifier tree. Optional; defaults to an empty list, which leaves the
11
+ * nullifier tree at its canonical empty-genesis state so that production genesis roots are unchanged. When non-empty,
12
+ * the leaves must be unique and strictly increasing in field value (the native world state enforces this before
13
+ * construction). Test networks pass a non-empty list to seed e.g. standard-contract registration nullifiers.
14
+ */
15
+ prefilledNullifiers?: Fr[];
7
16
  /** Timestamp for the genesis block header. Defaults to 0 (canonical empty genesis) in production. */
8
17
  genesisTimestamp: bigint;
9
18
  };
@@ -11,6 +20,7 @@ export type GenesisData = {
11
20
  /** An empty genesis data with no prefilled state and a zero timestamp. */
12
21
  export const EMPTY_GENESIS_DATA: GenesisData = {
13
22
  prefilledPublicData: [],
23
+ prefilledNullifiers: [],
14
24
  genesisTimestamp: 0n,
15
25
  };
16
26