Function sp_consensus_grandpa::sign_message
source · pub fn sign_message<H, N>(
keystore: KeystorePtr,
message: Message<H, N>,
public: AuthorityId,
round: RoundNumber,
set_id: SetId
) -> Option<SignedMessage<H, N, AuthoritySignature, AuthorityId>>where
H: Encode,
N: Encode,
Expand description
Localizes the message to the given set and round and signs the payload.