solved p2pk comparison in mtx

This commit is contained in:
José Pedro Rusakiewicz 2016-11-04 15:23:17 +00:00
parent 4823e71066
commit c9aada2420

View File

@ -486,7 +486,7 @@ MTX.prototype.signVector = function signVector(prev, vector, sig, ring) {
// P2PK
if (prev.isPubkey()) {
// Make sure the pubkey is ours.
if (!utils.equal(ring.keyHash, prev.get(0)))
if (!utils.equal(ring.publicKey, prev.get(0)))
return false;
// Already signed.