Browse Source

ECSignature: compress assertion statement

hk-custom-address
Daniel Cousens 10 years ago
parent
commit
a5a9a96ba2
  1. 3
      src/ecsignature.js

3
src/ecsignature.js

@ -71,8 +71,7 @@ ECSignature.parseScriptSignature = function(buffer) {
var hashType = buffer.readUInt8(buffer.length - 1)
var hashTypeMod = hashType & ~0x80
assert(hashTypeMod > 0x00, 'Invalid hashType')
assert(hashTypeMod < 0x04, 'Invalid hashType')
assert(hashTypeMod > 0x00 && hashTypeMod < 0x04, 'Invalid hashType')
return {
signature: ECSignature.fromDER(buffer.slice(0, -1)),

Loading…
Cancel
Save