This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
runtime-api/ParachainHost: generate_key_ownership_proof #6560
Labels
T5-parachains_protocol
This PR/Issue is related to Parachains features and protocol changes.
Part of paritytech/substrate#5947.
This will be similar to
polkadot/runtime/kusama/src/lib.rs
Lines 1804 to 1813 in 8801373
The
AuthorityId
in this case could beValidatorId
.The caller of this API will need to pass the relay_parent of the candidate when
CandidateIncluded
event was emitted. This way we can guarantee that the session_index of that relay_parent is the one we need for the key ownership proof.Consideration: note that
session_index
from the parachains perspective and fromsesssion
(/historical
) can differ. Make sure we're not making an off-by-one error on session boundaries when calculating the key ownership proof.Alternatively, implement a fix for paritytech/polkadot-sdk#279.
The text was updated successfully, but these errors were encountered: