Merge pull request #95 from freakotter/master
Solved p2pk ownership comparison in mtx
This commit is contained in:
commit
212c633d44
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user