Proof Methodology
Receipt by Notifier
struct ReceiptPayload {
uint16 srcChainId;
bytes rlpBlock;
bytes rlpReceipt;
bytes rlpIndex;
bytes rlpStack;
uint256[] logIndexes;
}The notifier accesses the verifier of the destination chain.
Executes
function forwardReceiptParameter description
bytes rlpBlock; The blockheader is RLP (Recursive Length Prefix) encoded.
bytes rlpReceipt;
bytes rlpIndex; The index of the target transaction included in the block (equals the receipt index).
bytes rlpStack; The obtained MP-tree stack is used as rlpStack.
The following MP (Merkle Patricia) verify is conducted.
Proof.verify( keccak256(payload.rlpReceipt), payload.rlpIndex, payload.rlpStack, header.receiptsRoot )
Last updated