ECSignature: rename parsing functions to parse*
This commit is contained in:
parent
f42993297c
commit
1f0a54fb41
5 changed files with 11 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue