Code Monkey home page Code Monkey logo

Comments (5)

indutny avatar indutny commented on August 20, 2024

@fruiz500 I think you could drop it to 145kb (for un-minimized) and to 79kb (minimized) by removing the pre-computed values for secp256k1 curve. Let me see if it could be improved even further...

from elliptic.

indutny avatar indutny commented on August 20, 2024

But important thing is that it actually compresses down to 39kb with gzip, so it should not be a big deal after all.

Without precomputed secp256k1 it is just 20kb after gzip. Do you want me to distribute it too?

from elliptic.

indutny avatar indutny commented on August 20, 2024

Anyway, published https://github.com/indutny/elliptic/blob/master/dist/elliptic-small.min.js 79kb minified code for you! :)

from elliptic.

fruiz500 avatar fruiz500 commented on August 20, 2024

Thanks Fedor, but minimized code won't do. In order to make my own code as free from tampering at the source as possible, I am adding all the libraries used into a single html file, and then I publish the md5, sha1 and sha256 of the result, plus a video of myself reading the sha256.

If I add a minimized portion to the code, those auditing it will complain that it is un-auditable. They have complained about other parts in the past, forcing me to add libraries with full comments, etc.

The only functions I am going to need are those related to Diffie-Hellman and digital signatures. maybe there is a way to get those separated out of the rest?

from elliptic.

indutny avatar indutny commented on August 20, 2024

@fruiz500 there is not much except it :) Anyway gzip'ed dist/elliptic-small.js is very small (35kb). I assume that you can gzip your distribution and read out loud sha256 hash of it without sacrificing the code readability :)

from elliptic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.