tests: actual expected form

This commit is contained in:
Daniel Cousens 2017-12-09 10:05:12 +11:00
parent 2081b9148e
commit 4267527997

View file

@ -234,7 +234,7 @@ describe('bitcoinjs-lib (transactions)', function () {
var ss = bitcoin.ECSignature.parseScriptSignature(scriptSig.signature)
var hash = tx.hashForSignature(i, prevOutScript, ss.hashType)
assert.strictEqual(keyPair.getPublicKeyBuffer().toString('hex'), scriptSig.pubKey.toString('hex'))
assert.strictEqual(scriptSig.pubKey.toString('hex'), keyPair.getPublicKeyBuffer().toString('hex'))
assert.strictEqual(keyPair.verify(hash, ss.signature), true)
})
})