Fix bug in JSDescription.withWitness()

This commit is contained in:
Jack Grigg 2017-06-09 20:22:18 +12:00
parent f0c94a2e94
commit ad4dd9d275
No known key found for this signature in database
GPG Key ID: 665DBCD284F7DAFF
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ JSDescription.withWitness = function (inputs, outputs, pubKeyHash, vpubOld, vpub
jsdesc.ciphertexts.push(pt.encrypt(encryptor, outputs[i].addr.pk_enc))
})
jsdesc.ephemeralKey = encryptor.epk
jsdesc.onetimePubKey = encryptor.epk
// Authenticate hSig with each of the input
// spending keys, producing macs which protect