You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yangby-cryptape
changed the title
Multi-transactions proof for transactions in the same block.
Multi-txoutputs proof for tx ouputs in the same block.
Apr 20, 2024
Description
The bitcoin output proof1 supports multi-outputs to be proven in single proof.2
How to implement this?
First, a new struct for the proof struct is required.
https://github.com/ckb-cell/ckb-bitcoin-spv/blob/27953a4c6b1e898396c47091a6b5bc03c782a238/verifier/schemas/types.mol#L75-L80
Multi-indexes should be contained in the proof.
Then, update the existed API or create a new API to verify the outputs.3
https://github.com/ckb-cell/ckb-bitcoin-spv/blob/27953a4c6b1e898396c47091a6b5bc03c782a238/verifier/src/types/extension/packed.rs#L319-L329
https://github.com/ckb-cell/ckb-bitcoin-spv/blob/27953a4c6b1e898396c47091a6b5bc03c782a238/verifier/src/types/extension/packed.rs#L334-L347
Footnotes
Partial merkle tree in official Bitcoin implementation ↩
RPC method
gettxoutproof
↩Verify outputs with rust API ↩
The text was updated successfully, but these errors were encountered: