/// Checks if a signature is valid. Used to validate off-chain transactions.
Checks if a signature is valid. Used to validate off-chain transactions.
Checks if a signature is valid . Used to validate off - chain transactions .
fn valid_signer(
            identity: &T::AccountId,
            signature: &T::Signature,
            msg: &[u8],
            signer: &T::AccountId,
        ) -> DispatchResult {
            // Owner or a delegate signer.
            Self::valid_delegate(&identity, b"x25519VerificationKey2018", &signer)?;
            Self::check_signature(&signature, &msg, &signer)
        }
fn valid_signer ( identity : & T :: AccountId , signature : & T :: Signature , msg : & [ u8 ] , signer : & T :: AccountId , ) -> DispatchResult { // Owner or a delegate signer. Self :: valid_delegate ( & identity , b" " , & signer ) ? ; Self :: check_signature ( & signature , & msg , & signer ) }
Checks if a signature is valid.
Checks if a signature is valid .
identity
&T::AccountId
signature
&T::Signature
msg
&[u8]
signer
&T::AccountId