-
Notifications
You must be signed in to change notification settings - Fork 121
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
Support minting on Ledger signing device #1301
Conversation
Pull Request Test Coverage Report for Build 12871300835Details
💛 - Coveralls |
826920d
to
bc4ee59
Compare
Changed the base branch to |
21f44ca
to
65d1b52
Compare
docs/external-group-key-ledger.md
Outdated
|
||
## Step 2: Install HWI and derive the xpub for the group key | ||
|
||
We will be using the [HWI]() library to talk with the Ledger device from the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing hyperlink
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also maybe mention that we are using a custom branch of that lib in this guide
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should link to the branch by it's commit hash (permalink). So that we know the link matches something definite.
We might want to rename the branch https://github.com/lightninglabs/HWI/tree/tapd-cold-minting
to something that can stick around for a while so that the reference will live on. Maybe tapd-v0.6.0-cold-minting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point! I kept the branch but pushed a tag tapd-v0.6.0-cold-minting
for this that is referenced in the doc.
This needs a rebase. But might need to be rebased again if #1295 gets in first. And vice versa. |
bc4ee59
to
559cdbe
Compare
Addressed the comments and rebased. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
(Depends on #1295)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🎉
I confirmed cold storage signing on my Ledger Nano S plus, and everyhting worked as expected.
I made some comments on the guide that should provide more clarity for people trying to do this as well.
available firmware (`v1.3.1` at time of writing this). | ||
3. Using the "Ledger Live" software, make sure you install the "Bitcoin" app | ||
or update it to the latest version (`v2.3.0` at time of writing this). | ||
4. If you plan to experiment on regtest or testnet first, you also need to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Ledger needs to be in "Developer mode" to be able to install Testnet
apps. Maybe mention that here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, I forgot about that. Will definitely add! Thank you.
Consider the base branch before merging please! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
559cdbe
to
f82549e
Compare
Tested on mainnet successfully. |
Depends on #1290.Depends on #1295.
Adds the necessary meta information to the group key VM transaction PSBT to allow signing of such a mint authorization transaction using a custom version of the HWI library and a Ledger signing device.
A new guide documents the required steps.