Giter Site home page Giter Site logo

Can't create new ipns record about js-ipns HOT 5 CLOSED

darkrain avatar darkrain commented on August 21, 2024
Can't create new ipns record

from js-ipns.

Comments (5)

darkrain avatar darkrain commented on August 21, 2024 1

@vasco-santos Thank you form Russia and our team)

from js-ipns.

vasco-santos avatar vasco-santos commented on August 21, 2024

Hey @darkrain

Can you confirm me that you are using [email protected]?

from js-ipns.

darkrain avatar darkrain commented on August 21, 2024

Hey @darkrain

Can you confirm me that you are using [email protected]?

Yep

from js-ipns.

vasco-santos avatar vasco-santos commented on August 21, 2024

So, the problem is that [email protected] uses the newest async API:

https://github.com/libp2p/js-libp2p-crypto/blob/master/CHANGELOG.md#features

In this context, when you do generateKeyPair, the resulting keys will have the sign function, which uses the new API. This way, js-ipns tries to sign using the oldest libp2p-crypto API, that is, using a callback. If you check the package.json in this repo, you can see that we have [email protected], which still works on a callback way.

TLDR: we are on a process of refactoring all our codebase to use an async API and get rid of callbacks.
Apparently, all the blocking dependencies to get this module refactored are already merged and released, so we will move with ipfs/js-ipns#19, which will fix this issue for you

from js-ipns.

vasco-santos avatar vasco-santos commented on August 21, 2024

@darkrain just released the new version of [email protected].

Will close the issue now, but let me know if this did not solve your problem

from js-ipns.

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.