ECSignature: rename parsing functions to parse*

This commit is contained in:
Daniel Cousens 2014-06-17 00:26:16 +10:00
parent f42993297c
commit 1f0a54fb41
5 changed files with 11 additions and 11 deletions

View file

@ -314,7 +314,7 @@ Transaction.prototype.setInputScript = function(index, script) {
// FIXME: could be validateInput(index, prevTxOut, pub)
Transaction.prototype.validateInput = function(index, prevOutScript, pubKey, buffer) {
var parsed = ECSignature.fromScriptSignature(buffer)
var parsed = ECSignature.parseScriptSignature(buffer)
var hash = this.hashForSignature(prevOutScript, index, parsed.hashType)
return pubKey.verify(hash, parsed.signature)