Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spv #42

Open
wants to merge 58 commits into
base: master
Choose a base branch
from
Open

Spv #42

wants to merge 58 commits into from

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
contracts/toCKB-typescript/Cargo.toml Outdated Show resolved Hide resolved
contracts/toCKB-typescript/src/utils/tools.rs Outdated Show resolved Hide resolved
contracts/toCKB-typescript/src/utils/tools.rs Outdated Show resolved Hide resolved
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
Contributor

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

contracts/toCKB-typescript/src/utils/tools.rs.bak Outdated Show resolved Hide resolved
tests/src/toCKB_typescript/utils/case_builder.rs Outdated Show resolved Hide resolved
types/Cargo.toml Outdated Show resolved Hide resolved
types/Cargo.toml Outdated Show resolved Hide resolved
types/schemas/tockb_cell_data.mol Outdated Show resolved Hide resolved
@nolanxyg
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.

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

@nolanxyg nolanxyg 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.

2 participants