Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Fix: lost tx_type when doing type conversion #710

Merged
merged 1 commit into from
Aug 2, 2023
Merged

Conversation

kunxian-xia
Copy link

Description

The tx_type info is lost during the type conversion between bus_mapping::circuit_input_builder::Transaction and eth_types::geth_types::Transaction.

Moreover, when we received a ethers_core::Transaction whose transaction_type is not properly set (i.e. it's set to None), and if v = 0 it does not guarantee that this tx must be PreEip155 tx. Because L1Msg also have v = 0 in this case.

Therefore we need to check if (v, r, s) = (0, 0, 0), then tx is of type L1Msg.

Issue Link

This pr should fix the scroll-tech/scroll-prover#190 issue.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

@lispc lispc merged commit 5fe2b3a into develop Aug 2, 2023
@lispc lispc deleted the fix/tx_type_lost branch August 2, 2023 11:59
lispc added a commit that referenced this pull request Aug 4, 2023
…s for the dummy chunk proofs to avoid dummy chunk proofgen time (#712)

* partiall address review comments of #670

* disable disable_proof_agg by default

* fix soundness issues with data hash

* add fixed cells for chunk_is_valid

* fix typo

* well... need morning coffee

* typo in readme

* fix soundness issue in is_smaller_than

* [feat] unify u8 u16 lookup table (#694)

* add range table

* replace Range256Table of rlp_circuit_fsm

* replace u16_table of tx_circuit

* use TableColumn

* add type alias

* use type alias

* annotate lookup column

* opt min_num_rows_block in poseidon_circuit (#700)

prune debug prints and lint

* speedup ci using verify_at_rows (#703)

* speedup ci using verify_at_rows

* use verify_at_rows to speedup super circuit ci tests

* update super circuit row estimation API (#695)

* remove num_of_chunks in aggregation circuit's instance column (#704)

Co-authored-by: kunxian xia <[email protected]>

* fix: lost tx_type when doing type conversion (#710)

* fix condition (#708)

* gates for zero checks

* statement 1 is correct

* reenable statements 3,6,7

* reenable statement 4

* everything seems to work again

* update aggregation test accordingly

* update spec

* minor clean up

* Fix fmt.

* Make `ChunkHash` fields public.

* fix decompose function

* update figures

* clean up

* address comments

* add is_final checks

* update readme

* constraint hash input length

* fix clippy

---------

Co-authored-by: Akase Cho <[email protected]>
Co-authored-by: Ho <[email protected]>
Co-authored-by: Zhang Zhuo <[email protected]>
Co-authored-by: kunxian xia <[email protected]>
Co-authored-by: Steven Gu <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants