From aca565239a985da27969ddf527ecade843baee5d Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Sat, 17 May 2014 17:06:02 +1000 Subject: [PATCH] ECKey: remove unnecessary slice --- src/eckey.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eckey.js b/src/eckey.js index 0cb1d45..b109ae3 100644 --- a/src/eckey.js +++ b/src/eckey.js @@ -35,7 +35,7 @@ ECKey.fromWIF = function(string) { 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) }