Skip to content

Commit d2e4fb3

Browse files
committed
Cleaning up some obsolete AVM related constants
1 parent bfc5abd commit d2e4fb3

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

barretenberg/cpp/src/barretenberg/vm2/common/aztec_constants.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,6 @@
165165
#define AVM_PUBLIC_INPUTS_COLUMNS_MAX_LENGTH 681
166166
#define AVM_NUM_PUBLIC_INPUT_COLUMNS 4
167167
#define AVM_PUBLIC_INPUTS_COLUMNS_COMBINED_LENGTH 2724
168-
#define AVM_PROOF_LENGTH_IN_FIELDS 4154
169-
#define AVM_PUBLIC_COLUMN_MAX_SIZE 1024
170-
#define AVM_V2_PUBLIC_INPUTS_FLATTENED_SIZE 1
171168
#define AVM_V2_PROOF_LENGTH_IN_FIELDS_PADDED 20000
172169
#define AVM_V2_VERIFICATION_KEY_LENGTH_IN_FIELDS_PADDED 1000
173170
#define AVM_MAX_PROCESSABLE_L2_GAS 6000000

noir-projects/noir-protocol-circuits/crates/types/src/constants.nr

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -879,15 +879,14 @@ pub global AVM_NUM_PUBLIC_INPUT_COLUMNS: u32 = 4;
879879
pub global AVM_PUBLIC_INPUTS_COLUMNS_COMBINED_LENGTH: u32 =
880880
AVM_NUM_PUBLIC_INPUT_COLUMNS * AVM_PUBLIC_INPUTS_COLUMNS_MAX_LENGTH;
881881

882-
// `AVM_PROOF_LENGTH_IN_FIELDS` must be updated when AVM circuit changes.
882+
// REMARK: This comment will be relevant when we decommission the "padded" constants below and revive the
883+
// non-padded constants: `AVM_V2_PROOF_LENGTH_IN_FIELDS` and `AVM_V2_VERIFICATION_KEY_LENGTH_IN_FIELDS`.
884+
// `AVM_V2_PROOF_LENGTH_IN_FIELDS` must be updated when AVM circuit changes.
883885
// To determine latest value, hover `COMPUTED_AVM_PROOF_LENGTH_IN_FIELDS`
884-
// in barretenberg/cpp/src/barretenberg/vm/avm/generated/flavor.hpp
886+
// in barretenberg/cpp/src/barretenberg/vm2/constraining/flavor.hpp
885887
// This also changes the length of inputs for the public base rollup circuit, so its Prover.toml must be updated.
886888
// To do so: run: 'AZTEC_GENERATE_TEST_DATA=1 yarn workspace @aztec/prover-client test orchestrator_public_functions' from yarn-project.
887-
pub global AVM_PROOF_LENGTH_IN_FIELDS: u32 = 4154;
888-
pub global AVM_PUBLIC_COLUMN_MAX_SIZE: u32 = 1024;
889889

890-
pub global AVM_V2_PUBLIC_INPUTS_FLATTENED_SIZE: u32 = 1;
891890
// pub global AVM_V2_PROOF_LENGTH_IN_FIELDS: u32 = 5452;
892891
// VK is composed of
893892
// - circuit size encoded as a fr field element (32 bytes)

yarn-project/constants/src/constants.gen.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,6 @@ export const AVM_PUBLIC_INPUTS_REVERTED_ROW_IDX = 680;
378378
export const AVM_PUBLIC_INPUTS_COLUMNS_MAX_LENGTH = 681;
379379
export const AVM_NUM_PUBLIC_INPUT_COLUMNS = 4;
380380
export const AVM_PUBLIC_INPUTS_COLUMNS_COMBINED_LENGTH = 2724;
381-
export const AVM_PROOF_LENGTH_IN_FIELDS = 4154;
382-
export const AVM_PUBLIC_COLUMN_MAX_SIZE = 1024;
383-
export const AVM_V2_PUBLIC_INPUTS_FLATTENED_SIZE = 1;
384381
export const AVM_V2_PROOF_LENGTH_IN_FIELDS_PADDED = 20000;
385382
export const AVM_V2_VERIFICATION_KEY_LENGTH_IN_FIELDS_PADDED = 1000;
386383
export const AVM_MAX_PROCESSABLE_L2_GAS = 6000000;
@@ -504,6 +501,7 @@ export const PROOF_TYPE_ROLLUP_HONK = 5;
504501
export const PROOF_TYPE_ROOT_ROLLUP_HONK = 6;
505502
export const PROOF_TYPE_PG_FINAL = 8;
506503
export const PROOF_TYPE_PG_TAIL = 9;
504+
export const PROOF_TYPE_CIVC = 10;
507505
export const TWO_POW_64 = 18446744073709551616n;
508506
export const AVM_WRITTEN_PUBLIC_DATA_SLOTS_TREE_HEIGHT = 6;
509507
export const AVM_WRITTEN_PUBLIC_DATA_SLOTS_TREE_INITIAL_ROOT =

0 commit comments

Comments
 (0)