Giter Site home page Giter Site logo

Implement ed25519 HD keyring about iov-core HOT 8 CLOSED

iov-one avatar iov-one commented on July 28, 2024 1
Implement ed25519 HD keyring

from iov-core.

Comments (8)

ethanfrey avatar ethanfrey commented on July 28, 2024

These may be useful links:

from iov-core.

will-iov avatar will-iov commented on July 28, 2024

I've used https://github.com/bitcoinjs/bip39 before: solid with some multi-language support.

from iov-core.

ethanfrey avatar ethanfrey commented on July 28, 2024

Builds upon #52

from iov-core.

webmaster128 avatar webmaster128 commented on July 28, 2024

The signatures from the keys should be verifiable with the normal ed25519 keyring #23

Could you elaborate what you mean by that @ethanfrey? What use case do you have in mind here? Right now we have no concept of verifying other people's signatures in a Keyring

from iov-core.

ethanfrey avatar ethanfrey commented on July 28, 2024

At one point, I thought we would expose verify in a keyring, but this is done in @iov/crypto:Ed25519.

I guess you are just using the Slip0010 class to create a private key to feed into the above class, so of course the signatures should verify with the same class. I guess a proper rewording would just be:

"Verify that you can generate a key in this KeyRing, properly sign a message, and verify the signature with @iov/crypto:Ed25519 using the public key returned from the keyring. This serves mainly as an example of normal usage of the HD Keyring, as well as a sanity check."

Does that work? If so, I will update the issue text.

from iov-core.

webmaster128 avatar webmaster128 commented on July 28, 2024

Thanks for clarification, this makes sense. Given that Slip0010 outputs private keys only, the rest is done using @iov/crypto:Ed25519 anyway. So the requested feature comes for free :)

from iov-core.

webmaster128 avatar webmaster128 commented on July 28, 2024

Status: the heavy work is done. Just the proper derivation paths are missing

from iov-core.

ethanfrey avatar ethanfrey commented on July 28, 2024

Yeah, looks like 95% done, just a bit of polish.
But then, I am not 100% sure how the polish would look.
Maybe we can leave this as is and polish it when we have a concrete issue to use it with multiple chains

from iov-core.

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.