ECKey: remove unnecessary slice
This commit is contained in:
parent
cd326921bc
commit
aca565239a
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ ECKey.fromWIF = function(string) {
|
||||||
|
|
||||||
assert.equal(payload.length, 32, 'Invalid WIF payload length')
|
assert.equal(payload.length, 32, 'Invalid WIF payload length')
|
||||||
|
|
||||||
var D = BigInteger.fromBuffer(payload.slice(0, 32))
|
var D = BigInteger.fromBuffer(payload)
|
||||||
return new ECKey(D, compressed)
|
return new ECKey(D, compressed)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue