mtx: fix scriptVector for p2pk. fixes #93.

This commit is contained in:
Christopher Jeffrey 2016-11-02 21:21:19 -07:00
parent f1b266e53b
commit e68538633d
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -349,7 +349,7 @@ MTX.prototype.scriptVector = function scriptVector(prev, vector, ring) {
// P2PK
if (prev.isPubkey()) {
if (!utils.equal(prev.get(1), ring.publicKey))
if (!utils.equal(prev.get(0), ring.publicKey))
return false;
vector.set(0, opcodes.OP_0);