Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
Merge branch 'cash' of https://github.com/bitpay/bitcore-lib into cash
Browse files Browse the repository at this point in the history
  • Loading branch information
micahriggan committed May 1, 2018
2 parents 029f231 + cc4a7ae commit 44b6521
Show file tree
Hide file tree
Showing 14 changed files with 2,895 additions and 1,619 deletions.
12 changes: 0 additions & 12 deletions lib/crypto/bn.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,18 +172,6 @@ BN.prototype.toScriptNumBuffer = function() {
});
};

BN.prototype.gt = function(b) {
return this.cmp(b) > 0;
};

BN.prototype.gte = function(b) {
return this.cmp(b) >= 0;
};

BN.prototype.lt = function(b) {
return this.cmp(b) < 0;
};

BN.trim = function(buf, natlen) {
return buf.slice(natlen - buf.length, buf.length);
};
Expand Down
2 changes: 1 addition & 1 deletion lib/crypto/signature.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ Signature.prototype.hasDefinedHashtype = function() {
return false;
}
// accept with or without Signature.SIGHASH_ANYONECANPAY by ignoring the bit
var temp = this.nhashtype & ~Signature.SIGHASH_ANYONECANPAY;
var temp = this.nhashtype & 0x1F
if (temp < Signature.SIGHASH_ALL || temp > Signature.SIGHASH_SINGLE) {
return false;
}
Expand Down
7 changes: 4 additions & 3 deletions lib/opcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ Opcode.map = {

// splice ops
OP_CAT: 126,
OP_SUBSTR: 127,
OP_LEFT: 128,
OP_RIGHT: 129,
OP_SPLIT: 127,
OP_NUM2BIN: 128,
OP_BIN2NUM: 129,
OP_SIZE: 130,

// bit logic
Expand Down Expand Up @@ -197,6 +197,7 @@ Opcode.map = {
OP_CHECKMULTISIGVERIFY: 175,

OP_CHECKLOCKTIMEVERIFY: 177,
OP_CHECKSEQUENCEVERIFY: 178,

// expansion
OP_NOP1: 176,
Expand Down
Loading

0 comments on commit 44b6521

Please sign in to comment.