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

bitcoin: enable message signing on testnet and regtest #1378

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

benma
Copy link
Collaborator

@benma benma commented Mar 11, 2025

Fixes #1376

@benma benma requested a review from Beerosagos March 11, 2025 10:44
@benma benma force-pushed the signmsg-testnet branch from eb819dc to 63be2e5 Compare March 11, 2025 10:52
@benma benma force-pushed the signmsg-testnet branch from 63be2e5 to 59c7f82 Compare March 24, 2025 11:22
@benma
Copy link
Collaborator Author

benma commented Mar 24, 2025

@Beerosagos I added his to send_message.py for easier manual testing as discussed.

Copy link
Collaborator

@Beerosagos Beerosagos left a comment

Choose a reason for hiding this comment

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

tACK, with a small nit


def sign_testnet() -> None:
keypath = [49 + HARDENED, 1 + HARDENED, 0 + HARDENED, 0, 0]
script_config = bitbox02.btc.BTCScriptConfig(
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: since you use the same script_config both times maybe you can directly include it in the sign function?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think I'll leave it, as the script config is tightly coupled to the keypath, so being able to modify one but not the other locally seems off.

@benma benma merged commit d1ebf2c into BitBoxSwiss:master Mar 26, 2025
3 checks passed
@benma benma deleted the signmsg-testnet branch March 26, 2025 11:01
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.

Better error message for testnet sign_message
2 participants