Expand description
EVM loader
Loader implementation for generating yul code as EVM verifier.
Structs§
- EcPoint
- Elliptic curve point.
- EvmLoader
Loaderimplementation for generating yul code as EVM verifier.- Scalar
- Field element.
Functions§
- compile_
solidity - Compile given Solidity
codeinto deployment bytecode. - deploy_
and_ call - Deploy contract and then call with calldata. Returns gas_used of call to deployed contract if both transactions are successful.
- encode_
calldata - Encode instances and proof into calldata.
- estimate_
gas - Estimate gas cost with given
Cost. - fe_
to_ u256 - Convert a
PrimeFieldinto aU256. Assuming fields that implement traits in crateffalways have little-endian representation. - modulus
- Returns modulus of
PrimeFieldasU256. - u256_
to_ fe - Convert a
U256into aPrimeField.