pub fn check_signature<P>( signature: &MultiSignature, signer: AccountId32, payload: &P, ) -> boolwhere P: Encode + EIP712Encode,