src/script/script.js
function checksig(msg, sig, key) {
  return secp256k1.verify(msg, sig.slice(0, -1), key);
}
function checksig(msg, sig, key) {
  return secp256k1.verify(msg, sig.slice(0, -1), key);
}
function checksig ( msg , sig , key ) { return secp256k1 . verify ( msg , sig . slice ( 0 , - 1 ) , key ) ; }
Verify a signature, taking into account sighash type.
@param {Buffer} msg - Signature hash.
@param {Buffer} sig
@param {Buffer} key
@returns {Boolean}
Verify a signature taking into account sighash type .