Expand description
EVM loader
Loader
implementation for generating yul code as EVM verifier.
Structs§
- EcPoint
- Elliptic curve point.
- EvmLoader
Loader
implementation for generating yul code as EVM verifier.- Scalar
- Field element.
Functions§
- compile_
solidity - Compile given Solidity
code
into 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
PrimeField
into aU256
. Assuming fields that implement traits in crateff
always have little-endian representation. - modulus
- Returns modulus of
PrimeField
asU256
. - u256_
to_ fe - Convert a
U256
into aPrimeField
.