public void verify ( ) throws VerificationException { final Transaction fromTx = getOutpoint ( ) . fromTx ; long spendingIndex = getOutpoint ( ) . getIndex ( ) ; checkNotNull ( fromTx , "Not connected" ) ; final TransactionOutput output = fromTx . getOutput ( ( int ) spendingIndex ) ; verify ( output ) ; }
For a connected transaction runs the script against the connected pubkey and verifies they are correct .