File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -53,13 +53,13 @@ impl Default for GasConfig {
53
53
const GAS_PER_US : u64 = 1_000_000 ;
54
54
Self {
55
55
// ~154 us in crypto benchmarks
56
- secp256k1_verify_cost : 154 * GAS_PER_US ,
56
+ secp256k1_verify_cost : 119 * GAS_PER_US ,
57
57
// ~162 us in crypto benchmarks
58
- secp256k1_recover_pubkey_cost : 162 * GAS_PER_US ,
59
- // ~154 us in crypto benchmarks
60
- secp256r1_verify_cost : 154 * GAS_PER_US ,
61
- // ~162 us in crypto benchmarks
62
- secp256r1_recover_pubkey_cost : 162 * GAS_PER_US ,
58
+ secp256k1_recover_pubkey_cost : 233 * GAS_PER_US ,
59
+ // ~525 us in crypto benchmarks
60
+ secp256r1_verify_cost : 374 * GAS_PER_US ,
61
+ // ~582 us in crypto benchmarks
62
+ secp256r1_recover_pubkey_cost : 834 * GAS_PER_US ,
63
63
// ~63 us in crypto benchmarks
64
64
ed25519_verify_cost : 63 * GAS_PER_US ,
65
65
// Gas cost factors, relative to ed25519_verify cost
Original file line number Diff line number Diff line change @@ -670,7 +670,7 @@ mod tests {
670
670
const INIT_AMOUNT : u128 = 500 ;
671
671
const INIT_DENOM : & str = "TOKEN" ;
672
672
673
- const TESTING_GAS_LIMIT : u64 = 500_000_000 ; // ~0.5ms
673
+ const TESTING_GAS_LIMIT : u64 = 1_000_000_000 ; // ~1ms
674
674
const TESTING_MEMORY_LIMIT : Option < Size > = Some ( Size :: mebi ( 16 ) ) ;
675
675
676
676
const ECDSA_P256K1_HASH_HEX : & str =
You can’t perform that action at this time.
0 commit comments