@aztec-foundation/constants-codegen 6.0.0-nightly.20260907 → 6.0.0-nightly.20260909
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.
- package/inputs/constants.nr +19 -2
- package/package.json +1 -1
package/inputs/constants.nr
CHANGED
|
@@ -197,9 +197,9 @@ pub global MAX_BLOCKS_PER_CHECKPOINT: u32 = 72;
|
|
|
197
197
|
pub global MAX_TX_LIFETIME: u64 = 86400; // 1 day. Arbitrarily chosen.
|
|
198
198
|
// The genesis values are taken from world_state.test.cpp > WorldStateTest.GetInitialTreeInfoForAllTrees
|
|
199
199
|
pub global GENESIS_BLOCK_HEADER_HASH: Field =
|
|
200
|
-
|
|
200
|
+
0x22c20c79c14de01ee15231d523dcfc20a1d4aba37f8c590baad4df9f80ba3e60;
|
|
201
201
|
pub global GENESIS_ARCHIVE_ROOT: Field =
|
|
202
|
-
|
|
202
|
+
0x0a0877e7fa8646252b46122976de111ece73d0cc054da8d780e3f12ec1709305;
|
|
203
203
|
pub global EMPTY_EPOCH_OUT_HASH: Field =
|
|
204
204
|
0xc95e0ceb41951039e1592745ec2faea9866f6eaf01bf189a4463b4143af093;
|
|
205
205
|
|
|
@@ -411,6 +411,7 @@ pub global TOTAL_MANA_USED_LENGTH: u32 = 1;
|
|
|
411
411
|
pub global BLOCK_HEADER_LENGTH: u32 = APPEND_ONLY_TREE_SNAPSHOT_LENGTH
|
|
412
412
|
+ STATE_REFERENCE_LENGTH
|
|
413
413
|
+ 1 /* blob_sponge_hash */
|
|
414
|
+
+ 1 /* tx_effects_tree_root */
|
|
414
415
|
+ GLOBAL_VARIABLES_LENGTH
|
|
415
416
|
+ TOTAL_FEES_LENGTH
|
|
416
417
|
+ TOTAL_MANA_USED_LENGTH;
|
|
@@ -568,6 +569,7 @@ pub global TX_ROLLUP_PUBLIC_INPUTS_LENGTH: u32 = BLOCK_CONSTANT_DATA_LENGTH
|
|
|
568
569
|
+ SPONGE_BLOB_LENGTH /* end_sponge_blob */
|
|
569
570
|
+ 1 /* num_txs */
|
|
570
571
|
+ 1 /* out_hash */
|
|
572
|
+
+ 1 /* tx_effects_tree_root */
|
|
571
573
|
+ 1 /* accumulated_fees */
|
|
572
574
|
+ 1 /* accumulated_mana_used */;
|
|
573
575
|
pub global BLOCK_ROLLUP_PUBLIC_INPUTS_LENGTH: u32 = CHECKPOINT_CONSTANT_DATA_LENGTH
|
|
@@ -766,6 +768,21 @@ pub global DOM_SEP__TX_REQUEST: u32 = 3763737512;
|
|
|
766
768
|
pub global DOM_SEP__PUBLIC_TX_HASH: u32 = 1630108851;
|
|
767
769
|
pub global DOM_SEP__PRIVATE_TX_HASH: u32 = 1971680439;
|
|
768
770
|
|
|
771
|
+
/// The number of variable-length effect categories committed by a tx effects tree leaf.
|
|
772
|
+
pub global NUM_TX_EFFECT_CATEGORIES: u32 = 7;
|
|
773
|
+
/// The tx start marker, transaction fee, and one hash per effect category.
|
|
774
|
+
pub global TX_EFFECT_CATEGORIES_HASH_PREIMAGE_LENGTH: u32 = 2 + NUM_TX_EFFECT_CATEGORIES;
|
|
775
|
+
|
|
776
|
+
/// Domain separator shared by the effect category hashes, which occupy fixed positions in the categories hash.
|
|
777
|
+
pub global DOM_SEP__TX_EFFECT_CATEGORY_HASH: u32 = 1030022731;
|
|
778
|
+
/// Domain separator for the hash over the tx start marker, transaction fee, and effect category hashes.
|
|
779
|
+
pub global DOM_SEP__TX_EFFECT_CATEGORIES_HASH: u32 = 1426387399;
|
|
780
|
+
/// Domain separator for a tx effects tree leaf, which binds a tx hash to its categories hash.
|
|
781
|
+
pub global DOM_SEP__TX_EFFECTS_TREE_LEAF: u32 = 1186802524;
|
|
782
|
+
/// Domain separator for the internal nodes of the tx effects tree. Distinct from
|
|
783
|
+
/// [`DOM_SEP__TX_EFFECTS_TREE_LEAF`] so that a leaf can never be confused with an internal node.
|
|
784
|
+
pub global DOM_SEP__TX_EFFECTS_TREE: u32 = 2908237871;
|
|
785
|
+
|
|
769
786
|
// Hashing the calldata of public functions:
|
|
770
787
|
pub global DOM_SEP__PUBLIC_CALLDATA: u32 = 2760353947;
|
|
771
788
|
// Hashing the args to private functions:
|
package/package.json
CHANGED