Skip to content

Commit 3a8ab34

Browse files
committed
chore: update gas cost for ECADD
1 parent 3befc91 commit 3a8ab34

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

barretenberg/cpp/src/barretenberg/aztec/aztec_constants.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
#define AVM_POSEIDON2_BASE_L2_GAS 360
234234
#define AVM_SHA256COMPRESSION_BASE_L2_GAS 12288
235235
#define AVM_KECCAKF1600_BASE_L2_GAS 58176
236-
#define AVM_ECADD_BASE_L2_GAS 270
236+
#define AVM_ECADD_BASE_L2_GAS 180
237237
#define AVM_TORADIXBE_BASE_L2_GAS 24
238238
#define AVM_CALLDATACOPY_DYN_L2_GAS 3
239239
#define AVM_RETURNDATACOPY_DYN_L2_GAS 3

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ pub global AVM_DEBUGLOG_BASE_L2_GAS: u32 = 9;
12201220
pub global AVM_POSEIDON2_BASE_L2_GAS: u32 = 24 * 15; // SLOW_SIM_MUL = 15
12211221
pub global AVM_SHA256COMPRESSION_BASE_L2_GAS: u32 = 12288;
12221222
pub global AVM_KECCAKF1600_BASE_L2_GAS: u32 = 58176;
1223-
pub global AVM_ECADD_BASE_L2_GAS: u32 = 27 * 10; // SLOW_SIM_MUL = 10
1223+
pub global AVM_ECADD_BASE_L2_GAS: u32 = 18 * 10; // SLOW_SIM_MUL = 10
12241224
pub global AVM_TORADIXBE_BASE_L2_GAS: u32 = 24;
12251225

12261226
// Dynamic L2 GAS

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ export const AVM_DEBUGLOG_BASE_L2_GAS = 9;
451451
export const AVM_POSEIDON2_BASE_L2_GAS = 360;
452452
export const AVM_SHA256COMPRESSION_BASE_L2_GAS = 12288;
453453
export const AVM_KECCAKF1600_BASE_L2_GAS = 58176;
454-
export const AVM_ECADD_BASE_L2_GAS = 270;
454+
export const AVM_ECADD_BASE_L2_GAS = 180;
455455
export const AVM_TORADIXBE_BASE_L2_GAS = 24;
456456
export const AVM_CALLDATACOPY_DYN_L2_GAS = 3;
457457
export const AVM_RETURNDATACOPY_DYN_L2_GAS = 3;
@@ -497,6 +497,7 @@ export const GRUMPKIN_ONE_Y = 17631683881184975370165255887551781615748388533673
497497
export const DEFAULT_MAX_DEBUG_LOG_MEMORY_READS = 125000;
498498
export enum DomainSeparator {
499499
NOTE_HASH = 116501019,
500+
PARTIAL_NOTE_COMMITMENT = 568912195,
500501
SILOED_NOTE_HASH = 3361878420,
501502
UNIQUE_NOTE_HASH = 226850429,
502503
NOTE_HASH_NONCE = 1721808740,

0 commit comments

Comments
 (0)