|
@ -54,14 +54,14 @@ describe('MultiSigScriptHashInput', function() { |
|
|
.to(address, 1000000); |
|
|
.to(address, 1000000); |
|
|
var input = transaction.inputs[0]; |
|
|
var input = transaction.inputs[0]; |
|
|
|
|
|
|
|
|
_.all(input.publicKeysWithoutSignature(), function(publicKeyMissing) { |
|
|
_.every(input.publicKeysWithoutSignature(), function(publicKeyMissing) { |
|
|
var serialized = publicKeyMissing.toString(); |
|
|
var serialized = publicKeyMissing.toString(); |
|
|
return serialized === public1.toString() || |
|
|
return serialized === public1.toString() || |
|
|
serialized === public2.toString() || |
|
|
serialized === public2.toString() || |
|
|
serialized === public3.toString(); |
|
|
serialized === public3.toString(); |
|
|
}).should.equal(true); |
|
|
}).should.equal(true); |
|
|
transaction.sign(privateKey1); |
|
|
transaction.sign(privateKey1); |
|
|
_.all(input.publicKeysWithoutSignature(), function(publicKeyMissing) { |
|
|
_.every(input.publicKeysWithoutSignature(), function(publicKeyMissing) { |
|
|
var serialized = publicKeyMissing.toString(); |
|
|
var serialized = publicKeyMissing.toString(); |
|
|
return serialized === public2.toString() || |
|
|
return serialized === public2.toString() || |
|
|
serialized === public3.toString(); |
|
|
serialized === public3.toString(); |
|
|