Skip to content

Specify the genesis variant for the EvmSketch #232

@hadjiszs

Description

@hadjiszs

Description

The sp1-contract-call crates are used in the aggchain proof for contract calls verification.

Recent update requires one genesis value (cf. here)

This genesis value must be properly specified according to the L1 for which the prover is instantiated.

Example in a test where the L1 is Sepolia:

let new = EvmSketch::builder()
    .at_block(BlockNumberOrTag::Number(final_block_number))
    .with_genesis(Genesis::Sepolia)
    .el_rpc_url(rpc_url_l2.clone())
    .build()
    .await?;

Solution

This with_genesis must be set properly in the production code to set whether the L1 is mainnet, sepolia, etc.

Several options:

  • From a config file entry specifying the chain id
  • The genesis variant directly
  • ...

Metadata

Metadata

Assignees

No one assigned

    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