Giter VIP home page Giter VIP logo

Comments (7)

coder11 avatar coder11 commented on June 11, 2024

We a looking for a way to implement more key types in the future, so simple fromSeed would be confusing. fromEd25519SK correctly describes what the method is actually doing. Is there any specific reason why you want this to be renamed back?

from js-client.

folex avatar folex commented on June 11, 2024

"seed" is a confusing word, overloaded with meanings. Also, it's not used in public-key cryptography, ed25519 algorithm, or other papers, AFAIK.

"seed" usually refers to PRNG's seed. But some cryptography libraries use it incorrectly to mean "private key". This just adds to the confusion, and we want to avoid that.

from js-client.

dzmitry-lahoda avatar dzmitry-lahoda commented on June 11, 2024

the string passed unto subject method is not ed25.. key, from that string i can produce any key. so that is randonmess, so that is seed.

from js-client.

folex avatar folex commented on June 11, 2024

I understand where you coming from. I've been confused by this a lot, too.

The thing is, any byte sequence of length 32 is a valid Ed25519 key. I find that VERY surprising and amusing, but that's what it is.

And that's the reason why we've renamed the method to fromEd25519SK. fromSeed was incorrect: it's not a seed (whatever that word should mean), it's a private key.

from js-client.

dzmitry-lahoda avatar dzmitry-lahoda commented on June 11, 2024

but i can create key not from 32 bytea, but less or more. so i type 100 byte string and get 33 byte key.

from js-client.

dzmitry-lahoda avatar dzmitry-lahoda commented on June 11, 2024

any key is produced from seeds, may that was api that hides that?

from js-client.

coder11 avatar coder11 commented on June 11, 2024

I understand where you coming from. I've been confused by this a lot, too.

The thing is, any byte sequence of length 32 is a valid Ed25519 key. I find that VERY surprising and amusing, but that's what it is.

And that's the reason why we've renamed the method to fromEd25519SK. fromSeed was incorrect: it's not a seed (whatever that word should mean), it's a private key.

Thus, closing the issue

from js-client.

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.