GithubHelp home page GithubHelp logo

Private Key Safety about vanity-eth HOT 3 CLOSED

bokub avatar bokub commented on August 30, 2024 1
Private Key Safety

from vanity-eth.

Comments (3)

bokub avatar bokub commented on August 30, 2024 10

Hi,

The article says :

Profanity used a random 32-bit vector to seed 256-bit private keys and suspected it could be unsafe

Then, you say:

due to vanity-ETH also using 32 bit seeds

This is completely wrong, you shouldn't claim such things without doing some research first. As you can see in the code below, Vanity-ETH, generates random keys from scratch, without a seed:

https://github.com/bokub/vanity-eth/blob/master/src/js/vanity.js#L21-L25

randomBytes(32) creates a 32 bytes (=256 bits) random key, which is the right thing to do for private key safety.

from vanity-eth.

cryptoDevTrader avatar cryptoDevTrader commented on August 30, 2024 1

Good to know, thank you. I was unsure if this was the case, thus the use of the words “appears as though” and “may be”. I’m glad I was wrong. Thank you for the clarification!

from vanity-eth.

hippopotato avatar hippopotato commented on August 30, 2024

@cryptoDevTrader hi, can you link to the specific code where 32-bit seeds is used to seed the generator? from what I can tell, vanity-ETH uses the randombytes library which uses crypto.randomBytes in node.js, and crypto.getRandomValues in the browser

from vanity-eth.

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.