|
@ -110,6 +110,7 @@ function isSmallIntOp(opcode) { |
|
|
Script.prototype.isMultiSig = function() { |
|
|
Script.prototype.isMultiSig = function() { |
|
|
return (this.chunks.length > 3 && |
|
|
return (this.chunks.length > 3 && |
|
|
isSmallIntOp(this.chunks[0]) && |
|
|
isSmallIntOp(this.chunks[0]) && |
|
|
|
|
|
Buffer.isBuffer(this.chunks[1]) && |
|
|
isSmallIntOp(this.chunks[this.chunks.length - 2]) && |
|
|
isSmallIntOp(this.chunks[this.chunks.length - 2]) && |
|
|
this.chunks[this.chunks.length - 1] == Opcode.map.OP_CHECKMULTISIG); |
|
|
this.chunks[this.chunks.length - 1] == Opcode.map.OP_CHECKMULTISIG); |
|
|
}; |
|
|
}; |
|
|