Fix bug in JSDescription.withWitness()
This commit is contained in:
parent
f0c94a2e94
commit
ad4dd9d275
|
@ -276,7 +276,7 @@ JSDescription.withWitness = function (inputs, outputs, pubKeyHash, vpubOld, vpub
|
||||||
jsdesc.ciphertexts.push(pt.encrypt(encryptor, outputs[i].addr.pk_enc))
|
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
|
// Authenticate hSig with each of the input
|
||||||
// spending keys, producing macs which protect
|
// spending keys, producing macs which protect
|
||||||
|
|
Loading…
Reference in New Issue