pub fn check_justification<B: Block>(
	authorities: &[AuthorityId],
	parent: B::Hash,
	just: UncheckedJustification<B::Hash>
) -> Result<RhdJustification<B::Hash>, UncheckedJustification<B::Hash>> {
	let vote: Action<B, B::Hash> = Action::Commit(just.0.round_number as u32, just.0.digest.clone());
	let message = localized_encode(parent, vote);

	check_justification_signed_message(authorities, &message[..], just)
}
/// Check a full justification for a header hash.
/// Provide all valid authorities.
///
/// On failure, returns the justification back.
Check a full justification for a header hash.
Provide all valid authorities.

On failure, returns the justification back.
Check a full justification for a header hash . Provide all valid authorities . On failure returns the justification back .
pub fn check_justification<B: Block>(
	authorities: &[AuthorityId],
	parent: B::Hash,
	just: UncheckedJustification<B::Hash>
) -> Result<RhdJustification<B::Hash>, UncheckedJustification<B::Hash>> {
	let vote: Action<B, B::Hash> = Action::Commit(just.0.round_number as u32, just.0.digest.clone());
	let message = localized_encode(parent, vote);
	check_justification_signed_message(authorities, &message[..], just)
}
pub fn check_justification < B : Block > ( authorities : & [ AuthorityId ] , parent : B :: Hash , just : UncheckedJustification < B :: Hash > ) -> Result < RhdJustification < B :: Hash > , UncheckedJustification < B :: Hash > > { let vote : Action < B , B :: Hash > = Action :: Commit ( just . 0 . round_number as u32 , just . 0 . digest . clone ( ) ) ; let message = localized_encode ( parent , vote ) ; check_justification_signed_message ( authorities , & message [ .. ] , just ) }
Check a full justification for a header hash.
Check a full justification for a header hash .
authorities
&[AuthorityId]
parent
B::Hash
just
UncheckedJustification<B::Hash>
authorities
&[AuthorityId]
parent
B::Hash
just
UncheckedJustification<B::Hash>