Skip to content

Spv#42

Open
LeonLi000 wants to merge 58 commits intonervosnetwork:masterfrom
LeonLi000:spv
Open

Spv#42
LeonLi000 wants to merge 58 commits intonervosnetwork:masterfrom
LeonLi000:spv

Conversation

@LeonLi000
Copy link
Contributor

  1. support cross-chain from Ethereum to ckb. Including spv verification and checking whether the transaction is on the main chain.
  2. test cases for spv verification and header verification.

huwenchao and others added 30 commits August 20, 2020 00:01
Co-authored-by: zhounan <vyclzn@gmail.com>
Co-authored-by: zhounan <vyclzn@gmail.com>
Co-authored-by: zhounan <vyclzn@gmail.com>
…ness.mol

Co-authored-by: zhounan <vyclzn@gmail.com>
Comment on lines +244 to +248
pub fn verify_eth_witness(
data: &ToCKBCellDataView,
proof: &[u8],
cell_dep_index_list: &[u8],
) -> Result<EthExtraView, Error> {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two questions here:

  1. Miss lock amount verification?
  2. Dose eth-transfer tx have a receipt?
    If dosen't, we should verify the tx-structure rather than receipt

@ghost
Copy link

ghost commented Sep 28, 2020

  1. support cross-chain from Ethereum to ckb. Including spv verification and checking whether the transaction is on the main chain.
  2. test cases for spv verification and header verification.

for full support of eth <-> ckb, we still need to add eth-feature to theses transactions:

  • withdraw collateral
  • auction faulty when warranty
  • auction faulty when redeeming

of course, we will do this in other PRs

@ghost ghost added the wontfix This will not be worked on label Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant