Skip to content

Comparison with... #1

Open
Open

Description

@dcousens

Activity

  1. calvinmetcalf commented on Nov 28, 2018

    @calvinmetcalf
    Contributor
  2. calvinmetcalf commented on Nov 28, 2018

    @calvinmetcalf
    Contributor

    so to unpack it a bit since this would be installed by default in browserify and webpack anything with a build step would be right out because that would get triggered every time those packages are installed, this right off the bat eliminates node-scrypt and scrypt from being useful.

    scryptsy could be used but it has the progresscallback stuff which doesn't fit into the node api and would be deadweight and doesn't let us use async pbkdf2 (which leverages browser native crypto) since it always uses sync crypto. Lastly scryptsy calls in the whole crypto module which is fine if it's something you're using in node, but in the browser that would include in all the other parts of crypto preventing you from requiring it in on its own, also it could make a circular dependency issue.

  3. dcousens commented on Nov 28, 2018

    @dcousens
    MemberAuthor

    I don't think any of those issues are unresolvable, I think we could have trivially exposed a Node-like interface by default, and then the progressCallback stuff as a separate export?

  4. calvinmetcalf commented on Nov 29, 2018

    @calvinmetcalf
    Contributor

    ideally we'd want https://github.com/cryptocoinjs/scryptsy/blob/14fa57ff829479f28de02eb430dcf6474e4fffcb/lib/scrypt.js#L43-L45 available as a separate export without the progress callback stuff

  5. jprichardson commented on Nov 29, 2018

    @jprichardson
    Member

    I'm open to any modifications. Creating new libraries that do the same thing makes it harder for people to audit libraries as the audit surface area increases. Increased audit surface area makes it harder to prevent the problems that we saw on Monday (backdoor targetting Copay).

  6. jprichardson commented on Nov 29, 2018

    @jprichardson
    Member

    @calvinmetcalf happy to add you to cryptocoinjs if you'd like.

  7. calvinmetcalf commented on Nov 29, 2018

    @calvinmetcalf
    Contributor

    sure you can add me, I'll try switching it up when I get a chance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions