Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

How to verify the execution proof of an extrinsic #10987

Answered by liuchengxu
liuchengxu asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks to @cheme suggested in #10922 (comment), take apply_extrinsic as an example, one solution here is to an identical API of apply_extrinsic but call the storage root at the end and use it as the return value(might be useful to have a look at #11046 to decode the return value properly). And then we can interpret the return value as post_state_root and compare it with the one received from the network.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@liuchengxu
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by liuchengxu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants