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