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

fix: always use compressed public keys in signer config #4762

Merged
merged 1 commit into from
May 22, 2024

Conversation

hstove
Copy link
Contributor

@hstove hstove commented May 8, 2024

The signer converts its private key to a Stacks address when looking up whether it is registered in a reward cycle. If the configured private key didn't have a compress_public flag (ie ending in 01), the public key wouldn't be compressed when generating the Stacks address. This could lead to the signer incorrectly thinking it isn't registered.

This PR also updates the check-config command to output the compressed public key.

Relates to:

@hstove hstove changed the title fix: show compressed pubkey in stacks-signer check-config fix: always use compressed public keys in signer config May 8, 2024
@hstove hstove requested review from jferrant and jcnelson May 8, 2024 17:56
@hstove hstove marked this pull request as ready for review May 8, 2024 17:56
@BowTiedDevOps
Copy link
Collaborator

Fixes #4761

@hstove hstove linked an issue May 8, 2024 that may be closed by this pull request
jferrant
jferrant previously approved these changes May 9, 2024
@hstove
Copy link
Contributor Author

hstove commented May 16, 2024

Rebased and ready for review 👍🏼

@hstove hstove requested a review from jferrant May 16, 2024 13:34
@jcnelson jcnelson added this pull request to the merge queue May 22, 2024
Merged via the queue into develop with commit ec4d315 May 22, 2024
94 checks passed
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.

[stacks-signer] Public Keys Don't Match - Signer Not Registered
5 participants