function verify(transaction, signature, publicKey, inputIndex, subscript, signingMethod) {
  $.checkArgument(!_.isUndefined(transaction), 'Transaction Undefined');
  $.checkArgument(!_.isUndefined(signature) && !_.isUndefined(signature.nhashtype), "Signature Undefined");

  signingMethod = signingMethod || 'ecdsa';
  if (signingMethod === 'ecdsa') {
    var hashbuf = sighash(transaction, signature.nhashtype, inputIndex, subscript);
    return ECDSA.verify(hashbuf, signature, publicKey, { endian: 'little' });
  }
  throw new Error('signingMethod not supported ', signingMethod);
}
Verify a signature

@name Signing.verify
@param {Transaction} transaction
@param {Signature} signature
@param {PublicKey} publicKey
@param {number} inputIndex
@param {Script} subscript
@param {String} signingMethod - method used to sign - 'ecdsa' or 'schnorr'
@return {boolean}