function verify(transaction, signature, publicKey, inputIndex, scriptCode, satoshisBuffer, signingMethod) {
  $.checkArgument(!_.isUndefined(transaction));
  $.checkArgument(!_.isUndefined(signature) && !_.isUndefined(signature.nhashtype));
  signingMethod = signingMethod || 'ecdsa';

  if (signingMethod === 'ecdsa') {
    let hashbuf = sighash(transaction, signature.nhashtype, inputIndex, scriptCode, satoshisBuffer);
    return ECDSA.verify(hashbuf, signature, publicKey);
  }
  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' (future signing method)
@return {boolean}