pub fn verify(self, pk: &PublicKey, message: &Message) -> Result<(), Error> {
            // TODO evaluate if its worthy to use native verify
            //
            // https://github.com/FuelLabs/fuel-crypto/issues/4

            self.recover(message)
                .and_then(|pk_p| (pk == &pk_p).then(|| ()).ok_or(Error::InvalidSignature))
        }
/// Verify a signature produced by [`Signature::sign`]
///
/// It takes the signature as owned because this operation is not idempotent. The taken
/// signature will not be recoverable. Signatures are meant to be single use, so this
/// avoids unnecessary copy.
Verify a signature produced by [`Signature::sign`]
It takes the signature as owned because this operation is not idempotent. The taken
signature will not be recoverable. Signatures are meant to be single use, so this
avoids unnecessary copy.
Verify a signature produced by [ ` Signature :: sign ` ] It takes the signature as owned because this operation is not idempotent . The taken signature will not be recoverable . Signatures are meant to be single use so this avoids unnecessary copy .
pub fn verify(self, pk: &PublicKey, message: &Message) -> Result<(), Error> {
            // TODO evaluate if its worthy to use native verify
            //
            // https://github.com/FuelLabs/fuel-crypto/issues/4
            self.recover(message)
                .and_then(|pk_p| (pk == &pk_p).then(|| ()).ok_or(Error::InvalidSignature))
        }
pub fn verify ( self , pk : & PublicKey , message : & Message ) -> Result < ( ) , Error > { // TODO evaluate if its worthy to use native verify // // https://github.com/FuelLabs/fuel-crypto/issues/4 self . recover ( message ) . and_then ( | pk_p | ( pk == & pk_p ) . then ( | | ( ) ) . ok_or ( Error :: InvalidSignature ) ) }
Verify a signature produced by [`Signature::sign`]
It takes the signature as owned because this operation is not idempotent.
Verify a signature produced by [ ` Signature :: sign ` ] It takes the signature as owned because this operation is not idempotent .
self
pk
&PublicKey
message
&Message