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

MIssing GasPrice for FHECast, FhePubKey and ProtectedMemory ? #68

@jatZama

Description

@jatZama

I was not able to find the GasPrice for casting operations in the code https://github.com/zama-ai/fhevm-go/blob/main/fhevm/precompiles.go#L700
I noticed that I paid the same gas (edit: found mistake in my test) a bit less than 1000 gas when replacing in a transaction this line :
euint16 xx = TFHE.asEuint16(x);
with this one :
euint32 xx = TFHE.asEuint32(TFHE.asEuint16(x));

Same seem to be true for the FhePubKey precompile function.

We could DDOS the network easily if the gas is set to 0 or too low.

Also : where is the price for the storing or loading privileged memory? I only found a cost for privileged storage but not privileged memory.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions