Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question: about the goal of migrating better bip32 methods for deriving secrets #2720

Open
trueptolemy opened this issue Jun 6, 2019 · 0 comments

Comments

@trueptolemy
Copy link
Collaborator

I find this in hsmd.c :

/* FIXME: lnd has a nicer BIP32 method for deriving secrets which we should migrate to. */

It was marked above hsm_channel_secret_base(&channel_base).

In order to be a qualified thief, I went to lnd's source code and found it depends on a golang package--waddrmgr to achive a HD wallet based on BIP0044.
In this package, the process of driving secret base from a seed is similar with c-lightning, but the highlight of their HD wallet is the implement of BIP0044.

Thus, I guess "a nicer BIP32 method for deriving secrets" indicates the implement of BIP0044, which can manage HD addresses elegantly.

I am not sure if my understanding is correct. ping @rustyrussell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant