Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #50 from zama-ai/feat/update-gas
Browse files Browse the repository at this point in the history
feat() Update gas prices for decrypt and rand
  • Loading branch information
immortal-tofu authored Jan 4, 2024
2 parents 43e4919 + 1b69654 commit 31f903f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fhevm/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ func DefaultGasCosts() GasCosts {
FheUint32: 130000,
},
FheDecrypt: map[FheUintType]uint64{
FheUint8: 600,
FheUint16: 700,
FheUint32: 800,
FheUint8: 500000,
FheUint16: 500000,
FheUint32: 500000,
},
FheBitwiseOp: map[FheUintType]uint64{
FheUint8: 20000,
Expand Down Expand Up @@ -147,9 +147,9 @@ func DefaultGasCosts() GasCosts {
},
// TODO: These will change once we have an FHE-based random generaration.
FheRand: map[FheUintType]uint64{
FheUint8: EvmNetSstoreInitGas + 1000,
FheUint16: EvmNetSstoreInitGas + 2000,
FheUint32: EvmNetSstoreInitGas + 3000,
FheUint8: EvmNetSstoreInitGas + 100000,
FheUint16: EvmNetSstoreInitGas + 200000,
FheUint32: EvmNetSstoreInitGas + 400000,
},
FheIfThenElse: map[FheUintType]uint64{
FheUint8: 61000,
Expand Down

0 comments on commit 31f903f

Please sign in to comment.