workers: fix ecsign.

This commit is contained in:
Christopher Jeffrey 2017-02-21 22:33:42 -08:00
parent cb5fa84042
commit 89160bdfa8
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -392,7 +392,7 @@ WorkerPool.prototype.ecVerify = co(function* ecVerify(msg, sig, key) {
*/
WorkerPool.prototype.ecSign = co(function* ecSign(msg, key) {
var packet = new packets.SignPacket(msg, key);
var packet = new packets.ECSignPacket(msg, key);
var result = yield this.execute(packet, -1);
return result.sig;
});