Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency optimizations #72

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pelle
Copy link

@pelle pelle commented Mar 9, 2016

This does the following

  • bump ethereumjs-tx to 1.1.0
  • Whenever possible use same Crypto library as used in ethereumjs-util
  • Use nacl's randomBytes instead of Bitcore.Random
  • Removes parse-asn from browserified bundle

It lowers the size of the minimized version from 160k to 105k

@slothbag
Copy link

I just tried out the prebuilt lightwallet.min.js from this PR and it locks up my browser upon txutil.functionTx & signTx.

@@ -284,7 +281,7 @@ KeyStore.generateRandomSeed = function(extraEntropy) {
}
else if (typeof extraEntropy === 'string') {
var entBuf = new Buffer(extraEntropy);
var randBuf = Random.getRandomBuffer(256 / 8);
var randBuf = nacl.randomBytes(256 / 8);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this work? It's of type Uint8Array and not Buffer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants