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

feat(cli): add command to output a compressed pubkey hash #644

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

merklefruit
Copy link
Collaborator

This PR adds a "pubkey-hash" command to the bolt CLI, which can be useful for debugging purposes.
It simply requires a pubkey as argument. Here is an example:

bolt pubkey-hash 0x90b7beb2568094bec116f264b63d259c9205e5a969e11316ec57b57ef827c206504730ddbfccf7731a802cb99401446a

0x43068754c6062ac20e198e99f87d492973592ccd

this command is hidden from clap so it's not shown to users in the help menu.

@merklefruit merklefruit requested a review from mempirate January 7, 2025 09:14
Copy link
Contributor

@mempirate mempirate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, very useful in debugging indeed. Also didn't know about hiding clap commands!

@merklefruit merklefruit merged commit 0a50ccc into unstable Jan 7, 2025
3 checks passed
@merklefruit merklefruit deleted the feat/cli/pubkey-hash branch January 7, 2025 09:36
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

Successfully merging this pull request may close these issues.

2 participants