Removes unused imports and unused parameter

This commit is contained in:
Daniel Cousens 2014-04-22 02:11:25 +10:00
parent 873dc95321
commit b95b5d5a04

View file

@ -2,9 +2,7 @@ var assert = require('assert')
var crypto = require('../').crypto var crypto = require('../').crypto
var ecdsa = require('..').ecdsa var ecdsa = require('..').ecdsa
var sec = require('../src/jsbn/sec.js') var sec = require('../src/jsbn/sec.js')
var BigInteger = require('../src/jsbn/jsbn.js')
var ecparams = sec("secp256k1") var ecparams = sec("secp256k1")
var rng = require('secure-random')
var BigInteger = require('..').BigInteger var BigInteger = require('..').BigInteger
var ECKey = require('..').ECKey var ECKey = require('..').ECKey
@ -19,7 +17,7 @@ describe('ecdsa', function() {
var obj = ecdsa.parseSigCompact(signature) var obj = ecdsa.parseSigCompact(signature)
var pubKey = new ECPubKey(ecdsa.recoverPubKey(obj.r, obj.s, Message.magicHash('1111'), obj.i)) var pubKey = new ECPubKey(ecdsa.recoverPubKey(obj.r, obj.s, Message.magicHash('1111'), obj.i))
assert.equal(pubKey.toHex(true), '02e8fcf4d749b35879bc1f3b14b49e67ab7301da3558c5a9b74a54f1e6339c334c') assert.equal(pubKey.toHex(), '02e8fcf4d749b35879bc1f3b14b49e67ab7301da3558c5a9b74a54f1e6339c334c')
}) })
}) })