@aztec-labs/stdlib 6.0.0-nightly.20261008 → 6.0.0-nightly.20261009

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.
@@ -8,7 +8,7 @@ import type { PartialAddress } from './partial_address.js';
8
8
  * ```
9
9
  * salted_initialization_hash = poseidon2(DOM_SEP__SALTED_INITIALIZATION_HASH, [salt, initialization_hash, deployer, immutables_hash])
10
10
  * partial_address = poseidon2(DOM_SEP__PARTIAL_ADDRESS, [contract_class_id, salted_initialization_hash])
11
- * address = ((poseidon2(DOM_SEP__CONTRACT_ADDRESS_V2, [public_keys_hash, partial_address]) * G) + ivpk_m).x <- the x-coordinate of the address point
11
+ * address = ((poseidon2(DOM_SEP__CONTRACT_ADDRESS_V3, [public_keys_hash, partial_address]) * G) + ivpk_m).x <- the x-coordinate of the address point
12
12
  * ```
13
13
  * @param instance - A contract instance for which to calculate the deployment address.
14
14
  */
@@ -10,7 +10,7 @@ import { computeAddress } from '../keys/index.js';
10
10
  * ```
11
11
  * salted_initialization_hash = poseidon2(DOM_SEP__SALTED_INITIALIZATION_HASH, [salt, initialization_hash, deployer, immutables_hash])
12
12
  * partial_address = poseidon2(DOM_SEP__PARTIAL_ADDRESS, [contract_class_id, salted_initialization_hash])
13
- * address = ((poseidon2(DOM_SEP__CONTRACT_ADDRESS_V2, [public_keys_hash, partial_address]) * G) + ivpk_m).x <- the x-coordinate of the address point
13
+ * address = ((poseidon2(DOM_SEP__CONTRACT_ADDRESS_V3, [public_keys_hash, partial_address]) * G) + ivpk_m).x <- the x-coordinate of the address point
14
14
  * ```
15
15
  * @param instance - A contract instance for which to calculate the deployment address.
16
16
  */ export async function computeContractAddressFromInstance(instance) {
@@ -3,8 +3,8 @@
3
3
  * Used to predict worst-case min fees over a future window of L2 slots.
4
4
  */
5
5
  export declare const MINIMUM_CONGESTION_MULTIPLIER = 1000000000n;
6
- export declare const L1_GAS_PER_CHECKPOINT_PROPOSED = 500000n;
7
- export declare const L1_GAS_PER_EPOCH_VERIFIED = 4000000n;
6
+ export declare const L1_GAS_PER_CHECKPOINT_PROPOSED = 520000n;
7
+ export declare const L1_GAS_PER_EPOCH_VERIFIED = 2500000n;
8
8
  export declare const BLOBS_PER_CHECKPOINT = 3n;
9
9
  export declare const BLOB_GAS_PER_BLOB: bigint;
10
10
  export declare const MAGIC_CONGESTION_VALUE_MULTIPLIER = 854700854n;
@@ -3,8 +3,8 @@
3
3
  * Used to predict worst-case min fees over a future window of L2 slots.
4
4
  */ // Constants matching FeeLib.sol
5
5
  export const MINIMUM_CONGESTION_MULTIPLIER = 1_000_000_000n;
6
- export const L1_GAS_PER_CHECKPOINT_PROPOSED = 500_000n;
7
- export const L1_GAS_PER_EPOCH_VERIFIED = 4_000_000n;
6
+ export const L1_GAS_PER_CHECKPOINT_PROPOSED = 520_000n;
7
+ export const L1_GAS_PER_EPOCH_VERIFIED = 2_500_000n;
8
8
  export const BLOBS_PER_CHECKPOINT = 3n;
9
9
  export const BLOB_GAS_PER_BLOB = 2n ** 17n;
10
10
  export const MAGIC_CONGESTION_VALUE_MULTIPLIER = 854_700_854n;
@@ -59,11 +59,11 @@ export function computePreaddress(publicKeysHash, partialAddress) {
59
59
  return poseidon2HashWithSeparator([
60
60
  publicKeysHash,
61
61
  partialAddress
62
- ], DomainSeparator.CONTRACT_ADDRESS_V2);
62
+ ], DomainSeparator.CONTRACT_ADDRESS_V3);
63
63
  }
64
64
  export async function computeAddress(publicKeys, partialAddress) {
65
65
  // Given public keys and a partial address, we can compute our address in the following steps.
66
- // 1. preaddress = poseidon2([publicKeysHash, partialAddress], DomainSeparator.CONTRACT_ADDRESS_V2);
66
+ // 1. preaddress = poseidon2([publicKeysHash, partialAddress], DomainSeparator.CONTRACT_ADDRESS_V3);
67
67
  // 2. addressPoint = (preaddress * G) + ivpk_m
68
68
  // 3. address = addressPoint.x
69
69
  const preaddress = await computePreaddress(await publicKeys.hash(), partialAddress);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec-labs/stdlib",
3
- "version": "6.0.0-nightly.20261008",
3
+ "version": "6.0.0-nightly.20261009",
4
4
  "type": "module",
5
5
  "inherits": [
6
6
  "../package.common.json",
@@ -92,12 +92,12 @@
92
92
  },
93
93
  "dependencies": {
94
94
  "@aws-sdk/client-s3": "^3.892.0",
95
- "@aztec-foundation/bb.js": "6.0.0-rc.5",
96
- "@aztec-foundation/noir-noirc_abi": "6.0.0-rc.5",
97
- "@aztec-labs/blob-lib": "6.0.0-nightly.20261008",
98
- "@aztec-labs/constants": "6.0.0-nightly.20261008",
99
- "@aztec-labs/ethereum": "6.0.0-nightly.20261008",
100
- "@aztec-labs/foundation": "6.0.0-nightly.20261008",
95
+ "@aztec-foundation/bb.js": "6.0.0-rc.6",
96
+ "@aztec-foundation/noir-noirc_abi": "6.0.0-rc.6",
97
+ "@aztec-labs/blob-lib": "6.0.0-nightly.20261009",
98
+ "@aztec-labs/constants": "6.0.0-nightly.20261009",
99
+ "@aztec-labs/ethereum": "6.0.0-nightly.20261009",
100
+ "@aztec-labs/foundation": "6.0.0-nightly.20261009",
101
101
  "@google-cloud/storage": "^7.15.0",
102
102
  "axios": "^1.15.1",
103
103
  "json-stringify-deterministic": "1.0.12",
@@ -16,7 +16,7 @@ import type { PartialAddress } from './partial_address.js';
16
16
  * ```
17
17
  * salted_initialization_hash = poseidon2(DOM_SEP__SALTED_INITIALIZATION_HASH, [salt, initialization_hash, deployer, immutables_hash])
18
18
  * partial_address = poseidon2(DOM_SEP__PARTIAL_ADDRESS, [contract_class_id, salted_initialization_hash])
19
- * address = ((poseidon2(DOM_SEP__CONTRACT_ADDRESS_V2, [public_keys_hash, partial_address]) * G) + ivpk_m).x <- the x-coordinate of the address point
19
+ * address = ((poseidon2(DOM_SEP__CONTRACT_ADDRESS_V3, [public_keys_hash, partial_address]) * G) + ivpk_m).x <- the x-coordinate of the address point
20
20
  * ```
21
21
  * @param instance - A contract instance for which to calculate the deployment address.
22
22
  */
package/src/gas/README.md CHANGED
@@ -208,8 +208,8 @@ itself, before actual teardown consumption is known.
208
208
 
209
209
  | Constant | Value |
210
210
  | ------------------------------- | -------------- |
211
- | `L1_GAS_PER_CHECKPOINT_PROPOSED` | 500,000 |
212
- | `L1_GAS_PER_EPOCH_VERIFIED` | 4,000,000 |
211
+ | `L1_GAS_PER_CHECKPOINT_PROPOSED` | 520,000 |
212
+ | `L1_GAS_PER_EPOCH_VERIFIED` | 2,500,000 |
213
213
  | `BLOBS_PER_CHECKPOINT` (FeeLib) | 3 |
214
214
  | `BLOB_GAS_PER_BLOB` | 2^17 |
215
215
  | `MINIMUM_CONGESTION_MULTIPLIER` | 1e9 |
@@ -5,8 +5,8 @@
5
5
 
6
6
  // Constants matching FeeLib.sol
7
7
  export const MINIMUM_CONGESTION_MULTIPLIER = 1_000_000_000n;
8
- export const L1_GAS_PER_CHECKPOINT_PROPOSED = 500_000n;
9
- export const L1_GAS_PER_EPOCH_VERIFIED = 4_000_000n;
8
+ export const L1_GAS_PER_CHECKPOINT_PROPOSED = 520_000n;
9
+ export const L1_GAS_PER_EPOCH_VERIFIED = 2_500_000n;
10
10
  export const BLOBS_PER_CHECKPOINT = 3n;
11
11
  export const BLOB_GAS_PER_BLOB = 2n ** 17n;
12
12
  export const MAGIC_CONGESTION_VALUE_MULTIPLIER = 854_700_854n;
@@ -51,12 +51,12 @@ export function deriveMasterFallbackSecretKey(secretKey: Fr): GrumpkinScalar {
51
51
  }
52
52
 
53
53
  export function computePreaddress(publicKeysHash: Fr, partialAddress: Fr) {
54
- return poseidon2HashWithSeparator([publicKeysHash, partialAddress], DomainSeparator.CONTRACT_ADDRESS_V2);
54
+ return poseidon2HashWithSeparator([publicKeysHash, partialAddress], DomainSeparator.CONTRACT_ADDRESS_V3);
55
55
  }
56
56
 
57
57
  export async function computeAddress(publicKeys: PublicKeys, partialAddress: Fr): Promise<AztecAddress> {
58
58
  // Given public keys and a partial address, we can compute our address in the following steps.
59
- // 1. preaddress = poseidon2([publicKeysHash, partialAddress], DomainSeparator.CONTRACT_ADDRESS_V2);
59
+ // 1. preaddress = poseidon2([publicKeysHash, partialAddress], DomainSeparator.CONTRACT_ADDRESS_V3);
60
60
  // 2. addressPoint = (preaddress * G) + ivpk_m
61
61
  // 3. address = addressPoint.x
62
62
  const preaddress = await computePreaddress(await publicKeys.hash(), partialAddress);