src/Utils/Message.php
public function verify(): bool
    {
        $factory = new PublicKeyFactory;

        return $factory->fromHex($this->publicKey)->verify(
            new Buffer(hash('sha256', $this->message, true)),
            SignatureFactory::fromHex($this->signature)
        );
    }
public function verify(): bool
    {
        $factory = new PublicKeyFactory;

        return $factory->fromHex($this->publicKey)->verify(
            new Buffer(hash('sha256', $this->message, true)),
            SignatureFactory::fromHex($this->signature)
        );
    }
public function verify ( ) : bool { $ factory = new PublicKeyFactory ; return $ factory -> fromHex ( $ this -> publicKey ) -> verify ( new Buffer ( hash ( 'sha256' , $ this -> message , true ) ) , SignatureFactory :: fromHex ( $ this -> signature ) ) ; }
Verify the message contents.

@return bool
Verify the message contents .