remove crypto hash transition code
This commit is contained in:
parent
c17c6f9291
commit
f545ed1279
3 changed files with 2 additions and 9 deletions
test
|
@ -102,7 +102,7 @@ describe('Script', function() {
|
|||
it('should create valid redeemScript', function() {
|
||||
var redeemScript = Script.createMultisigScriptPubKey(2, pubKeys)
|
||||
|
||||
var hash160 = crypto.hash160(redeemScript.buffer)
|
||||
var hash160 = crypto.hash160(new Buffer(redeemScript.buffer))
|
||||
var multisigAddress = new Address(hash160, networks.bitcoin.scriptHash)
|
||||
|
||||
assert.equal(multisigAddress.toString(), '32vYjxBb7pHJJyXgNk8UoK3BdRDxBzny2v')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue