Skip to content

Commit

Permalink
bus-mapping: Extend circuit_input_builder (privacy-scaling-exploratio…
Browse files Browse the repository at this point in the history
…ns#201)

Extend the types returned by the CircuitInputBuilder to match the
requirements from the circuits.

Rename CallContext to Call because the struct will be required for the
circuits.  Instead of keeping call metadata in a call stack, keep all
call metadata in a vector, and use a call stack with indices to this
vector.

Extend Call, Transaction, ExecStep and Block with fields required by the
circuits.

Calculate addresses in bus-mapping.

Integrate StateDB into CircuitInputBuilder and detect
InsufficientBalance and ContractAddressCollision execution errors.

Remove web3 dependency in favour of ethers-core for eth_types.

Resolve privacy-scaling-explorations#190
Resolve privacy-scaling-explorations#187
Resolve privacy-scaling-explorations#180
Resolve privacy-scaling-explorations#172
  • Loading branch information
ed255 authored Dec 1, 2021
1 parent 06bec61 commit ee2d7e6
Show file tree
Hide file tree
Showing 19 changed files with 822 additions and 203 deletions.
4 changes: 2 additions & 2 deletions bus-mapping/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ lazy_static = "1.4"
serde_json = "1.0.66"
hex = "0.4"
geth-utils = { path = "../geth-utils" }
web3 = {version = "0.17", default-features = false}
uint = "0.9.1"
ethers-providers = "0.5.5"
ethers-providers = "0.6.0"
ethers-core = "0.6.0"
regex = "1.5.4"

[dev-dependencies]
Expand Down
Loading

0 comments on commit ee2d7e6

Please sign in to comment.