Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat() Update gas prices for decrypt and rand #50

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions fhevm/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,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 @@ -146,9 +146,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,
},
// TODO: As of now, only support FheUint8. All optimistic require predicates are
// downcast to FheUint8 at the solidity level. Eventually move to ebool.
Expand Down
Loading