sp_consensus_subspace::digests

Function extract_pre_digest

source
pub fn extract_pre_digest<Header>(
    header: &Header,
) -> Result<PreDigest<PublicKey>, Error>
where Header: HeaderT,
Expand description

Extract the Subspace pre digest from the given header. Pre-runtime digests are mandatory, the function will return Err if none is found.