Function sp_consensus_grandpa::check_message_signature
source · pub fn check_message_signature<H, N>(
message: &Message<H, N>,
id: &AuthorityId,
signature: &AuthoritySignature,
round: RoundNumber,
set_id: SetId,
) -> boolwhere
H: Encode,
N: Encode,
Expand description
Check a message signature by encoding the message as a localized payload and verifying the provided signature using the expected authority id.