src/Transactions/Transaction.php
public function secondVerify(string $secondPublicKey): bool
    {
        $factory = new PublicKeyFactory;
        $secondPublicKey = $factory->fromHex($secondPublicKey);

        return $secondPublicKey->verify(
            Hash::sha256($this->toBytes(false)),
            SignatureFactory::fromHex($this->signSignature)
        );
    }
public function secondVerify(string $secondPublicKey): bool
    {
        $factory = new PublicKeyFactory;
        $secondPublicKey = $factory->fromHex($secondPublicKey);

        return $secondPublicKey->verify(
            Hash::sha256($this->toBytes(false)),
            SignatureFactory::fromHex($this->signSignature)
        );
    }
public function secondVerify ( string $ secondPublicKey ) : bool { $ factory = new PublicKeyFactory ; $ secondPublicKey = $ factory -> fromHex ( $ secondPublicKey ) ; return $ secondPublicKey -> verify ( Hash :: sha256 ( $ this -> toBytes ( false ) ) , SignatureFactory :: fromHex ( $ this -> signSignature ) ) ; }
Verify the transaction with a second public key.

@param string $secondPublicKey

@return bool
Verify the transaction with a second public key .