-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat: add ckb mbt proof verify precompile contract #1578
Conversation
This contract only supports verify raw_transaction, but users may want to also verify the witness transaction(to ensure the witness part is valid on CKB). This contract must support merkle verify the I suggest to add another input field If the |
Sounds good. |
What this PR does / why we need it?
This PR add ckb-mbt(aka merkle binary tree) proof verify precompile contract. The input struct is
Because of the transactions_root in a CKB block header is consist of two layers:
So apart from the transactions, witnesses root also needs. And it should be use ABI encode to bytes such as:
What is the impact of this PR?
No Breaking Change
PR relation:
CI Settings
CI Usage
Tip: Check the CI you want to run below, and then comment
/run-ci
.CI Switch
CI Description