/**
  * @param OutputBuf $outBuf
  * @return TransactionOutput
  */
 private function bufToOutput(OutputBuf $outBuf)
 {
     return new TransactionOutput($outBuf->getAmount(), new Script(new Buffer($outBuf->getScript())));
 }
 /**
  * @param OutputBuf $outBuf
  * @return TransactionOutput
  */
 private function bufToOutput(OutputBuf $outBuf)
 {
     $script = ScriptFactory::create(new Buffer($outBuf->getScript()));
     $output = new TransactionOutput($outBuf->getAmount(), $script);
     return $output;
 }