Skip to content

Write own BIP39 implementation #561

Closed

Description

@jblachly

As suggested in the code base:

bdk/src/keys/bip39.rs

Lines 14 to 17 in adf7d0c

// TODO: maybe write our own implementation of bip39? Seems stupid to have an extra dependency for
// something that should be fairly simple to re-implement.
use bitcoin::util::bip32;

I also recommend writing own BIP39 implementation.

In issue #399, BDK transitioned from tiny-bip39 to rust-bip39, however, the latter package (which BDK now depends on) appears to be unmaintained or poorly maintained, with PRs and issues ignored for about a year.

https://github.com/rust-bitcoin/rust-bip39

At a minimum, BIP39 wordlists, and words -> entropy -> seed generation would be valuable.

Activity

  1. added
    summer-of-bitcoin
    on Mar 9, 2022
  2. notmandatory commented on Mar 9, 2022

    @notmandatory
    Contributor

    @jblachly I think it's too late to add this as a 2022 summer of bitcoin project, but I'll tag it as a good first issue for someone new.

  3. added
    good first issue
    and removed
    summer-of-bitcoin
    on Mar 9, 2022
  4. jblachly commented on Mar 9, 2022

    @jblachly
    Author

    Thanks; accidentally started with that template (there was no other feature request template) and didn't realize it would add an issue tag.

  5. notmandatory commented on Mar 14, 2022

    @notmandatory
    Contributor

    No problem, it's on my todo list to add an enhancement issue template. 😅

  6. violet360 commented on Mar 14, 2022

    @violet360

    Hey, guys !!
    I am a bitcoin enthusiast and an SoB participant who recently started with RUST and new to this project as well, I was looking for cool rust issues to work on so that I can improve my understanding and this one really caught my attention, I would love to work on this project.

  7. Eunoia1729 commented on Mar 15, 2022

    @Eunoia1729
    Contributor

    Hi @violet360!
    I've been working on this since past few days. Hope we can review/discuss if I'm going in the right direction.
    I can make a draft PR.

  8. violet360 commented on Mar 15, 2022

    @violet360

    Ok cool, for sure :)

  9. evanlinjin commented on Apr 7, 2022

    @evanlinjin
    Contributor

    @violet360 @Eunoia1729 How is progress on this issue so far?

  10. added a commit that references this issue on Apr 25, 2022
  11. danielabrozzoni commented on Apr 28, 2022

    @danielabrozzoni
    Contributor

    @Eunoia1729 are you stll working on this? :)

  12. Eunoia1729 commented on Apr 28, 2022

    @Eunoia1729
    Contributor

    Sorry for the late response.
    I didnt progress much after that. Anyone interested can start with it, I'll be happy to join or help in any way.

  13. vladimirfomene commented on May 12, 2022

    @vladimirfomene
    Contributor

    Hello @danielabrozzoni, has this been worked on? Can I pick it up?

  14. danielabrozzoni commented on May 12, 2022

    @danielabrozzoni
    Contributor

    Nobody that I know of, you can pick it up :)

  15. atalw commented on May 12, 2022

    @atalw

    Hey, sorry that I didn't update here but I started working on this earlier today. Should I continue? Perhaps we could work together?

  16. vladimirfomene commented on May 12, 2022

    @vladimirfomene
    Contributor

    @atalw, yes we can work on it together. Can I reach out to you over discord? What is your discord handle?

  17. atalw commented on May 13, 2022

    @atalw

    Awesome. It's atalw#3934.

  18. notmandatory commented on Dec 19, 2022

    @notmandatory
    Contributor

    I know we have @evanlinjin 's PR #644 in progress for this. But want to ask the question, since we already moved off of tiny-bip39 and we're using rust-bitcoin/rust-bip39 , does it make sense to create our own implementation? what features are we missing in rust-bip39 ? And if it's just a maintenance issue what needs to be updated and can we do PRs for those?

  19. jblachly commented on Dec 20, 2022

    @jblachly
    Author

    And if it's just a maintenance issue what needs to be updated and can we do PRs for those?

    The problem is that the maintainer of rust-bitcoin/rust-bip39 is unresponsive to PRs

  20. notmandatory commented on Dec 31, 2022

    @notmandatory
    Contributor

    If there are no technical reason against using rust-bitcoin/rust-bip39 then should we maintain and use a fork in the bitcoindevkit org? Then we can get PRs we need merged and upstream can still pull them in if/when they want.

  21. jblachly commented on Jan 1, 2023

    @jblachly
    Author

    should we maintain and use a fork in the bitcoindevkit org?

    Sounds reasonable; alternatively if anyone has personal connections to org owners of rust-bitcoin we could lobby for an additional person to get admin permissions to the repository as co-maintainer

  22. notmandatory commented on Mar 3, 2023

    @notmandatory
    Contributor

    @jblachly I'm going to close this issue as the rust-bitcoin/rust-bip39 crate seems to be back on track with new releases. Happy to reopen if you think more discussion is needed.

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

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions