Giter VIP home page Giter VIP logo

Comments (11)

jprichardson avatar jprichardson commented on May 31, 2024 1

These seems solid now that I think about it. What about moving compressed to options as well? This really simplifies things especially if we have sane defaults IMHO.

from bip38.

dalitsairio avatar dalitsairio commented on May 31, 2024 1

@youssefgh yes, this would solve your problem. If this feature were developed, you would just have to pass addressPrefix: 0x6F and you'd be fine for the testnet. I'd appreciate an options parameter a lot 💪

from bip38.

jprichardson avatar jprichardson commented on May 31, 2024

I'm indifferent... but why?

from bip38.

dcousens avatar dcousens commented on May 31, 2024

They are rarely used positional arguments, and we don't actually have an addressPrefix argument at the moment.

from bip38.

dcousens avatar dcousens commented on May 31, 2024

Someone else can re-open this if they need it - I don't have the time to follow up, and the API is great as is 👍

from bip38.

dcousens avatar dcousens commented on May 31, 2024

@jprichardson agreed, compressed by default 👍

from bip38.

youssefgh avatar youssefgh commented on May 31, 2024

Is this supposed to add network to params ? because right now decrypting a testnet encrypted key result in an error
Thinks for your efforts ! you rock guys 👍

from bip38.

sondreb avatar sondreb commented on May 31, 2024

What is the status on this?

CryptoCoinJS did implement a .version field that supported specifying the required network details, while BitcoinJS does not support alternative networks.

Is there a way to get hold of the old CryptoCoinJS repo?

Example from this URL:
http://cryptocoinjs.com/modules/currency/bip38/

var bip38 = new Bip38();
bip38.version = {private: 0x80, public: 0x0};

There is no such support in BitcoinJS bip38?

from bip38.

sondreb avatar sondreb commented on May 31, 2024

I made an implementation using function parameter, as oppose to the old 1.4.0 version which had a version field on the object instance. Please review, and it should close this issue.

from bip38.

Ashtonulliac avatar Ashtonulliac commented on May 31, 2024

bc1qchl0dursnqqjwzma38kqfkhumtju5jjnzqwgx4

from bip38.

junderw avatar junderw commented on May 31, 2024

Re: AddressPrefix, I think no. My reasoning is here: #44 (comment)

Re: switching from positional to an opts object argument I am for. It would be a breaking change.

However, at this point since BIP38 is discouraged for use by most core devs, This library is mostly here for legacy purposes.

I will go ahead and close this issue.

from bip38.

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.